DeepSeek Harness plugin

dsh-zh

Localize leftover DSH UI chrome to Chinese (command palette descriptions, permission presets, reasoning effort) at the display layer, and detect when the official build adapts them

Jump to install

Source facts

Repository
HarryLi-7/dsh-zh
Latest update
Aug 16, 2026
Category
Development & Runtime
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/HarryLi-7/dsh-zh
Plugin: dsh-zh
Author: HarryLi-7

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-zh — DSH 界面汉化(显示层)+ 官方适配检测

纯 client 插件。把 DSH Web 界面里残留的英文 UI chrome 换成中文,只改显示文字,不碰任何功能;并检测官方是否已自己适配。

功能

1. 界面汉化(显示层)

只替换以下整文本节点的显示内容(值、属性、事件、会话内容一概不动):

位置英文中文
命令面板 /Compact older conversation history压缩较旧的会话历史
命令面板 /Download this Session log as a ZIP archive导出本会话日志为 ZIP 压缩包
命令面板 /record feedback about this session记录对本会话的反馈
命令面板 /set or view the goal for a long-running task查看或设置长期任务的目标
命令面板 /Switch the permission preset (sandbox mode + approval policy)切换权限预设(沙箱模式 + 审批策略)
命令面板 /Enter or leave plan mode进入或退出计划模式
权限预设Read Only只读
权限预设Workspace Write工作区写入
权限预设Full access完全访问(文字与图标用橙红强调色 #ff5722)
推理等级(菜单内)Off / High / Max / Default关闭 / 高 / 最高 / 默认
确认弹窗确认启用 Full access?确认启用完全访问?
  • 命令名(/compact 等)不翻译——它们是输入标识符。
  • Full access(完全访问)强调色:在底部权限选择器、/permission 弹窗、设置页「权限」行中,完全访问 的文字与图标(SVG 继承 currentColor)使用橙色与红色之间的强调色 #ff5722;关闭开关时一并还原。
  • 运行状态光影:官方在系统开启"减弱动态效果"(prefers-reduced-motion)时停用"深度思考中"的 shimmer 动画;本插件强制恢复光影流动(仅作用于该状态容器,不影响其他界面)。
  • 短通用词(Off/High/Max/Default)只在 role="menu" / role="listbox" / aria-haspopup="menu" 的菜单类表面内替换,绝不会动到用户消息、助手回复、工具结果、代码块、输入框。
  • 会话内容([data-chat-flow] / [data-chat-flow-kind] / 思考块 / 工具视图)整区跳过。
  • 功能零影响:权限预设的机器值(read-only / workspace-write / danger-full-access)、推理等级 id(off / high / max)、命令名全部保持原样,只是屏幕上显示的中文不同。

2. 官方适配检测

每次页面加载静默探测一次官方宿主数据(3 条只读 RPC):

  • commands.list → 比对 6 条命令描述的英文原文;
  • 权限设置 schema → 比对 3 个预设名;
  • 当前模型(deepseek 系)→ 比对推理等级名。

只要官方把其中任何一条改成中文或改了文案,页面顶部显示一次性提示条(如「官方已适配:/ compact、权限预设…」),可点「知道了」关闭。同一结果不重复提示;探测失败(连接未就绪)不记录,下次加载重试。

3. 存储纪律(零增长日志)

  • 只用 localStorage 两个固定键:dsh-zh.enableddsh-zh.lastProbe(常量大小,覆盖写入,绝不追加)。
  • 全程不使用 ctx.logger,不产生任何会话日志。
  • 替换记录 Map 只保留仍挂载在文档中的节点,自动清理。

开关

设置 → 通用设置 → 「界面汉化(中文)」(开关)。关闭 = 立即停止汉化并把已替换的文本还原为原文;重新打开 = 重新生效。

安装

dsh plugin --profile web add ~/.dsh/profiles/packages/dsh-zh

client 端改动刷新页面即可;新增插件需要重启 harness 才载入(由你手动重启)。

卸载

dsh plugin --profile web remove dsh-zh