npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

deepseek-harness-zh-cn

v0.1.3

Published

A Chinese-first plugin for DeepSeek Harness: reason (reasoning) and answer in Simplified Chinese by default.

Readme

deepseek-harness-zh-cn

English | 简体中文

npm version license downloads

DeepSeek Harness推理(reasoning)与输出默认使用简体中文的中文插件。

简要说明

本项目提供两种方式(二者选一,推荐方式一),让你的 DSH 把推理内容与输出内容变成全中文,使中方用户可以直接查看中文轨迹与处理过程,减少翻译负担:

  • 方式一(推荐,最简单):把 AGENTS.md.example 的内容复制到 ~/.dsh/AGENTS.md
  • 方式二(插件方式):通过 npm 安装本包,并在 profile 中挂载。

效果图

快速开始

方式一:复制 AGENTS.md(推荐)

把本仓库的 AGENTS.md.example 复制到 DSH 的 home 目录,命名为 AGENTS.md

  • Linux / macOS~/.dsh/AGENTS.md
  • WindowsC:\Users\<你的用户名>\.dsh\AGENTS.md
# Linux / macOS
cp AGENTS.md.example ~/.dsh/AGENTS.md

Windows 手动复制即可。完成后重启 dsh web(或新建会话)。

方式二:安装 npm 插件

A. 官方命令(底层走 pnpm,需先安装 pnpm):

npm i -g pnpm
dsh plugin --profile web add deepseek-harness-zh-cn

B. 直接用 npm 装进 profile 目录

cd ~/.dsh/profiles/web    # Windows: C:\Users\<你>\.dsh\profiles\web
npm install deepseek-harness-zh-cn --save

注意:这里的 npm install 是在 DSH 的 profile 目录里执行,不是在本插件项目目录。

~/.dsh/profiles/<name>/cordis.patch.yml 中挂载:

- insert:
    - id: dsh-zh
      name: 'deepseek-harness-zh-cn'

重启 dsh web

作用范围与限制

  • 同时影响模型的最终回答思维链(reasoning)
  • harness 与 DeepSeek API 均没有强制推理语言的开关;技术任务下模型的 reasoning_content 仍可能是英文。全中文提示词能把概率拉到最高,但不保证 100%

原理

  • 方式一~/.dsh/AGENTS.mddsh-agent-instructions<system-reminder> 用户消息注入,属于「指导级」指令,优先级低于系统提示词与直接用户指令。
  • 方式二:插件通过 ctx.systemPrompt.section()order: -150 注入系统提示词本体,排在 harness 身份(-100)与 persona(0)之前,优先级更高。

开发

构建

npm install
npm run build      # 编译 src → lib/index.js

本地挂载

开发期可直接用 file:// URL 挂载编译产物,无需安装依赖。编辑 ~/.dsh/profiles/<name>/cordis.patch.yml

- insert:
    - id: dsh-zh
      name: 'file:///D:/ui-workspace/deepseek-harness-zh-cn/lib/index.js'

把 URL 改成你的实际路径。

重启

npx @deepseek-ai/dsh web

若服务已在运行,先停止再重新启动。

验证

# Windows
npx @deepseek-ai/dsh web --dump-config | findstr /C:"dsh-zh"

# Linux / macOS
npx @deepseek-ai/dsh web --dump-config | grep dsh-zh

看到 dsh-zh 行即表示插件已挂载。之后新建会话,模型应以简体中文进行思考与回答。

免责说明

本项目只注入语言指令,不修改模型权重或推理逻辑。实际输出语言仍取决于所选模型的行为;对因模型未能遵守中文指令而产生的结果,本项目不承担责任。

协议

Apache-2.0