Three independent language channels for model output — tool-call descriptions (every tool-call card title, including run_code in PTC-style presets), thinking, and replies — each set to follow the web GUI language, force a specific language, or turn off (default: only descriptions, following the GUI). One global runtime-context prompt directive on the host; the client half reports the GUI language; a Settings plugin card switches the modes.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-agent-lang
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:KannaKuron/dsh-agent-lang
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 — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Agent language control — three independently configured channels for DeepSeek Harness (DSH) model output: tool-call descriptions (including PTC mode's
run_codedescription, the call card title), model thinking, and replies — each follows the GUI language, forces a fixed language, or turns off, with one-click sync-all / off-all shortcuts. By default only the descriptions channel is on.
Why
Every tool call in DSH carries a required description argument that is displayed verbatim as the call's UI label. The tool schemas describe that field with English wording and English examples ("5-10 words … Examples: 'Count TODO markers…'"), so models default to English descriptions regardless of the GUI language.
This plugin changes only the PROMPT side: one global dynamic runtime-context directive states the GUI's display language and instructs the model to write every tool-call description in it. No preset, persona, or tool schema is modified — those are deployment-owned assets an upgrade overwrites anyway.
Coverage
| Mode / preset | Supported | Notes |
|---|---|---|
standard |
✅ | |
ptc (PTC mode, formerly code) |
✅ | run_code's description included |
cordis (Creation mode) |
✅ | |
User presets (incl. ptc-cordis, dsh-gitbash-shell variants) |
✅ | Host-plane registration covers every unsealed preset in the process |
| Agent-Team teammates / ordinary subagents (v0.8.0) | ✅ on by default | Teammate and subagent requests carry the same directive; Settings can switch to "main agent only". A forked teammate still inherits the main agent's completed-turn history snapshot (which carries the directive already committed there) — no switch rewrites history |
minimal |
❌ (by design) | minimal mounts a complete persona and suppresses runtime context — its prompt is sealed against every late contributor; no prompt-level plugin can reach it |
How it works
- Detection order (auto mode): the explicit Settings → General → Language choice > the browser-reported active locale. English is a regular target too (v0.3.0+): some models mix languages inside thinking/replies, and an explicit English directive pins them; only a fully undetected language injects nothing.
- Channel:
systemPrompt.context()— the same per-request runtime-context snapshot as the sandbox/approval policies, rendered near the end of each request so recency beats the English tool-schema guidance. A GUI language switch takes effect on the very next request. - Settings card: the Plugins panel → this plugin's bundle detail page hosts the card. It reads this plugin's row
Configand thelocalerow throughconfigForms; switch behavior (follow GUI language / force a BCP 47 tag — pick from the dropdown or type one, e.g.zh,ja/ off) and inspect the detection chain.
Install
dsh plugin --profile web add dsh-agent-lang
Plain JS, no build step, no installed dependencies (schemastery is a peer resolved through the profile). Restart DSH after installing.
Verify
- Install, restart DSH, open the Web GUI (browser language or setting on Chinese);
- The current profile's
cordis.patch.ymluser layer gains- id: agent-langandconfig.uiLocale: zhonce a page loaded; - Any new session: tool-call descriptions come out in Chinese;
- Switch the GUI language in Settings → General — descriptions switch on the next request;
- Plugins panel → this plugin's bundle detail page → Tool Description Language: pick
jafrom the force-language dropdown (or type any tag), switch off, etc.
Version compatibility
Supports dsh >= 0.2.2-rc.1 only (single-generation baseline since v0.13.0; stay on v0.12.1 for older hosts):
- There is one settings surface: the row
Config(row idagent-lang) plus the clientconfigForms. dsh 0.2.2 no longer hassettings.register(ns, schema),settingsScope, orsettings.get(ns), so no legacy probe remains. - Every
Configfield declares.volatile(); the browser half writes onlyuiLocale, while the card writesmode/forceLocale/thinkMode/outMode/subagents..volatile()requires schemastery 3.19.0, so both peer and dev floors are^3.19.0. - The
systemPrompt.context()contract is unchanged:PromptContextis still{ name, order, text, interpolate }, and order 130 sits betweenSUBAGENT_DELEGATION 120andHARNESS_SOURCE 200(rc.2 removedTEAM_IDENTITY 125). The injected text is BCP47-validated and setsinterpolate: false, so{{...}}interpolation cannot apply. - Card chrome uses the official design tokens (radius / focus ring) directly, with no old-literal fallbacks; the page card itself has no collapsible header (its sections still fold with a text
▸). All 21 dictionaries still ship. - The compatibility gate is decided solely by
engines.dsh >=0.2.2-rc.1(app-bootignores peers whenengines.dshexists);peerDependencies["@deepseek-ai/dsh"]mirrors it and stays optional so package managers never auto-install a prerelease-only host. No ceiling. - Checked against 0.2.2-rc.1: the official system-prompt only adds
TOOL_APPLY_PATCH: 1350/TOOL_SCHEDULE: 2500in the tool section, leaving order 130 free; the singleplugins.bundle.configseat, all 21 dictionaries, and live loading were verified. - Checked against 0.2.2-rc.2:
CONTEXT_ORDERSdropsTEAM_IDENTITY: 125, so order 130 still sits afterSUBAGENT_DELEGATION 120and beforeHARNESS_SOURCE 200; thesystemPrompt.contextcontract, the single settings seat, and all 21 dictionaries are unchanged;npm testis 47/47.
Relation to dsh's description-first tool wording (complementary, zero conflict)
The bash / pwsh tool schemas carry the "Provide description before command in the arguments" guidance, so the UI renders an arrived description already during a call's preparing phase. This is orthogonal to this plugin and complementary:
- the host owns the order: nudging the model to send the description first, so the preparing-phase card has a title to render;
- this plugin owns the language: the same runtime-context directive decides which language those descriptions (preparing-phase titles included) are written in.
The official English example wording in the schemas is unchanged, so the "Chinese UI, English descriptions" gap is still this plugin's description channel to close. The channel is global and keys off the call's description argument, independent of tool-list churn. Re-verified against dsh 0.2.2-rc.2: the systemPrompt.context signature is unchanged; CONTEXT_ORDERS dropped TEAM_IDENTITY 125, so order 130 sits between SUBAGENT_DELEGATION 120 and HARNESS_SOURCE 200.
Known limits
minimalis sealed by design (see table).- Without a browser page (pure CLI deployments) only the explicit choice is detectable.
- The GUI language is one global value; the most recently loaded page's report wins.
- Subagents / workflow models see the directive by default too (their descriptions are user-facing as well); the card's subagent switch can narrow it to the main agent only. Two boundaries: (1) a forked subagent inherits the main agent's committed prefix, and the switch does not rewrite that history; (2) external providers with their own prompt (codex / claude-code / acp / sdk) and
minimal's sealed prompt never pass through the hostsystemPrompt, so the switch does not affect them.
License
MIT
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 93080
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 2213
Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.
Alice-Marx/dsh-model-router★ 1034
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
V1ki/dsh-plugin-subscriptions★ 657
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
XDTrees/dsh-workbuddy-xdpool★ 656
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool (multi-account rotation, live credits, and a model catalog showing per-model credit multipliers and free/night-discount tags).
XDTrees/dsh-xdpool★ 656
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool: multi-account rotation, 429 cooldowns, live credits, a model catalog with per-model credit multipliers and free/night-discount tags, QR-code login for 13 vendors, and aggregate free-tier channels. Accounts persist across restarts.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.