DeepSeek Harness Plugin

wodongx123/dsh-language-control

Stars ★ 1 Category Tools & Capabilities Added 2026-08-29

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

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.