插件目录 / Developer / deepseek-harness-zh-cn
deepseek-harness-zh-cn
已验证 · 实测可装 imlishiyuan
功能简介
中文优先插件,使DSH用中文推理和回答
可用 — 实测通过,早期项目
中文优先插件,使DSH用中文推理和回答 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
deepseek-harness-zh-cn
English | 简体中文
A Chinese-first plugin that makes DeepSeek Harness reason (reasoning) and answer in Simplified Chinese by default.
Overview
This project offers two ways (choose one; the first is recommended) to turn your DSH's reasoning and output into Simplified Chinese, so Chinese-speaking users can read the trajectory and processing directly without translation overhead:
- Method 1 (recommended, simplest): copy
AGENTS.md.exampleto~/.dsh/AGENTS.md. - Method 2 (plugin): install this package from npm and mount it in the profile.
Tip: this plugin's "Chinese-first" rules can also be achieved with the keep-reminder plugin — put the same rules into a project's
.keep-reminderfile, and customize the content freely (not limited to language).
Screenshot
Quick Start
Method 1: Copy AGENTS.md (recommended)
Copy AGENTS.md.example to the DSH home directory as AGENTS.md:
- Linux / macOS:
~/.dsh/AGENTS.md - Windows:
C:\Users\<you>\.dsh\AGENTS.md
# Linux / macOS
cp AGENTS.md.example ~/.dsh/AGENTS.md
On Windows, copy the file manually. Then restart dsh web (or start a new session).
Method 2: Install the npm plugin
A. Official command (backs onto pnpm; install pnpm first):
npm i -g pnpm
dsh plugin --profile web add deepseek-harness-zh-cn
B. Install with npm directly into the profile directory:
cd ~/.dsh/profiles/web # Windows: C:\Users\<you>\.dsh\profiles\web
npm install deepseek-harness-zh-cn --save
Note: this
npm installruns inside the DSH profile directory, not this plugin's project directory.
Mount it in ~/.dsh/profiles/<name>/cordis.patch.yml:
- insert:
- id: dsh-zh
name: 'deepseek-harness-zh-cn'
Restart dsh web.
Scope and Limitations
- Affects both the model's final answer and its reasoning (thinking) channel.
- There is no harness or DeepSeek API switch that forces the reasoning language; on technical tasks the model's
reasoning_contentmay still be English. A fully Chinese prompt maximizes the probability but does not guarantee it.
How It Works
- Method 1:
~/.dsh/AGENTS.mdis injected bydsh-agent-instructionsas a<system-reminder>user message — guidance-level, lower priority than the system prompt and direct user instructions. - Method 2: the plugin listens to the
agent/pre-stepwaterfall and appends a<system-reminder>user message to the request batch at the first step of each turn, reinforcing the Chinese rule once per turn.
Development
Build
npm install
npm run build # compiles src → lib/index.js
Mount locally
During development you can mount the compiled output directly via a file:// URL,
with no package install. Edit ~/.dsh/profiles/<name>/cordis.patch.yml:
- insert:
- id: dsh-zh
name: 'file:///D:/ui-workspace/deepseek-harness-zh-cn/lib/index.js'
Adjust the URL to your checkout path.
Restart
npx @deepseek-ai/dsh web
Stop the running service first if it is already up.
Verify
# Windows
npx @deepseek-ai/dsh web --dump-config | findstr /C:"dsh-zh"
# Linux / macOS
npx @deepseek-ai/dsh web --dump-config | grep dsh-zh
Seeing the dsh-zh row means the plugin is mounted. Then start a new session and the
model should reason and answer in Simplified Chinese.
Disclaimer
This project only injects a language directive; it does not modify model weights or the inference logic. The actual output language still depends on the selected model's behavior, and this project is not responsible for results where the model fails to follow the Chinese directive.
License
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 deepseek-harness-zh-cn」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:imlishiyuan/deepseek-harness-zh-cn Headless(CLI)profile:
dsh plugin --profile headless add github:imlishiyuan/deepseek-harness-zh-cn 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。