DeepSeek Harness (DSH) adopts a plugin-based architecture. When developing agents, a common issue is that the model defaults to thinking or responding in English mid-conversation. The dsh-chinese-thinking plugin injects specific “Chinese thinking” instructions into the system prompt, forcing the model to maintain Chinese-language thinking and output during Chinese conversations.
Plugin Positioning¶
- Name: dsh-chinese-thinking
- Maintainer: GongYuanCaiJi
- Core Function: Injects a Chinese-thinking preset by default for DSH agents.
- Positioning: A DSH plugin, ported from the
superpowers-zhproject.
Core Functionality¶
After installation, the plugin adds a “Chinese Thinking” section to the agent’s system prompt. Its specific capabilities include:
- Default to Chinese: When no language is specified, the model thinks and responds in Chinese; code, commands, and proper nouns remain in English.
- Chinese Typesetting Standards: Rules for spacing between Chinese and English, full-width punctuation, numbers and units, and bracket/quote formatting.
- Best Practices for Mixed Chinese-English Text: Translation and retention rules for terms, annotation of first occurrences, and avoidance of over-translation.
- Code Comment Language: Guidance on when to use Chinese comments and when to use English comments.
- Chinese Commit Standards:
typeremains in English, whilescope/description/bodyuse Chinese. - Domestic Git Workflow: Core principle configuration.
Installation and Activation¶
This plugin has not yet been published to npm and must be installed via a local path.
- Clone the repository locally.
- Run
npm installat the repository root to install the dependency (@deepseek-ai/schemastery). - Run the DSH plugin installation command.
# 进入仓库目录
cd dsh-chinese-thinking
# 安装依赖
npm install
# 安装插件(替换 <你的 profile> 为实际配置文件名)
dsh plugin --profile <你的 profile> add .
After installation, restart DSH and start a new conversation for the plugin to take effect.
Configuration and Usage¶
By default, the plugin is configured according to the default values in the schema. config.text contains the specific Chinese-thinking instructions; you can modify this configuration directly to override the default instructions.
Example of overriding the configuration in cordis.patch.yml:
- insert:
- id: chinese-thinking
name: 'dsh-chinese-thinking'
config:
enabled: true
order: 60
text: |
用中文思考,用中文回复。
Notes¶
- Local Installation: The plugin is currently not published to npm; you must clone the repository first and then install it locally.
- Dependency: The dependency on
@deepseek-ai/schemasterymust be satisfied before installation. - License: Follows the MIT License.
- Compliance: For licensing details or compliance questions, please contact the maintainer through GitHub Issues.
This plugin is a ported version of superpowers-zh; the prompt body was ported verbatim from its skill modules such as chinese-documentation and chinese-code-review.