dsh-thinking-language: Enabling Agents to Think in Simplified Chinese

Introduction

When running agents in DeepSeek Harness (DSH), the model’s internal reasoning chain often follows the language of the user’s input or defaults to English. If you want the thinking process to be unified as Simplified Chinese regardless of the language used for提问 (prompting), without manually changing the system prompt every time, you need a switchable and persistent injection method. The community plugin dsh-thinking-language (Maintainer: ChendarCe, Category: Model Reasoning) provides exactly this: an instruction written into a system prompt section, plus a settings page toggle and a fully overridable built-in prompt.

What is this

dsh-thinking-language enables DSH to add instructions such as “think in Simplified Chinese” when assembling the system prompt, based on your configuration; you can also use custom text to completely replace the built-in wording. The instruction takes effect in the form of systemPrompt.section, applying to the next step of the current conversation as well as new conversations thereafter. The plugin does not translate existing thinking text nor rewrite conversation history; whether the model strictly complies is a request, not a guarantee.

Core Features

The following introduces the capabilities specified in the plugin’s README.

Chinese Thinking Toggle

When enabled, it appends instructions to the system prompt; when disabled, it appends nothing (the section returns an empty string, which is discarded during assembly).

Custom Prompt (Full Override)

If left blank, the built-in Chinese thinking instruction is used; if the text box is not empty, that text completely replaces the built-in instruction rather than being appended.

Settings Page and Persistence

In Settings → Chinese Thinking / Thinking language (same path in English interfaces), you can view the built-in instruction, word count, and restore the built-in with one click. The two configuration items are volatile configurations that take effect in real-time, saved in the current profile’s cordis.patch.yml (Loader entry id: thinking-language), retained after restart, and take effect during the next system prompt assemble(). The browser reads and writes via DSH’s configForms service without private channels; if the host refuses the write, the page retains the draft and displays the reason.

Behavior Requirements of Built-in Instructions

The built-in instruction requires the model to:

  1. Use Simplified Chinese for reasoning and thinking, regardless of the user’s language or the language of the conversation history;
  2. Keep code, commands, paths, identifiers, API names, and the user’s original text unchanged;
  3. Keep the reply to the user following the user’s language;
  4. Not explain this rule to the user.

Installation and Activation

First, perform CLI installation (replace <profile> with your profile name):

dsh plugin --profile <profile> add github:ChendarCe/dsh-thinking-language

DSH Desktop can install the same Git source in Settings → Plugins. If the settings page does not appear, you need to restart dsh web or the desktop application and then refresh the browser.

Configuration Description

After opening Settings → Chinese Thinking, the main items are as follows (consistent with the README):

Configuration Default Value Behavior
Enable Chinese Thinking / Enabled On When enabled, adds instructions to the system prompt; when disabled, does not add.
Custom Prompt (Full Override) / Custom prompt Empty If empty, uses built-in instructions; if not empty, completely replaces built-in instructions.

Following the steps above, the next prompt assembly will incorporate the new configuration.

Implementation Details (For Troubleshooting and Secondary Development)

  • Host Side: index.js exports a Config with two volatile fields, enabled and prompt, registers systemPrompt.section at order 10400 (located after all built-in sections); re-evaluates text on every assemble().
  • Client Side: client.js registers settings.section, binds to the thinking-language namespace via configForms; the Host side does not initiate network requests.

Use Cases and Notes

Suitable for developers who need to stably constrain “internal thinking language to Simplified Chinese” in DSH without manually writing or copying system prompt fragments. Custom prompts are suitable for scenarios with clear compliance or style requirements that require completely replacing the built-in wording.

Before installation, please review the GitHub Repository source code and MIT license yourself; the plugin runs with the permissions of the current dsh process, and like all DSH plugins, you should confirm the source is trustworthy.

Compatibility: The README states verification on DSH 0.2.1-rc.2 and Node 24; requires DSH configuration APIs supporting volatile configurations for configForms, Cordis 4, and @deepseek-ai/schemastery >= 3.18.4. Hosts that cannot provide configForms may not display the settings page. The Node engine in package.json is ^22.19.0 || >=24.0.0, and the plugin version is 1.0.0.

The community directory SkillHub Plugin Page and GitHub are independent information sources and have no official affiliation with DeepSeek / Hithink; ecologically, DSH advocates “everything is a plugin,” and you can install from the directory or Git source as needed.

Links

  • Directory Page: https://www.skillhub.cn/plugins/ChendarCe/dsh-thinking-language
  • Repository: https://github.com/ChendarCe/dsh-thinking-language
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye