dshbase

插件目录 / Developer / dsh-thinking-language-zh

dsh-thinking-language-zh

未验证 ayanJava111

✓ 持续维护 2 位贡献者 基于 3 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
语言
2026-08-16最近推送
跨平台平台

功能简介

deepseek harness思考过程中文插件

我们的评价
未验证 — 尚未实测

deepseek harness思考过程中文插件 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

dsh-thinking-language

English | 中文

A one-section DeepSeek Harness bundle that pins the language an agent thinks, reasons, and replies in. The shipped default is Chinese mode: once installed, every agent composed by the deployment gets an ordered system-prompt section right after its persona telling the model to think and answer in Chinese.

It works on any DeepSeek Harness deployment (Web UI, headless, ACP) because it only contributes a system-prompt section — no tools, no shell access, no model changes.
image

Install

dsh plugin --profile <name> add dsh-thinking-language

That installs the package into the profile and appends the bundle layer (the package declares dsh.bundle, so dsh plugin activates it automatically). Then:

dsh --profile <name>

The layer registers the thinking-language row, whose default config is the Chinese instruction. No further setup is needed. Verify the layer first without starting:

dsh --profile <name> --dump-config   # shows a "# == dsh-thinking-language" layer

Config

One row, three fields:

Key Default Meaning
text the Chinese instruction below The instruction rendered as the thinking:language section. A template: complete {{…}} groups interpolate strictly against registered prompt variables ({{model}} and {{cwd}} are registered by the shipped agent loop). Empty text drops the section at render.
complete false Make this section the complete system prompt, suppressing every other section. Leave off unless the language instruction must stand alone.

The default text is:

请始终使用中文进行思考、推理与回复:你的思考过程(reasoning)与所有输出一律使用中文,包括对工具调用结果的解读与最终回答。

Change the language or wording

Patch layers replace the targeted row's whole config, so an override restates every key it wants. Put this in your profile's cordis.patch.yml (or a --patch overlay) to switch to English:

- id: thinking-language
  config:
    text: >-
      Always think, reason, and reply in English.

How it works

The plugin exports the standard plugin contract (name, inject: ['systemPrompt'], Config type and Schemastery schema, apply) and registers one section:

  • Name: thinking:language (exported as THINKING_LANGUAGE_SECTION).
  • Order: 1 — immediately after the deployment persona (0), before the tool-guidance band (100–199), so the model reads the language instruction at the start of the prompt body.
  • It never shadows the persona: persona presets (@deepseek-ai/dsh-persona) and this plugin coexist in the same composition.
  • Registration rides the calling fiber, so hot-reloading a config edit removes the old section before the new one registers.

Model experience

  • What the model sees: one extra prompt section between the persona and tool guidance, e.g. 请始终使用中文进行思考、推理与回复:你的思考过程(reasoning)与所有输出一律使用中文,包括对工具调用结果的解读与最终回答。 — every request, for every agent on the deployment.
  • Token effect: a fixed cost per request, equal to the rendered instruction text (about 60 tokens for the default).
  • KV-cache effect: the section is stable for a given config, so prompt-prefix caching stays intact. Editing the text changes the prefix from the first changed token.

Develop

pnpm install
pnpm test        # vitest
pnpm typecheck   # tsc --noEmit
pnpm build       # tsdown -> lib/
pnpm smoke       # mounts lib/ against the real peers and asserts the rendered prompt

The prepare script runs tsdown with a self-contained config, so installing from git (dsh plugin add github:you/dsh-thinking-language) also produces the published entry. @deepseek-ai/dsh-system-prompt and @deepseek-ai/cordis are peer dependencies resolved from the dsh installation the profile runs on.

Publish

  • npm: pnpm publish (the files list ships lib/, cordis.patch.yml, and both READMEs; dsh.bundle points at the patch layer).
  • Tarball: pnpm pack, then dsh plugin add ./dsh-thinking-language-0.1.0.tgz.
  • Git: push the repo and let users dsh plugin add github:you/dsh-thinking-language — pnpm runs prepare after install, which builds lib/ from source (users must allow the build for git dependencies).

Known limitations

  • Thinking text is the model's own reasoning output, steered by the system prompt rather than a wire-level switch: the section is a strong instruction, not a hard guarantee, and occasional non-Chinese fragments may still appear.
  • If a deployed preset registers its own complete persona (complete: true on a persona row), it suppresses this section along with every other section.
  • Peer range ^0.1.0-rc.2 targets the current rc series of @deepseek-ai/dsh-system-prompt; a future major may rename exports, which a peer bump would address.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-thinking-language-zh」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:ayanJava111/dsh-thinking-language-zh

Headless(CLI)profile:

dsh plugin --profile headless add github:ayanJava111/dsh-thinking-language-zh

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26
备注:验证: install-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →