Saltar al contenido principal
D

dsh-agent-preset-standard-zh

dbydbydby/dsh-agent-preset-standard-zh

Simplified-Chinese variant of the built-in Standard agent preset: the persona prompt is rewritten in Chinese and six Chinese-output requirements are appended; all other preset lines stay identical to the upstream Standard preset.

Instalar

dsh plugin --profile web add github:dbydbydby/dsh-agent-preset-standard-zh

README

标准模式(中文)· dsh-agent-preset-standard-zh

npm version npm downloads license DSH

给 DeepSeek Harness 加一个名为 标准模式(中文) 的 Agent 预设:工具、子智能体、工作流、压缩、计划模式等插件行与官方 standard 预设逐行一致,只把人设与语言规则换成中文推理版本。

  • 包名:dsh-agent-preset-standard-zh
  • 预设 id:standard-zh(装载器行 id preset-standard-zh,排在官方「标准」之后,两者并存互不影响)
  • 包内没有 npm 依赖,装完不需要再联网

它改了什么

相对官方 standard,只有两处不同:

  1. persona 的 prefix 改为「你是一个由 {{model}} 模型驱动的编程智能体。你的内部推理始终使用简体中文。」
  2. persona 的 suffix 追加 6 条语言要求:内部推理必须中文、对外回复默认中文、代码/路径/专有名词不翻译、分阶段中文小结、误用英文要即时纠正等。

其余插件行原样保留,包括 Windows / 非 Windows 的工具自动切换(pwsh ↔ bash)。

安装

方式 A:在 DSH 里让 agent 装

在任意会话里说:

用 plugin_manager 的 install_bundle 安装 dsh-agent-preset-standard-zh

install_bundle 的 target 直接填包名即可。

方式 B:图形界面

左侧 Plugins(插件) → Add plugin(添加插件) → 输入包名 dsh-agent-preset-standard-zh。

方式 C:命令行(在 profile 目录里)

cd "$DSH_HOME/profiles/<你的 profile>"
pnpm add dsh-agent-preset-standard-zh --registry=https://registry.npmjs.org

装完在 Plugins 面板确认 dsh-agent-preset-standard-zh 已启用(默认启用),然后新建会话,在模式选择器里选 标准模式(中文)。

国内网络注意:若你本机 .npmrc 的 registry 指向 registry.npmmirror.com,镜像同步新发布的包需要几分钟到几小时。急着装就显式加 --registry=https://registry.npmjs.org。

方式 D:直接从本仓库安装(不走 npm)

git clone https://github.com/dbydbydby/dsh-agent-preset-standard-zh.git
cd "$DSH_HOME/profiles/<你的 profile>"
pnpm add /path/to/dsh-agent-preset-standard-zh

仓库里就是发布到 npm 的同一份内容,因此克隆后在本地 pnpm add 的效果与从 npm 安装等价。

验证装好了

  1. Plugins 列表里出现 dsh-agent-preset-standard-zh,无报错。
  2. 新建会话,模式选择器里出现 标准模式(中文)(位置在「标准」之后)。
  3. 提问后回复是中文;展开思考过程,推理也应是中文(模型可能中途切回英文,属正常现象,规则里已要求它自我纠正)。

兼容性

项目说明
DSH 版本基于 DSH 0.2.2-rc.5 的 standard 预设编写,插件名与这一版自带的 @deepseek-ai/dsh-* 包一一对应。
操作系统Windows、macOS、Linux 通用。包内按 process.platform 在 pwsh 与 bash 工具之间切换,无需按平台改配置。
模型任意。规则是提示词约束,遵守程度取决于模型本身。
与官方预设只新增一行,不覆盖 standard。

若你的 DSH 版本与 0.2.2-rc.5 差距较大,可能有个别 @deepseek-ai/dsh-* 包改名或移除,导致该行激活失败。遇到就在插件详情里看诊断,按你的版本同步清单(cordis.patch.yml 是纯 YAML,可直接改)。

卸载

Plugins → 找到该包 → Remove。

排查

现象处理
模式选择器里没有「标准模式(中文)」包未启用,或宿主没重启。到 Plugins 面板确认启用;无 HMR 时需要重启 runtime。
包在列表里但标记未运行 / 有诊断版本不匹配:某个 @deepseek-ai/dsh-* 包在你的 DSH 里不存在或已改名。
装了但对话仍是英文推理老会话沿用启动时的插件版本,请新建会话再试。

成本参考

作者实测(同一批题、每组 10 次,DSH 0.2.2-rc.5):

  • 系统提示词 +128 token,且只影响首轮(之后走缓存);
  • 输出 token 约 +24%;
  • 墙钟耗时无可见差异。

也就是说,中文推理主要贵在输出 token。

反馈

License

MIT © 2026 dbydbydby

Plugins relacionados