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-zh project.

Core Functionality

After installation, the plugin adds a “Chinese Thinking” section to the agent’s system prompt. Its specific capabilities include:

  1. Default to Chinese: When no language is specified, the model thinks and responds in Chinese; code, commands, and proper nouns remain in English.
  2. Chinese Typesetting Standards: Rules for spacing between Chinese and English, full-width punctuation, numbers and units, and bracket/quote formatting.
  3. Best Practices for Mixed Chinese-English Text: Translation and retention rules for terms, annotation of first occurrences, and avoidance of over-translation.
  4. Code Comment Language: Guidance on when to use Chinese comments and when to use English comments.
  5. Chinese Commit Standards: type remains in English, while scope/description/body use Chinese.
  6. 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.

  1. Clone the repository locally.
  2. Run npm install at the repository root to install the dependency (@deepseek-ai/schemastery).
  3. 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/schemastery must 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.