zhy201810576/dsh-zh-reasoning
让 DeepSeek Harness 的思考(reasoning)与最终回答默认使用简体中文的中文插件
项目介绍Project Overview
dsh-zh-reasoning 是面向 DeepSeek Harness 的插件,会在每次会话的 agent/pre-step 注入 <system-reminder>,强制要求模型的思考与最终回答默认使用简体中文,覆盖计划、工具调用、总结与代码注释。插件采用标准 bundle 结构,支持 dsh plugin 挂载、npm 发布与更新;同时兼容 dsh-liangshen 梁神模式,在锚定期与晋升后都能持续生效。适用于需要中文输出的 DSH 用户。需注意:提示词可最大化概率,但 harness 与 DeepSeek API 并无强制语言开关,无法保证 100% 推理语言一致。
dsh-zh-reasoning is a DeepSeek Harness plugin that injects a <system-reminder> at agent/pre-step to force Simplified Chinese for the model's reasoning and final answers, covering plans, tool calls, summaries, and code comments. It uses a standard bundle layout and supports dsh plugin mounting plus npm publishing and updates. It also remains compatible with the dsh-liangshen preset across anchoring and promotion phases. Use it when Chinese-language output is needed in DSH. Caveat: the harness and DeepSeek API expose no forced-reasoning-language switch, so Chinese prompting maximizes probability but does not guarantee 100% language consistency.
请帮我了解并安装插件:【dsh-zh-reasoning】【https://github.com/zhy201810576/dsh-zh-reasoning】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-zh-reasoning
把 zhy201810576/dsh-zh-reasoning 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-zh-reasoning
让 DeepSeek Harness 的思考(reasoning)与最终回答默认使用简体中文的中文插件。
基于 imlishiyuan/deepseek-harness-zh-cn(Apache-2.0)修改: 补上标准插件结构(
cordis.patch.ymlbundle 补丁层 +dsh.bundle.patch清单字段 +files打包), 并改名为dsh-zh-reasoning,使插件可用标准方式挂载、发布与更新。
功能特性
- 在模型每个会话的第一步(
agent/pre-step)注入<system-reminder>指令,要求:- 思考(reasoning)与最终回答使用简体中文;
- 计划、工具调用、总结、代码注释同样使用中文;
- 仅代码、命令、文件路径、变量名、API 名称等保留英文;
- 除非用户明确要求其他语言,否则规则优先。
- 同时影响模型的最终回答与思维链(reasoning)。
- 标准插件结构,支持
dsh plugin挂载、npm 发布与更新。 - 兼容梁神模式(dsh-liangshen agent preset):梁神模式 phase 1 会按白名单剥离
agent/pre-step注入消息,插件检测到梁神模式会话后自动改为把中文指令追加进 persona section——phase 1 的 prompt 过滤器只保留 persona,因此指令在锚定期与晋升后都生效,且不会重复注入。
说明:harness 与 DeepSeek API 没有强制推理语言的开关;全中文提示词能最大化概率,但不保证 100%。
安装 / 挂载
方式一:npm 发布后(推荐)
dsh plugin --profile <name> add dsh-zh-reasoning
方式二:从 GitHub 直接安装
dsh plugin --profile <name> add "dsh-zh-reasoning@git+https://github.com/zhy201810576/dsh-zh-reasoning.git"
方式三:本地开发(file: 依赖) 在 profile 的 package.json 中添加依赖并加入 bundles:
{
"dependencies": { "dsh-zh-reasoning": "file:../dsh-zh-reasoning" },
"dsh": { "profile": { "bundles": [ "...", "dsh-zh-reasoning" ] } }
}
然后在该 profile 目录执行 pnpm install 并重启 dsh web。
方式四:直接本地挂载(无需安装) 在 ~/.dsh/profiles/<name>/cordis.patch.yml 中:
- insert:
- id: dsh-zh
name: 'file:///绝对路径/dsh-zh-reasoning/lib/index.js'
验证
dsh --profile <name> --dump-config | findstr dsh-zh
看到 dsh-zh 行即表示已挂载。之后新建会话,模型应以简体中文思考与回答。
目录结构
dsh-zh-reasoning/
├── lib/
│ └── index.js # 插件入口:pre-step 注入中文 system-reminder(梁神模式下改追加 persona)
├── cordis.patch.yml # bundle 补丁层:声明插件挂载行
├── package.json # npm 包清单(含 dsh.bundle.patch 字段)
├── pnpm-lock.yaml # 依赖锁定文件
├── LICENSE # Apache-2.0 许可证
└── README.md
开发
pnpm install # 安装 @deepseek-ai/dsh-llm(仓库自包含)
node -e "import('file:///绝对路径/dsh-zh-reasoning/lib/index.js').then(m=>console.log(m.name))"
协议
Apache-2.0,保留原作者版权声明。
GanyuanRan/Aegis
shengsheng90/DSH-taskboard
pengyue-polaron/deepseek-harness-genui
Jayden-X-L/forkprobe
BeforeWave/dsh-with-chatgpt
agi-fans/oh-my-dsh
FeatherHunter/dsh-mattpocock-skills-deck