Injects 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 every session and preset without overriding the persona.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Yantingmo/dsh-lang-zh
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
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
Links
More in this category
Minglink/dsh-infinite-gen-4★ 3055
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
ranxianglei/billion-context★ 1893
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
liangmianya/dsh-synapse★ 538
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
Nwflower/dsh-chat-import★ 238
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
MichengAI/dsh-archive-manager★ 171
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Totoro-qaq/dsh-plugin-bridge★ 163
Moves an existing DSH session to another agent preset through a previewable five-section handoff, preserving the source session and either pausing the target for confirmation or continuing immediately.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.