Introduction

When using DSH Web, if you want the responses, thinking, and tool outputs from different sessions and presets to uniformly output in Chinese, without manually maintaining the system prompt for each preset, you can use a client-side plugin for centralized control.

dsh-chinese-mode does this: it provides a compact “Chinese” capsule toggle on the left side of the input box. When enabled, it injects language requirements into the system prompt of any preset.

What This Is

dsh-chinese-mode is a DSH client plugin, with the repository owner being dawnliming and the license being MIT.

The problem it solves is transforming “Chinese output” from a local convention within a single preset into a setting that can be uniformly toggled, persistently saved, and controlled by region on the DSH Web side.

Core Features

Global and Persistent

The toggle state is stored in the host-side settings under the namespace dsh-chinese-mode, taking effect across all sessions.

This means it is not just valid for the current chat window and does not rely on a preset’s internal declaration.

Unconditional Injection

When enabled, the plugin injects language requirements without first detecting whether the prompt already contains Chinese to decide whether to inject.

The injection position is before the persona.

Regional Language Toggles

The plugin splits language control into three regions:

  1. Response region
  2. Thinking region
  3. Tool region

Each region has an independent toggle: enabled for Chinese, disabled for English.

This allows combinations like “response in Chinese, thinking in English, tools in Chinese.”

Settings Page

The plugin provides a “Chinese Mode” configuration page in DSH settings, including:

  • Master toggle
  • Toggle for displaying the input box capsule switch
  • Region toggles for response, thinking, and tools
  • Anchor keywords and anchor behavior

Text is managed by built-in defaults; the settings page does not allow editing to avoid manual pollution of the system prompt.

The legacy single text field will automatically be preserved as “Response Text” after upgrading.

Input Box Capsule Toggle

There will be a permanent compact “Chinese” toggle next to the input box.

This toggle can directly switch language injection; its visibility can be individually controlled in the settings page.

Works for Any Preset Except Complete Persona

The plugin works for any preset except complete persona.

Documentation indicates this is a limitation of the DSH mechanism.

Anchor Compatibility

Anchor compatibility is disabled by default.

When enabled, after an anchor preset is promoted:

  • Thinking uses English
  • Response and tools still follow the set configuration

When anchor compatibility is disabled, the plugin processes according to the regular settings.

Disabling Removes the Plugin

When the master toggle is turned off, the section is removed from subsequent assemblies.

It does not translate historical messages and does not insert visible chat content.

Installation and Enabling

The plugin can be installed with one click after being listed in the plugin marketplace, or via command line:

dsh plugin --profile web add github:dawnliming/dsh-chinese-mode

After installation, restart dsh web:

dsh web

If you have local source code, you can also install it to the profile:

cd ~/.dsh/profiles/web
pnpm add file:../../plugins/dsh-chinese-mode

And add to dsh.profile.bundles in package.json:

"dsh-chinese-mode"

Or let dsh automatically reconcile.

Typical Usage

  1. Install the plugin and restart DSH Web.

  2. Find the “Chinese” capsule toggle on the left side of the input box and click to enable it.

  3. Go to the “Chinese Mode” configuration page in DSH settings and adjust the master toggle, region toggles, anchor keywords, and anchor behavior as needed.

  4. If you only want some regions to use Chinese, turn on the corresponding region toggle and keep the others off.

  5. If you don’t want the toggle to permanently appear next to the input box, you can disable the “Input Box Capsule Toggle” display in the settings page.

Applicable Scenarios and Notes

Suitable for the following use cases:

  • Wanting a more unified default language output for DSH Web
  • Not wanting to repeat Chinese requirements in each preset
  • Needing to differentiate language for response, thinking, and tool content
  • Needing to maintain the same Chinese mode settings across multiple presets

Before use, note the following:

  • The plugin participates in DSH’s system prompt assembly; check the source code and license before installation.
  • The license is MIT.
  • Does not take effect for complete persona; documentation indicates a DSH mechanism limitation.
  • Disabling the master toggle only affects subsequent assemblies, does not translate historical messages, and does not insert visible chat content.
  • The client lib/client.js is a ModuleLoader bundle; it requires rebuilding after modification.

Conclusion

dsh-chinese-mode provides a basic and practical DSH Web Chinese mode toggle: globally available, persistently savable, regionally controllable, and with optional compatibility for anchor behavior.

Directory page: https://www.skillhub.cn/plugins/dawnliming/dsh-chinese-mode

Repository: https://github.com/dawnliming/dsh-chinese-mode