zjl1989-li/dsh-harness-zh-cn

DeepSeek Harness 中文汉化插件:运行时把所有系统提示词、工具描述与运行时上下文翻译成中文(system-prompt/assemble 瀑布钩子,零源码修改)

Project Overview项目介绍

This is a localization plugin built exclusively for DeepSeek Harness (DSH) that translates the entire DSH interface, system prompts, tool descriptions, and runtime context into Simplified Chinese. It operates purely at runtime and does not modify any of DSH’s source code, splitting functionality between a host half and a client half that both leverage DSH’s official public extension points. Any changes made by the plugin are completely reversible; uninstalling it will restore DSH’s original English interface. It ships with 1814 pre-built translation entries that cover DSH’s core system, all built-in tools, and the full Cordis API catalog.

The plugin works without modifying DSH source files in node_modules, so it remains functional even after you upgrade DSH to a newer version. It preserves all machine-readable protocol markers like exit codes, kill signals, and sandbox tags so it does not break DSH’s downstream parsing logic. You can enable or disable translations for three separate categories—system prompt sections, runtime contexts, and tool descriptions—to match your personal workflow preferences. When paired with the dsh-plugin-marketplace plugin, it can automatically translate the English descriptions of third-party DSH plugins in the marketplace interface. This translation is done on-demand with caching to avoid redundant LLM calls.

There are multiple installation methods available for this plugin. The recommended way is to install it via npm using npm install dsh-harness-zh-cn or pnpm add dsh-harness-zh-cn, but you can also install it directly from this GitHub repository or reference a local development copy. After installation, you can enable it via one of three methods: the DSH web UI’s plugin management panel, adding it to your profile bundle list, or adding an entry to your profile’s cordis.patch.yml. It is released under the permissive open source MIT license, and community contributions to improve translations are welcome.

这是一个专门为 DeepSeek Harness (DSH) 开发的原生汉化插件,能够在运行时将 DSH 的全部系统提示词、工具描述、运行时上下文以及前端 UI 文本翻译为简体中文。插件分为宿主端和客户端两部分,全部通过 DSH 公开扩展点工作,不修改任何 DSH 源码,卸载后即可完全恢复英文界面。目前内置 1814 条翻译,覆盖了核心组件、全部工具和 Cordis 完整 API 目录。

插件支持零侵入使用,升级 DSH 后依然生效,机器协议标记(如退出码、信号标记等)会原样保留,不会破坏 DSH 的下游解析功能。用户可分别开关系统提示片段、运行时上下文、工具描述三类翻译,满足不同使用习惯。配合 dsh-plugin-marketplace 使用时,还能自动翻译插件市场中各插件的英文描述。

插件支持多种安装方式,推荐通过 npm 安装,也可从 GitHub 仓库直接安装,或本地引用开发路径。安装后可通过 UI 插件管理、配置文件列表或补丁配置三种方式启用,配置项支持开关不同类别的翻译和开启调试日志。插件采用 MIT 许可证开源,欢迎社区贡献翻译修正。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:zjl1989-li/dsh-harness-zh-cn

把 zjl1989-li/dsh-harness-zh-cn 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-harness-zh-cn

npm version npm downloads License

DeepSeek Harness 中文汉化插件 —— 在运行时把 DSH 的全部系统提示词、工具描述、运行时上下文,以及前端 UI 文本翻译成中文。

这是一个纯运行时插件,分宿主半与客户端半两部分,均通过 DSH 的公开扩展点工作,不修改任何 DSH 源码;卸载插件即完全还原英文:

  • 宿主半:通过 system-prompt/assemble 瀑布钩子,在每次组装提示词后把模型可见的英文文本替换为中文;并 patch commands.list,汉化斜杠命令菜单的描述。
  • 客户端半:patch ctx.locale.lookup(t() 标签的底层实现)让所有命名空间的 zh 词典生效;拦截 /api/market/list 汉化插件市场描述;patch ctx.remote.commands.list 汉化命令菜单描述。

当前内置 1814 条翻译,覆盖系统提示 sections、运行时上下文、全部工具描述与参数描述、cordis 完整 API 目录(55 服务 + 56 事件),以及前端 UI 的 t() 标签与命令菜单描述。

特性

  • ✅ 零源码修改:不碰 node_modules,升级 DSH 后依然有效
  • ✅ 覆盖面广:系统提示 sections、运行时上下文 contexts、工具描述与参数描述、cordis API 目录、前端 UI 标签、命令菜单描述全部汉化
  • ✅ 协议安全:[exit code: N]、[killed by signal: X]、[sandbox: ...]、[stderr] 等被 DSH 或前端解析的机器协议标记保留原样,不破坏下游解析
  • ✅ 可开关:sections / contexts / tools 三类翻译可分别关闭
  • ✅ 前端 UI 汉化:patch ctx.locale.lookup 让所有命名空间的 zh 词典在 t() 标签上生效——包括 composer 的 + 按钮、斜杠菜单的分组标题与周边文案,无需改动 DSH 前端代码
  • ✅ 命令菜单汉化:host 半 patch commands.list、client 半 patch ctx.remote.commands.list 双保险,把 + 菜单里各命令的英文描述翻译成中文;命令名称保持英文(它是 /goal 解析、派发与模糊匹配依赖的标识符),且命令是否展示由 DSH 按"是否在行首 / 是否带参数"正常过滤,汉化不改变行为
  • ✅ 插件市场描述翻译:安装 dsh-plugin-marketplace 后,插件市场里各插件的英文描述会自动翻译成中文——先即时显示(词表兜底,不卡加载),后台用 LLM 批量翻译后自动刷新一次显示流畅中文,结果缓存(同一描述只翻一次,不重复消耗 token)
  • ✅ 即插即用:作为普通 DSH 插件加载,卸载即还原

安装

方式一:npm 包(推荐)

npm install dsh-harness-zh-cn
# 或
pnpm add dsh-harness-zh-cn

方式二:从 GitHub 安装

npm install git+https://github.com/zjl1989-li/dsh-harness-zh-cn.git

方式三:本地开发(直接引用本仓库)

npm install <本仓库路径>

启用

方式一:UI 插件管理(推荐)

在 DSH Web GUI 的 设置 → 插件管理 中添加 dsh-harness-zh-cn,重启后生效。UI 会正确登记 bundle 并持久化配置。

方式二:profile bundle 列表

在 profile 的 package.json 的 dsh.profile.bundles 列表中加入(cordis.yml 是自动生成文件,请勿直接编辑):

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-minigames 下一个 Next dsh-computer-use →