Force the agent's chain-of-thought, planning, tool-invocation reasoning, and internal deliberation to stay in Chinese — the language constraint is injected at the top of the system prompt before every reasoning step, so it cannot be diluted by tool-returned content. A settings panel lets you edit the constraint text on the fly.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:wodongx123/dsh-language-control
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
This plugin publishes its README in Chinese only.
让 Agent 的思考过程也自动使用中文。 A DSH plugin that makes the agent think, plan and reason in Chinese — automatically.
DSH 插件:在每步推理前向 System Prompt 最顶部注入语言约束,防止 Agent 的思维链(chain-of-thought)在工具返回英文内容后发生"语言漂移"(language drift)。
A DSH plugin that injects a language constraint at the top of the system prompt before every reasoning step, preventing language drift in the agent's chain-of-thought after tool calls return foreign-language content.
功能特性 / Features
- 每步刷新约束:不是会话开始时注入一次,而是每次推理前重新注入到 System Prompt 最顶部(order: -200),优先级最高,不被工具返回内容稀释
- 中文思考强制:约束要求链式推理、规划、工具调用推理、内部思考全部使用中文,即使工具返回英文内容
- 可视化设置面板:在 DSH 设置 → 插件中可编辑约束文本、切换自定义/默认、一键恢复默认
- 无依赖、零配置、即装即用
安装 / Install
dsh plugin --profile web add @deepseek-ai/dsh-language-control
或从 DSH 应用市场(dsh-market)中搜索 language-control 一键安装。
使用 / Usage
插件安装后自动生效,无需额外操作。每次 Agent 推理 step 前,System Prompt 最顶部会注入语言约束(默认要求中文思考与回答)。
可在 DSH 设置 → 插件 → 语言控制(Language Control) 中:
- 编辑自定义约束文本并保存
- 关闭自定义文本,使用默认约束
- 恢复默认文本
工作原理 / How it works
| 层 | 机制 |
|---|---|
| 注入时机 | systemPrompt.section(),每次 assemble() 重新求值(即每个推理 step 前) |
| 注入位置 | order: -200,System Prompt 第一行 |
| 服务端 | 注册 HTTP 路由 /language-control/{status,update,reset} 读写约束文本 |
| 客户端 | dsh.client.inject 注册设置面板到 settings.section |
许可证 / License
MIT
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 33572
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
superdesigndev/treg★ 5130
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1136
Tencent CloudBase backend for DeepSeek Harness — scaffold and deploy full-stack apps from chat, render query results as table cards with paging, sorting and CSV export, preview a deployment on its domain, and call the CloudBase MCP toolset (`mcp__cloudbase__*`) with device-code login.
gitroomhq/postiz-agent#dsh-postiz★ 514
Connects DeepSeek Harness to Postiz over MCP: list connected social media channels, fetch per-platform posting rules, and schedule, draft, or publish posts to X, LinkedIn, Instagram, Facebook, Threads, TikTok, YouTube, Reddit, Bluesky, Mastodon, Discord, Slack, Telegram and more; adds a postiz workflow skill.
EthanYoQ/Invoice-Downloader#dsh-invoice-downloader★ 508
Local IMAP invoice download, OCR, archive, and Excel reimbursement summaries for DeepSeek Harness.
anysearch-team/anysearch-dsh★ 459
AnySearch-powered real-time web and vertical search provider for DeepSeek Harness.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.