
YKennen/dsh-zh-output
30Last commit Aug 15, 2026
dsh-zh-output DSH plugin
This plugin provides Chinese-language presets for DeepSeek Harness, ensuring all model thinking and output is in Chinese (except code, commands, identifiers, etc.). It includes five presets based on official modes, plus a Chinese compaction engine to maintain the language constraint during context compression.
How to install the dsh-zh-output DSH plugin
dsh plugin --profile <name> add github:<你的用户名>/dsh-zh-outputThis source command needs manual review. Copying does not run it.
dsh-zh-output DSH plugin data source
dsh-zh-output DSH plugin snapshot date: Aug 16, 2026
discovered
What the dsh-zh-output DSH plugin can do
- Provides five Chinese presets: standard-zh, code-zh, minimal-zh, cordis-zh, and router-standard-zh
- Enforces two hard constraints: first prompt is in Chinese, and the persona includes a 'language iron rule' forcing all output to Chinese
- Includes a Chinese compaction engine (dsh-zh-compaction) that replaces the official English summarization instruction with Chinese
- Supports installation as a DSH bundle via `dsh plugin` command or by copying presets to the user preset directory
- Provides a deploy script (deploy.ps1) to set up the compaction engine and sync presets
- Includes an optional patch to change the checkpoint preamble to Chinese
Where the dsh-zh-output DSH plugin fits
- Users who need the model to consistently respond in Chinese for better communication
- Developers building Chinese-language applications or chatbots using DeepSeek Harness
- Teams that require all internal documentation and code comments generated by the model to be in Chinese
- Users who want to experiment with Chinese-driven AI workflows in a multi-language environment
Who the dsh-zh-output DSH plugin is for
- Chinese-speaking users of DeepSeek Harness
- Developers integrating DeepSeek Harness into Chinese-language products or services
dsh-zh-output DSH plugin limitations
- Only works with DeepSeek Harness (not standalone)
- The standard web/headless CLI overwrites preset roots, so bundle installation is not effective for standard CLI; users are advised to use the copy-preset method
- The checkpoint preamble remains in English unless the optional patch is applied
- The cordis-zh preset disables the `tool-cordis` tool by default to avoid conflicts with the official cordis mode
dsh-zh-output DSH plugin: from the repository README
Quoted from the YKennen/dsh-zh-output README, the upstream source of the dsh-zh-output DSH plugin. Copyright remains with the original authors.
为 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 提供「强制中文思考与输出」的中文预设(模式)。 每个中文预设都满足两条硬性约束: 1. 注入给模型的第一句话是中文; 2. persona 中写入「语言铁律」,强制模型的全部思考过程与所有输出使用中文(仅代码、命令、标识符、URL、文件路径、日志原文等非自然语言内容可保留原样)。 ## 包含的模式 | 目录(预设 id) | 显示名 | 对应官方模式 | |----------------|--------|-------------| | `standard-zh` | 标准模式(中文) | `standard` | | `code-zh` | PTC 模式(中文) | `code` | | `minimal-zh` | 极简模式(中文) | `minimal` | | `cordis-zh` | 创造模式(中文) | `cordis` | | `router-standard-zh` | 路由标准模式(中文,实验性) | `router-standard`(自定义) | 前四个预设基于官方预设完整复制而来,仅改动人设(persona)、计划模式提示词与注释,功能与官方版本一致。`router-standard-zh` 基于你自定义的 `router-standard`(任务感知路由)实验预设:保留 router 的机制与工具(`dev_router_status` / `dev_router_mode` / `dev_mode_subagent`),仅把注入给模型的所有自然语言(人设、模式 persona、路由指导、工具描述)中文化并加入「语言铁律」,压缩引擎同样使用中文版 `dsh-zh-compaction`。 ## 安装 ### 方式一(推荐,任何部署都可靠):复制到用户预设目录 把 `presets/` 下的目录复制到你的用户预设根目录。该目录默认是 `${DSH_HOME:-$HOME/.dsh}/.agent-presets/`(Windows 下为 `%DSH_HOME%\.agent-presets\`,未设置 `DSH_HOME` 时为 `%USERPROFILE%\.dsh\.agent-presets\`)。 Windows PowerShell(在本仓库根目录执行): ```powershell $root = if ($env:DSH_HOME) { $env:DSH_HOME } else { Join-Path $env:USERPROFILE '.dsh' } $dest = Join-Path $root '.agent-p
Read the full READMERepository license: MIT
dsh-zh-output DSH plugin questions
How do I install this plugin?
You can install it by copying the presets to your user preset directory, or by using the `dsh plugin` command: `dsh plugin --profile <name> add github:YKennen/dsh-zh-output`. The first method is recommended for standard CLI users.
Does this plugin work with the official DeepSeek Harness web interface?
Yes, it works. After installing the presets, you will see the Chinese modes in the mode selector when creating a new session. No restart is needed.
What about the context compression? Will it still be in English?
The plugin includes a Chinese compaction engine that replaces the English summarization instruction with Chinese. However, the checkpoint preamble (the first line of the compressed message) remains in English unless you apply the optional patch script.
Can I use the router-standard-zh preset?
Yes, but it is experimental. It retains the router mechanism and tools, with all natural language replaced by Chinese. It is based on a custom 'router-standard' preset.
Why does the cordis-zh preset disable the tool-cordis tool?
To avoid conflicts with the official cordis mode, which registers a process-level singleton inspector. If you never use the official cordis mode, you can enable it by editing the preset's YAML file.