imlishiyuan/deepseek-harness-zh-cn
让 DeepSeek Harness 的推理(reasoning)与输出默认使用简体中文的中文插件。A Chinese-first plugin that makes [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) reason (`reasoning`) and answer in Simplified Chinese by default.
Project Overview项目介绍
deepseek-harness-zh-cn is a Chinese-first plugin for DeepSeek Harness that makes reasoning and answers default to Simplified Chinese. Enable it by copying AGENTS.md.example to ~/.dsh/AGENTS.md, or by installing the npm package and mounting it in cordis.patch.yml. It affects both the final answer and the reasoning (thinking) channel. Note: DeepSeek's API offers no switch to force the reasoning language, so on technical tasks reasoning_content may still appear in English; a fully Chinese prompt raises the probability but does not guarantee it.
deepseek-harness-zh-cn 是面向 DeepSeek Harness 的中文优先插件,将推理与回答默认设为简体中文。可通过复制 AGENTS.md.example 到 ~/.dsh/AGENTS.md,或安装 npm 包并在 cordis.patch.yml 中挂载来启用。它会影响最终回答与推理(思考)通道内容。需注意,DeepSeek API 无强制推理语言开关,技术任务下 reasoning_content 仍可能为英文,全中文提示仅能提升概率而无法保证。
请帮我了解并安装插件:【deepseek-harness-zh-cn】【https://github.com/imlishiyuan/deepseek-harness-zh-cn】
Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add deepseek-harness-zh-cn
把 imlishiyuan/deepseek-harness-zh-cn 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
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.
chuspeeism/dashi-taskboard
ccch1mneyyy/working-activity
Aisland-SJL/dsh-worktable
zhoushoujianwork/easyeda-agent
morluto/rea
linhay/harmony-next.skills