dsh-prompt-zh: DSH System Prompts Simplified Chinese Localization

Preface

When running agents in DeepSeek Harness (DSH), system prompts, MCP usage instructions, and runtime injections are often still in English. The longer the rules, the higher the cost of reading and troubleshooting; if you change tool names and parameter schemas to Chinese as well, it breaks the calling contracts with hosts and plugins. Below we introduce the community plugin dsh-prompt-zh (npm package name dsh-prompt-zh, display name “System Prompt Chinese Localization”): it translates known English rules into Simplified Chinese during the prompt assembly and runtime injection stages, and trims related sentences according to the tools visible in the current session, while preserving English tool schemas and dynamic placeholders.

What This Is

Prompt ZH is maintained by KouzakiUmi, categorized as a workflow plugin, and published on the SkillHub plugin directory and the GitHub repository. It is not a chat translator: it does not modify host source code, tool names, or parameter structures; the Chinese prompt is a language guide. The documentation notes that other models may not necessarily follow it, and no cross-model reply language comparison tests were performed in this round.

The license is MIT; the current package version is 1.3.1 (subject to the npm registry and GitHub Releases; verification in the target Profile is still required after installation).

Core Features

Localize Rules in Chinese, Keep Contracts Unchanged

The plugin operates on known host paragraphs; translation is idempotent and repeatable; when no match is found, the original text is preserved.

Content Handling
System behavior guidance Localizes known prompt paragraphs into Chinese and trims related sentences based on currently visible tools
MCP usage rules Translation tables include known guidance such as Blender; when there is no reliable evidence of the server’s exact version at runtime, the original text is preserved
Runtime reminders Handles known texts such as time/timezone, workspace instruction wrapping, skill catalog invocation discipline, Hindsight memory rules, etc.
Git Bash additional guidance Localizes known MSYS paths, shell routing, and run_code enable/disable prompts
Tool calling contract Preserves tool names, parameter schemas, code, and dynamic values; generic descriptions and unknown additional content remain in the original language

Typical replacement examples (taken from the README and translation functions, with offline assertions):

You are an AI agent powered by DeepSeek Harness.
↓
你是由 DeepSeek Harness 驱动的 AI agent。
Browser time zone for this request: unavailable. Ask the user to clarify otherwise-unqualified dates and times.
↓
本次请求的浏览器时区:不可用。请用户澄清未明确限定时区的日期和时间。

Only Replace What Is Known, Trim by Tool Set

Unknown content is not guessed or translated. Tool-related sentences are trimmed according to the visible tool set, and the plugin does not recommend tools that do not exist to the model. Runtime translation retains a global fallback and registers a scoped listener after agent initialization completes, covering subsequent injections such as time mounted by presets; it backfills existing agents and cleans up when agents, dependencies, or plugins are unloaded.

Third-party content is translated only when the currently resolved package version matches the exact version verified for the entry; unknown or mismatched versions preserve the original text. Git Bash context may have a translation during assembly, but the documentation notes that the subsequent refreshContext of the current Core may still restore the source English.

Per-Entry Editing and Component Toggles

Starting from 1.3.0, a host Prompt ZH settings page (or plugin configuration area) is provided: each built-in translation entry has a block, matching method, verified/current resolved version, and processing count. The edit box defaults to the built-in translation; after saving an override value, it is read by the actual translation function; the original matching rules cannot be edited. Dynamic placeholders such as $1, $2 must be preserved.

  • Save to current Profile: Uses native configuration forms and revision number validation; does not use browser storage as a substitute.
  • Component toggles: When disabled, the corresponding text remains in the original language; third-party version gating cannot be bypassed by toggles.
  • Refresh signal: Reads the cumulative hit/output change count of the currently saved configuration; does not retain session body or dynamically captured values.

Seeing English still does not necessarily mean the plugin is not working: runtime-context snapshots rebuilt by the host after translation, outer injections added after creation completes, and system messages appended outside the host may still be in English; skill summaries/bodies, unknown MCP bodies, and tool schemas are also not comprehensively translated. See the repository’s Compatibility and Coverage for boundaries.

Installation and Activation

For general installation, refer to dsh plugin; the following uses web as the example Profile (this is only a documentation example; please operate according to your actual Profile and CLI entry point). Desktop uses the DSH Desktop CLI bundled with the target desktop shell, and does not use the standalone public/Core CLI to manage the reserved desktop Profile.

First, install via npm:

dsh plugin --profile web add dsh-prompt-zh

Update the installed version:

dsh plugin --profile web update dsh-prompt-zh@latest

You can also download dsh-prompt-zh.tgz from GitHub Releases and install it using the absolute path of the tarball (do not treat the source code ZIP as a verified release package):

dsh plugin --profile web add "<tarball 的绝对路径>"

After installation or update, restart or reload DSH according to your deployment method so that Host plugins are reloaded. Node.js >=18 is required; systemPrompt is a required host service, and agents is dynamically integrated; when missing, static translation and the global fallback are retained.

Typical Usage and Verification

After the steps above, the plugin automatically replaces known English rules in the prompt pipeline; no additional API calls are required. It is recommended to open the settings page in the target Profile, disable specific components as needed, or override individual translations, and observe the hit/output change counts in the refresh signal after saving (successful saving does not mean the original text has already been encountered or the final request has taken effect).

For development or offline testing methods, see the repository’s Development and Verification and Changelog.

Use Cases and Notes

Who it’s for: Developers who frequently read system rules, MCP instructions, and runtime reminders in Simplified Chinese within DSH, while needing to keep tool calling contracts and schemas in English.

Permissions and restraint (explicitly stated in the README): Does not read account credentials, does not modify host installation packages, does not launch subprocesses, and does not send prompts to external translation services; the translation process itself does not write files; saving operations are written by the host to the current Profile. The plugin runs with the permissions of the current dsh process; review the source code and MIT license yourself before installation.

Compatibility: The package declares compatibility with Core 0.2.1-alpha.2; the documentation records that isolated tests of plugin loading, actual time injection, and unload cleanup were performed on Desktop shell 2.0.17-next with bundled Core 0.2.1-alpha.2 and Cordis 4.0.5-alpha.1, and have not been installed and verified in the current production Profile. The compatibility declaration does not imply that all host, provider, and plugin combinations have completed on-site verification.

The DSH ecosystem philosophy is “everything is a plugin”; SkillHub is a community directory and has no official affiliation with DeepSeek/Huanfang (幻方).

Closing

dsh-prompt-zh localizes known DSH system prompts and runtime injections into Simplified Chinese, trims guidance based on visible tools, while preserving tool schemas and configuration editability. Directory page: https://www.skillhub.cn/plugins/KouzakiUmi/dsh-prompt-zh; source code and documentation: https://github.com/KouzakiUmi/dsh-prompt-zh.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye