dsh-think-in-chinese
其他 活跃维护

dsh-think-in-chinese

Mr-cjf/dsh-think-in-chinese

为对应平台的Agent适配简体中文思考与回复逻辑,部署后无需额外配置即可生效,全程强制Agent以中文完成推理、输出全流程,交互体验更贴合中文用户使用习惯。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
12 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Mr-cjf/dsh-think-in-chinese
git clone https://github.com/Mr-cjf/dsh-think-in-chinese.git
git clone git@github.com:Mr-cjf/dsh-think-in-chinese.git
README.md main

dsh-think-in-chinese

DeepSeek Harness 的 Agent 用简体中文思考和回复——一个全局插件,对所有 agent preset 生效。

Make your DeepSeek Harness agent think (reasoning) and reply in Simplified Chinese — a global plugin that applies to every preset.

效果

默认情况下,DSH 模型用中文提问时回答是中文,但内部思考(reasoning/thinking)仍是英文。这个插件往全局 systemPrompt 注入一条指令,让模型的推理和回答都用简体中文。因为是全局插件,切换任何 preset 都不会失效

安装

方式一:dsh plugin add(推荐,若已发布到 registry)

dsh plugin --profile web add dsh-think-in-chinese

方式二:手动安装

  1. 把本仓库文件放到全局插件目录:
mkdir -p "$HOME/.dsh/profiles/node_modules/dsh-think-in-chinese"
cp -r lib package.json cordis.patch.yml "$HOME/.dsh/profiles/node_modules/dsh-think-in-chinese/"
  1. $HOME/.dsh/profiles/web/cordis.patch.yml 里追加:
- insert:
    - id: think-in-chinese
      name: dsh-think-in-chinese
  1. 重启 DSH。

原理

插件在 Host 半通过 systemPrompt.section() 注册一个全局 prompt 段(order -50,位于 persona 之前),因此对所有 preset 生效,不依赖任何翻译服务或 API。

文件结构

  • lib/index.js — Host 半:注册全局「用中文思考」prompt 段
  • cordis.patch.yml — bundle patch:插入插件行
  • package.json — 包元数据(含 dsh.bundle.patch 指向 patch)

License

MIT