Foreword¶
DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture, with the Web GUI’s default profile being web. The native interface is primarily in English, with statistics often truncated, thinking blocks collapsed by default, and the session list lacking archiving and deletion options; for long-term daily use in a Chinese environment, one often has to modify styles, supplement text, or write additional scripts to inject prompts.
This introduces the community-maintained client plugin deepseek-harness-zh_pro (maintainer magian1127, current version 0.7.0, MIT license). Without replacing the DSH core, it centrally handles interface optimization, layout adjustments, optional prompt injection, and session lifecycle management; Chinese completions only apply when the interface is in Chinese, while other enhancements work in both Chinese and English interfaces.
What This Is¶
deepseek-harness-zh_pro is a comprehensive enhancement plugin for the DSH Web client, categorized as a “client” plugin. The project is open source on GitHub (approximately 18 stars) and can also be found in the SkillHub community directory: https://www.skillhub.cn/plugins/magian1127/deepseek-harness-zh_pro. SkillHub is an independent community site with no official affiliation to DeepSeek / High-Flyer.
The plugin does not register model tools or upload data. Except for the explicitly enabled prompt injection, agent role prompt localization, and tool description localization by the user, other functions do not modify model requests.
Core Features¶
All switches and parameters are located in DSH Settings → Enhancement Settings. For complete default values and boundaries, see the repository’s Behavior Contract.
Chinese Interface Completion¶
Enabled by default, effective only in Chinese interfaces: Corrects residual English, standardizes tokens, API keys, model identifiers, duration, and quantity formats. DOM hardcoded text only covers confirmed built-in lists; unrecorded text remains unchanged to avoid mistakenly altering content or third-party plugin content.
Thinking Block and Statistics Display¶
- Full Statistics Display (default on): Chat statistics maintain a single-line complete display, automatically reduce font size, and scroll horizontally when extremely long.
- Auto-expand Latest Thinking (default on): When streaming thinking appears, expand the latest one; when new thinking appears, collapse the previous one.
- Default Expanded Lines (default 20 lines): Excess is collapsed; the button shows the remaining line count; after clicking “Expand Again,” the expansion progress is maintained. Set to
0for no limit. - Expansion Mode (default button mode): Button mode expands in batches; scroll mode provides an independent scrollbar for collapsed content, supporting streaming follow.
Layout and Session Management¶
- Conversation Width (default on, 90%): On large screens, adjusts the chat column width between 50%–100%, with evenly distributed margins on both sides.
- Auto-archive Old Sessions (default 7 days): When the new session interface opens, automatically archive sessions inactive beyond the specified number of days (only hidden from the list, logs are retained; set to
0to disable). - View Archived (default on): Adds an “Archive” button to the workspace row; archived sessions are displayed in reverse chronological order of last activity, with a default of 5 per batch.
- Delete Session (Recycle Bin) (default on): Adds “Delete Session” to the three-dot menu; the log directory is moved to the system recycle bin (Windows Recycle Bin / macOS Trash / Linux XDG Trash), and the workspace ledger slot is removed.
Optional Prompt and Agent Localization¶
The following features are disabled by default and require manual enabling:
| Feature | Description |
|---|---|
| Prompt Injection | Injects editable prompts into subsequent model requests, optionally as the initial system prompt or first user prompt |
| Agent Role Prompt Localization | Replaces the system prompts of four default agents (Standard/Coding/Minimal/Creative) with Chinese versions, effective only in new sessions |
| Tool Description Localization | Translates the tool descriptions injected into model requests to Chinese (tool names and parameters unchanged), effective only in new sessions |
Editing the prompt text does not equal enabling injection; prompt injection is controlled by a separate switch and is disabled by default.
Requirements¶
- DeepSeek Harness Web GUI, with the default profile being
web - Node.js
^22.19.0 || >=24.0.0
Installation and Enabling¶
After installing via the official channel, restart DSH once; hot installation takes effect immediately while DSH is running.
# Official channel: Restart DSH once after installation
dsh plugin --profile web add deepseek-harness-zh_pro
# Hot installation: Takes effect immediately while DSH is running
npx -y deepseek-harness-zh_pro install --profile web
After installation, you can check the status:
npx -y deepseek-harness-zh_pro status --profile web
To update, re-run the installation command; after updating the browser-side content, refresh the page.
Uninstallation:
dsh plugin --profile web remove deepseek-harness-zh_pro
# Or
npx -y deepseek-harness-zh_pro remove --profile web
Uninstallation cleans up temporary hot runs and running entries but does not delete DSH session data. Existing settings in localStorage and settings may be retained and can be used again after reinstallation.
Typical Usage¶
Daily Interface Enhancement¶
After installation and restart (or refreshing the page after hot installation), open DSH Settings → Enhancement Settings and adjust the conversation width, thinking expansion lines, and archiving days as needed. Chinese interface users can keep “Chinese Completion” enabled; if the interface language is English, features like statistics, thinking expansion, and conversation width are still available.
On-Demand Prompt Injection¶
- Turn on the “Prompt Injection” switch in the Enhancement Settings.
- Edit the prompt text and select the injection target (initial system prompt or first user prompt).
- Takes effect after creating a new session; existing sessions will not be automatically re-injected.
Viewing and Restoring Archived Sessions¶
Click the “Archive” button in the workspace row to hide the normal sessions in that group; archived sessions appear in the corresponding group in the official list. Click the archived row to restore and open it; the three-dot menu at the end of the row supports renaming, forking, unarchiving, and deletion.
Settings and Data Storage¶
| Data | Storage Location |
|---|---|
| Chinese Completion, Statistics, Thinking Expansion, Default Expanded Lines, Conversation Width, View Archived | Browser localStorage: deepseek-harness-zh_pro:enhancements |
| Prompt Switch, Text, Injection Target, Auto-archive Days | DSH settings.yaml, namespace dsh-zh |
| Agent Role Prompt Localization, Tool Description Localization | DSH settings.yaml, namespace dsh-zh |
Use Cases and Notes¶
Suitable for developers who use DSH Web long-term: need more complete Chinese interface text, more controllable thinking block display, a wider conversation area, and session archiving and deletion capabilities. If you want to uniformly inject system prompts or localize default agents in new sessions, you can enable the corresponding switches as needed.
Before installation, it is recommended to read the GitHub source code and MIT license to confirm the feature scope. The plugin runs with the current DSH process permissions; deleting a session will move the log to the system recycle bin, so please confirm that you no longer need the session data before proceeding.
Local source code debugging (install dependencies first if using for the first time):
pnpm install
node bin/dsh-zh.mjs install --profile web --link $PWD
For more development and troubleshooting documentation, see the repository’s docs/ directory: behavior contract, runtime architecture, development guide, troubleshooting, and release process.
Links¶
- SkillHub Directory Page: https://www.skillhub.cn/plugins/magian1127/deepseek-harness-zh_pro
- GitHub Repository: https://github.com/magian1127/deepseek-harness-zh_pro