deepseek-harness-zh-cn
A Chinese-first plugin for DeepSeek Harness: reason (reasoning) and answer in Simplified Chinese by default.
這個插件適合誰
- 想找、想管插件的人
安装
dsh plugin --profile web add deepseek-harness-zh-cn
沙箱测试结果
| 阶段 | 结果 |
|---|---|
| T0 静态检查 | — |
| T1 安装 | ✓ |
| T2 列装 | ✓ |
| T3 挂载 | ✓ |
| T4 启动 | — |
四阶段在隔离沙箱里跑:安装(有网)→ 列装 → 挂载 → 启动(后三步断网)。
README
deepseek-harness-zh-cn
[English](README.md) | 简体中文
让 DeepSeek Harness 的推理(reasoning)与输出默认使用简体中文的中文插件。
简要说明
本项目提供两种方式(二者选一,推荐方式一),让你的 DSH 把推理内容与输出内容变成全中文,使中方用户可以直接查看中文轨迹与处理过程,减少翻译负担:
- 方式一(推荐,最简单):把
AGENTS.md.example的内容复制到~/.dsh/AGENTS.md。 - 方式二(插件方式):通过 npm 安装本包,并在 profile 中挂载。
提示:本插件的「中文优先」规则,也可以用 keep-reminder 插件实现——把同样的规则写进项目里的 .keep-reminder 文件即可,且规则内容可自由定制(不只限于语言)。
效果图
<div align="center">
<img src="images/1.png" alt="效果图 1" width="48%" />
<img src="images/2.png" alt="效果图 2" width="48%" />
</div>
快速开始
方式一:复制 AGENTS.md(推荐)
把本仓库的 AGENTS.md.example 复制到 DSH 的 home 目录,命名为 AGENTS.md:
- Linux / macOS:
~/.dsh/AGENTS.md - Windows:
C:\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.md由dsh-agent-instructions以<system-reminder>用户消息注入,属于「指导级」指令,优先级低于系统提示词与直接用户指令。 - 方式二:插件监听
agent/pre-step瀑布事件,在每轮(turn)第一步把<system-reminder>用户消息追加进请求批次,实现每轮一次的中文约束注入。
开发
构建
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](LICENSE)
以上内容来自 npm 上的 README,我们只做格式化,不改内容。
嵌入徽章
两个徽章各用自己站的标识:左边是**标准**(DSHIO 发布),右边是**检测机构**(deepseekbase 检测)。每次展示都指向标准原文和检验报告。
Markdown(推荐,两个一起)
[](https://dshio.org/10/) [](https://deepseekbase.com/zh/plugins/deepseek-harness-zh-cn/)
注意:这不是认证。DSHIO/T 32 认证规则尚未启用。
版本
npm 上共发布:6,最后更新 2026-10-19
链接
常見問題
dsh plugin --profile web add deepseek-harness-zh-cn。如果你用的是 DSH Desktop,也可以在插件頁面直接貼套件名。dsh --version),再看上面測試結果區的第一條錯誤。還不行就到 GitHub 倉庫提 issue。dsh plugin --profile web remove deepseek-harness-zh-cn。