DeepSeek Harness Plugin

dawnliming/dsh-chinese-mode

Stars ★ 1 Category Models & Providers Added 2026-08-16

Global Simplified-Chinese mode: a 中 switch in the input box that injects a Chinese-language requirement into every session's system prompt when enabled, skipping anchored presets' pre-promotion round.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

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

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).

README

Global Chinese-mode toggle for DeepSeek Harness Web. A small switch next to the permission selector in the input box; when enabled, a Chinese-language requirement is injected into the system prompt of every session preset.

English is provided for international users. The default documentation is Simplified Chinese (see README.md).

Features

  • Global, persisted — the switch lives in host-side settings (dsh-chinese-mode namespace) and applies to all sessions.
  • Unconditional injection — when the switch is on, the Chinese requirement is always injected (inserted just before the persona section), no "already has Chinese" detection.
  • Works with every preset, including complete personas.
  • Anchored-preset aware — for anchored presets (e.g. liangshen / 梁神) the requirement is skipped during the first pre-promotion round, then automatically applied after promotion.
  • Clean toggle-off — turning the switch off removes the section from subsequent assemblies; it never rewrites history or inserts a visible chat message.

Installation

From the plugin market (once listed), or:

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

Restart dsh web, then flip the switch next to the permission selector in the input box.

Settings

Field Default Description
enabled false Master switch (the toggle).
text (Chinese requirement) The exact prompt text injected into the system prompt.
anchoredPresetKeywords liangshen, 梁神, anchored, 锚定 Preset-name keywords treated as anchored mode.
skipAnchoredFirstRound true Skip injection during the anchored preset's first (pre-promotion) round.
force / customKeywords Kept for backward compatibility; no longer affect injection (injection is unconditional).

How it works

The host half wraps systemPrompt.assemble and also listens on the official system-prompt/assemble waterfall event. After the assembly is built, it inserts the dsh-chinese-mode:language section just before the persona (or appends it), so the rendered system message sent to the model always carries the Chinese requirement. The client half renders the switch bound to the dsh-chinese-mode settings namespace.

Development

# host side: lib/index.js
# client side: lib/client.js  (ModuleLoader bundle, requires rebuild after edits)

To install the local checkout into a profile as a file: dependency:

cd ~/.dsh/profiles/web
pnpm add file:../../plugins/dsh-chinese-mode
# then add "dsh-chinese-mode" to dsh.profile.bundles in package.json (or let dsh reconcile it)

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →