Introduction¶
When conducting long conversations in DeepSeek Harness, two common problems occur: first, the model’s persona output may contain English; second, after context compression, the checkpoint summary might still be in English, leading to unstable Chinese constraints later on.
dsh-zh-output addresses these issues by providing a set of Chinese presets for “forced Chinese thinking and output,” along with a Chinese context compression engine that only overrides the summarize hook.
What is this¶
dsh-zh-output is a DeepSeek Harness plugin, but can also be used as a DSH bundle. It is maintained by YKennen and is licensed under MIT.
It primarily provides the following Chinese presets:
standard-zhcode-zhminimal-zhcordis-zhrouter-standard-zh
It also comes with the Chinese context compression engine dsh-zh-compaction to handle language issues in compressed summaries.
Core Features¶
Chinese Presets¶
The first four presets (standard-zh, code-zh, minimal-zh, cordis-zh) are complete copies of the official presets, modified only in persona, plan mode prompts, and comments; their functionality is identical to the official versions.
router-standard-zh preserves the router mechanism and tools and translates natural language into Chinese. Since the provided materials do not contain the complete source or configuration of this custom preset, please confirm that a compatible router preset already exists in your current DSH environment before using it.
Chinese Context Compression¶
dsh-zh-compaction only overrides the summarize hook and is used to process compressed summaries into Chinese.
It is important to note that in the checkpoint messages generated by compression, the preamble is still in English by default; a pure plugin cannot override this part. If needed, you can run the optional patch script patch-preamble-zh.ps1 to patch the compressed checkpoint preamble to Chinese.
Creative Mode Compatibility¶
cordis-zh disables tool-cordis by default to avoid conflicts with the official Creative Mode.
If you are not using the official Creative Mode, you can enable it by deleting disabled: true from the tool-cordis line in presets/cordis-zh/agent.cordis.yml.
Installation and Usage¶
Method 1: Copy to User Preset Root Directory (Recommended)¶
First, copy the presets/ directory to the user preset root directory. The default root directory is usually:
${DSH_HOME:-$HOME/.dsh}/.agent-presets/
On Windows, it corresponds to:
%DSH_HOME%\.agent-presets\
When DSH_HOME is not set:
%USERPROFILE%\.dsh\.agent-presets\
Execute one of the following commands in the repository root.
Windows PowerShell:
$root = if ($env:DSH_HOME) { $env:DSH_HOME } else { Join-Path $env:USERPROFILE '.dsh' }
$dest = Join-Path $root '.agent-presets'
New-Item -ItemType Directory -Force -Path $dest | Out-Null
Copy-Item -Recurse -Force .\presets\* $dest
macOS / Linux:
mkdir -p "${DSH_HOME:-$HOME/.dsh}/.agent-presets"
cp -R presets/* "${DSH_HOME:-$HOME/.dsh}/.agent-presets/"
After copying, the mode selector in the Web interface will refresh immediately without needing to restart.
Method 2: Install as a DSH Bundle¶
Since dsh.bundle is declared in package.json, this repository can also be installed as a DSH bundle.
You can execute:
dsh plugin --profile <name> add github:<your-username>/dsh-zh-output
Here, <name> and <your-username> are placeholders and need to be replaced with the actual profile name and username.
Note: Under the standard web/headless CLI, the agent-presets roots are forced to be rewritten to the built-in preset root, so the preset registration of this bundle will not take effect. Regular users should prefer Method 1.
Deploying the Chinese Compression Engine¶
Running deploy.ps1 allows you to deploy the Chinese compression engine and sync presets with one click:
powershell -ExecutionPolicy Bypass -File .\deploy.ps1
This script deploys the Chinese compression engine into the profiles directory’s hoisted dependencies directory (required for the standard CLI to parse) and syncs presets/ to the user preset directory.
Restart dsh web for the changes to take effect.
If you have run pnpm install afterwards, the hoisted directory will be rebuilt and manually placed packages will be cleared, requiring you to run deploy.ps1 again.
Typical Usage¶
-
Create a new conversation by selecting “Standard Mode (Chinese)”, “PTC Mode (Chinese)”, “Minimal Mode (Chinese)”, or “Creative Mode (Chinese)” in the Web interface.
-
To set a Chinese preset as the default, change
agent-presets.defaultin settings tostandard-zhor another Chinese preset ID. -
If context compression is enabled, deploy
dsh-zh-compactionfollowing the steps above first, then restartdsh web. -
If needed, run the optional patch script
patch-preamble-zh.ps1to change the compressed checkpoint preamble to Chinese.
Applicable Scenarios and Notes¶
Suitable for developers who need to stably use Chinese thinking and output in DeepSeek Harness sessions, especially for scenarios where existing DSH presets need to be replaced with a Chinese persona. It does not change the core operation of DSH, but mainly affects presets, compressed summaries, and individual optional patches.
Notes before use:
- The plugin runs with the permissions of the current
dshprocess; check the source code, scripts, and license before installing. - The current license is MIT.
- Method 2 does not work under the standard web/headless CLI; regular users should prefer Method 1.
router-standard-zhrelies on existing router mechanisms and tools. Since the source or configuration is not fully provided, you need to confirm compatibility yourself.- The community directory is not an official app store; the plugin has no official affiliation with DeepSeek or Hypothesis.
Links¶
GitHub: https://github.com/YKennen/dsh-zh-output
The directory page link has not been confirmed in the verified materials and is not listed in this article.