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 许可证开源,欢迎社区贡献翻译修正。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-harness-zh-cn(zjl1989-li/dsh-harness-zh-cn)
仓库:https://github.com/zjl1989-li/dsh-harness-zh-cn
本站详情页:https://www.yhbd.top/plugins/zjl1989-li-dsh-harness-zh-cn/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-08-27 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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
DeepSeek Harness 中文汉化插件 —— 在运行时把 DSH 的全部系统提示词、工具描述、运行时上下文,以及前端 UI 文本翻译成中文。
这是一个纯运行时插件,分宿主半与客户端半两部分,均通过 DSH 的公开扩展点工作,不修改任何 DSH 源码;卸载插件即完全还原英文:
- 宿主半:通过
system-prompt/assemble瀑布钩子,在每次组装提示词后把模型可见的英文文本替换为中文;并 patchcommands.list,汉化斜杠命令菜单的描述。 - 客户端半:patch
ctx.locale.lookup(t()标签的底层实现)让所有命名空间的zh词典生效;拦截/api/market/list汉化插件市场描述;patchctx.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 半 patchctx.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 →
yogsoth-ai/de-anthropocentric-research-engine
ZSeven-W/dsh-openpencil
joeseesun/qiaomu-rss-dsh
mudden2380078550-creator/write-chinese-long-screenplay
liustack/pptwise