DSH XD Pool
XDTrees/dsh-xdpool把本机 WorkBuddy 桌面 App 登录过的所有账号自动并入 DSH 模型池:多账号轮换自动容错、实时积分,模型目录按模型标注积分倍率与限时免费 / 夜间折扣。
全局中文模式:输入框旁的紧凑胶囊开关,开启后向任意预设(完整 persona 除外)的系统提示注入语言要求;回复、思考、工具区域可分别切换中英文,并兼容锚定预设。
A global Simplified-Chinese mode plugin for DeepSeek Harness Web: a compact Chinese Mode pill beside the permission selector in the input box, which injects language requirements into the system prompt of any preset when enabled.
Simplified Chinese is the default documentation language; this is the English translation.
dsh-chinese-mode namespace) and applies to every session.Install from the plugin marketplace, or via CLI:
dsh plugin --profile web add github:dawnliming/dsh-chinese-mode
Restart dsh web; the Chinese Mode pill beside the input box directly toggles language injection, and its visibility is controlled from settings.
| Field | Default | Description |
|---|---|---|
enabled | false | Master switch; when off, nothing is injected and the input-box status key remains in its disabled state. |
showInputSwitch | true | Whether to show the Chinese Mode pill beside the input box; independent from the master switch. |
replyChinese | true | Reply language: ON = Chinese, OFF = English. |
thinkingChinese | true | Thinking language: ON = Chinese, OFF = English. |
toolsChinese | true | Tools/UI wording: ON = Chinese, OFF = English. |
textReply / textThinking / textTools | per-region default Chinese wording | Built-in Chinese wording (English wording is built in as the OFF counterpart); not editable in the settings page to avoid pollution. |
anchoredPresetKeywords | liangshen, 梁神, anchored, 锚定 | Preset-name keywords treated as anchored mode (comma-separated; editable in the settings page). |
anchoredMode | false | Off by default; when enabled, anchored presets get English thinking while reply/tools follow the settings. |
A legacy single
textfield is kept as the reply wording after upgrade.
The host half registers dsh-chinese-mode:language as a system-prompt section via the official systemPrompt.section() API (negative order, so it renders before the persona). Its text is a function evaluated per assembly: it returns an empty string when the master switch is off (dropped at render time). Anchored detection uses DSH resolveSessionPreset(session) to read the newest agent-preset/selected event rather than only the creation-time header, so a blank-session preset switch takes effect immediately. Anchored presets have the section stripped by their tool-bootstrap during phase 1 and restored after promotion, so the plugin is naturally anchor-compatible. Limitation: DSH force-restores a complete persona as the sole section after the waterfall, so this plugin does not apply to complete personas (a DSH mechanism limitation, not a plugin defect). The client half renders the Chinese Mode pill bound to the dsh-chinese-mode settings namespace.
lib/index.jslib/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
# also add "dsh-chinese-mode" to dsh.profile.bundles in package.json (or let dsh reconcile)
MIT