DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Zh Cn — DSH Plugin for DeepSeek Harness
← Plugins
Z

dsh-zh-cn

Zh Cn

DSH plugin: force every session and every model to think and answer in Simplified Chinese permanently until uninstalled. Global Chinese mode—once installed, it permanently applies to all sessions and all models, including custom models; thoughts and replies are displayed exclusively in Simplified Ch

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:LiangHeOvO/dsh-zh-cn#bef8d0b67a8f0597fe8db8f1b222c6a63633f370
READMECompatibilityVersions

Description

DSH plugin: force every session and every model to think and answer in Simplified Chinese permanently until uninstalled. Global Chinese mode—once installed, it permanently applies to all sessions and all models, including custom models; thoughts and replies are displayed exclusively in Simplified Chinese.

Compatibility and provenance

Zh Cn is published as dsh-zh-cn and currently resolves to version 1.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/5/2026

Versions

1.1.0stable
10/4/2026
1.0.0stable
10/4/2026
Latest
1.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
Not declared
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
10/5/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

README

dsh-zh-cn · 全局中文模式

安装一次,所有会话、所有模型(默认模型与你手动添加的自定义模型)的思考过程和回复都会用简体中文显示;除非你在插件管理器里主动卸载,否则新开对话、切换模型、重启 Harness 都依然生效。

安装

在 DeepSeek Harness 里打开插件管理器 → 安装 bundle,粘贴仓库地址 https://github.com/LiangHeOvO/dsh-zh-cn 即可(DSH 的 install_bundle 原生支持 git 仓库 URL,也支持本机绝对路径)。装好即生效,不需要任何配置;要停用时在插件管理器里移除这个 bundle 就行,规则会随插件一起消失。

也可以先克隆再用绝对路径安装:

git clone https://github.com/LiangHeOvO/dsh-zh-cn.git
cd dsh-zh-cn && npm install   # 装唯一依赖 @deepseek-ai/schemastery(Config schema 要用)
# 然后在插件管理器里填入克隆目录的绝对路径

走仓库地址安装时 pnpm 会自动解析 dependencies,上面那步 npm install 只在克隆源码后用绝对路径安装时才需要——link: 方式不会替被链接的包安装依赖,缺了它 import 会报 Cannot find package '@deepseek-ai/schemastery'。

它做了什么

规则是分三层下发的,因为实测只在系统提示词开头放一段,仍会滑回英文——那段规则后面跟着上万 token 的英文工具文档,而模型生成时离它已经很远:

层注入点位置作用
1 主段systemPrompt.sectionorder: -900,紧跟 harness 身份立场声明,提示词最前端的完整规则
2 收尾段systemPrompt.sectionorder: 10500,在部署 persona 后缀(10200)之后系统提示词的最后一个字,模型生成前最新鲜的一句
3 每步快照systemPrompt.contextorder: 130,排在 sandbox/approval/delegation 之后作为带来源的 user 快照进入历史末尾,紧贴本次生成

第 3 层不会撑爆 token:快照由 RuntimeContextProjection 投影,内容没变就不产生新消息,恒定规则只占一条,不随步数堆积。

三层都在 apply() 里注册到插件自己的 fiber 上,Cordis 在卸载时自动撤销——"卸载即失效"因此天然成立,不需要清理代码。

规则内容概括:

  1. 思考过程从第一个字起就用简体中文,不中英混写,也不因话题/代码/工具输出是英文就切换;
  2. 正式回复(正文、计划、进度说明、工具说明、总结、提问、标题)一律简体中文,即使用户用英文提问也用中文回答;
  3. 代码、命令、路径、报错原文、API 与专有名词保持原样,只用中文解释;
  4. 主段结尾附一句英文,兜底英文优先的模型。

措辞上的讲究:三层都写成"既定前提"(像环境事实),而不是"编号规则 + 最高优先级 + 禁止/必须"。后者会让模型在思考开头复述一遍规则,用户看到的思考过程就变成"好的,我需要用中文……"这类自证,非常突兀。所以每层还明确写了不要提及它,selftest.mjs 里有断言把这类措辞挡住,防止以后改回去。

因为规则是随系统提示词发给模型的,所以它对默认模型和自定义模型一视同仁——语言规则在模型路由之前就已经拼进提示词,不依赖任何具体厂商接口。

文件

文件作用
index.jsHost 插件本体:apply(ctx, config) 注册三层规则
cordis.patch.ymlbundle 补丁:把 zh-cn 这一行插入 profile
package.json声明 dsh.bundle.patch,使本包成为一个 bundle
locale/zh.json locale/en.json插件管理器里显示的标题与描述
icon.svg插件图标
selftest.mjs离线自测:node selftest.mjs 跑 10 组断言,不需要 Harness
node_modules/唯一的运行时依赖 @deepseek-ai/schemastery(Config schema 要用);已 gitignore

设置:两个语言开关

v1.1 起不用改任何文件——插件导出 Config schema 后,DSH 会把它投影成表单:

设置 → 插件 → 插件配置 → 全局中文模式

开关字段默认控制什么
中文思考thinking开思考过程(reasoning)用简体中文
中文回复reply开回复正文、计划、总结等向用户展示的文字用简体中文

两个开关独立,可以任意组合:

  • 只开「中文思考」→ 模型用中文思考,回复跟随用户的语言;
  • 只开「中文回复」→ 回复是中文,思考可以用英文;
  • 两个都关 → 本插件不注入任何规则,等同总开关关闭。

改开关立即生效,无需重启——loader 走 ordinary remount 重新执行 apply(),下一次模型请求就用上新规则。需要英文输出的场合在设置里点一下即可,不用去翻 cordis.patch.yml。(改 index.js 代码本身仍然要重启,那是两回事。)

可选配置

设置页管不到的细项仍可写进 profile 的 cordis.patch.yml,给 zh-cn 这一行加 config:

- id: zh-cn
  name: 'dsh-zh-cn'
  config:
    thinking: true     # 中文思考(与设置页同一字段)
    reply: true        # 中文回复(与设置页同一字段)
    enabled: true      # 改成 false 即临时停用(不等于卸载)
    order: -900        # 主段在系统提示词中的位置,越小越靠前
    tail: true         # 第 2 层:系统提示词收尾段,false 关闭
    snapshot: true     # 第 3 层:历史末尾的每步快照,false 关闭
    extra: "讨论代码时可以保留英文术语。"   # 追加到主段末尾
    text: "……"         # 完全替换主段正文(写了自己的正文后默认正文不再使用,extra 仍会追加在后面)

关掉 snapshot 会让 UI 里那条运行时上下文快照少一段;第 1、2 层不受影响。

修改代码后必须重启

profile 的 HMR 条目是 root: [],按 dsh-hmr 的含义是"仅保留配置监听、不监听模块源码"——所以改动 index.js 不会热重载,必须重启 DeepSeek Harness 才会加载新模块。重新 install_bundle 会返回 ambiguous-install(包已装好,changed:false),那不是故障。

卸载

插件管理器 → 找到「全局中文模式 / Always Chinese」→ 移除。段是由插件上下文注册的 Cordis effect,卸载即自动撤销,不会残留。

注意

  • 本插件改写的是模型收到的指令,不是渲染层:模型偶尔仍可能漏用中文,出现这种情况时回复一句"用中文"即可;它无法把模型已经生成的英文推理改写成中文。三层是为了把这种概率压到最低,但"0% 英文"由模型遵循度决定,不是代码能硬保证的。
  • 每次请求会多出这三层规则的 token(主段约 300 字,收尾段约 50 字,快照约 60 字),属于固定开销。