dsh-lang-zh
Manifest validInjects a fixed system-prompt section so the agent always replies in Simplified Chinese — including the short narration between tool calls — unless you explicitly ask for another language. Applies to
dsh-lang-zh · DSH 简体中文语言插件
Make DeepSeek Harness agents always reply in Simplified Chinese, including the short narration text between tool calls. 让 DSH 的模型始终用简体中文回复, 连工具调用之间的"边干活边说"的叙述文字也是中文。
作用 / What it does
DSH 本身不会固定模型的输出语言——模型会跟随你的语言写最终答案,但中间过程的 叙述文字(轨迹里的 assistant 短句)容易受上下文影响漂移到英文。本插件在系统提示词里 注入一条明确的语言指令,让所有会话、所有 agent preset 都:
- 用简体中文写最终回复;
- 工具调用之间的叙述文字也用简体中文;
- 思考过程尽量使用中文;
- 除非用户明确要求使用其他语言。
安装后立即生效(无需重启),对之后产生的每条消息都有效。
为什么需要 / Why
两次对话、同样的模型(deepseek-v4-flash)、同样的系统提示词,一次叙述是中文、 一次是英文——这不是 bug,是模型每轮自主选择输出语言的结果。上下文里英文内容 (工具输出、日志)越多,叙述越容易漂成英文。与其每次开头叮嘱一句,不如用插件 一次性固定下来。
安装 / Install
dsh plugin --profile web add dsh-lang-zh
重启 dsh web(或等下一次重启)后,插件作为 bundle 层加载,立即生效。
与直接在 profile 的
cordis.patch.yml里改 persona 相比,本插件不覆盖 web-app 自带的 persona,也不会被某个 preset 的 persona 遮蔽,因此对每个 preset 的每个会话都稳定生效。
工作原理 / How it works
cordis.patch.yml作为 bundle 补丁,向 profile 层栈插入一行- id: lang-zh / name: dsh-lang-zh(与dshmarket等插件相同的标准方式)。- Loader 从 profile 的
node_modules导入本包,插件通过ctx.systemPrompt.section()注册一个独立命名的user:languagesection。 - 每次组装系统提示词时,该 section 都会出现在 persona 之后,对所有会话生效。
配置 / Configuration
在 profile 补丁层可覆盖默认指令文本与顺序(可选):
- id: lang-zh
config:
text: 始终使用简体中文回复(包括工具调用之间的叙述文字),除非用户明确要求使用其他语言。思考过程也请尽量使用中文。
order: 1
| 字段 | 默认 | 说明 |
|---|---|---|
text | 见上方默认文案 | 注入系统提示词的指令文本 |
order | 1 | section 顺序(deployment persona 在 0,默认紧跟其后) |
卸载 / Uninstall
dsh plugin --profile web remove dsh-lang-zh
许可 / License
MIT
Comments
Loading…
Similar plugins
by CAI-MH
Force the model to write all replies in a chosen language (Simplified Chinese by default) via a system-prompt section, switchable anytime with a tool.
★ 0
MIT
JavaScript
Sep 4, 2026
dsh plugin --profile web add dsh-reply-languageby Max-Null
One-line fix: inject a fixed system-prompt section so the agent always thinks and replies in Chinese, whatever the user's language · 中文思考:注入固定提示词,让 agent 始终用中文思考与回复(无论用户语言)
★ 12
MIT
TypeScript
Oct 20, 2026
dsh plugin --profile web add @max-null/dsh-chinese-thinkingLocks the model's reasoning and reply language to a chosen target language (Simplified Chinese by default) with system-prompt sections at the head, middle and tail of the prompt, offering three streng
★ 1
MIT
JavaScript
dsh plugin --profile web add dsh-language-guardby LiangHeOvO
DSH 插件:让所有会话、所有模型的思考过程与回复永久使用简体中文,直到卸载。Force Simplified Chinese thinking and replies in every DeepSeek Harness session.
★ 4
MIT
JavaScript
Oct 5, 2026
dsh plugin --profile web add dsh-zh-cnby ChendarCe
Make the agent think in Chinese, with a settings switch and a fully overriding custom prompt.
★ 0
MIT
JavaScript
Oct 19, 2026
dsh plugin --profile web add dsh-thinking-languageDSH 全局中文模式:输入框「中文」按钮展开语言面板,回复、思考、工具说明三项语言独立开关,配置随 profile 持久化。
★ 0
dsh plugin --profile web add dsh-chinese-mode-modern