DeepSeek Harness 插件

dsh-think-any-lang

DeepSeek Harness plugin: a General-settings selector that chooses which language the model reasons in, via a system-prompt section.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
lco117/dsh-think-any-lang
最近更新
2026年8月14日
分类
界面增强
GitHub stars
3
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/lco117/dsh-think-any-lang
插件名:dsh-think-any-lang
作者:lco117

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-think-any-lang

<p align="center"> <img src="https://img.shields.io/badge/DeepSeek%20Harness-Plugin-4D6BFE?style=for-the-badge&logo=deepseek" alt="DeepSeek Harness Plugin"> </p>

<div align="center">

![GitHub Stars](https://github.com/lco117/dsh-think-any-lang/stargazers) ![GitHub Forks](https://github.com/lco117/dsh-think-any-lang/network/members) ![GitHub Issues](https://github.com/lco117/dsh-think-any-lang/issues) ![GitHub Pull Requests](https://github.com/lco117/dsh-think-any-lang/pulls) ![License](LICENSE) ![English](README.en-US.md) !简体中文

</div>

<div align="center">

![dsh-plugin](https://github.com/topics/dsh-plugin) ![Languages](index.js) ![Zero latency](index.js) ![Plain JS](client.js)

</div>

A DeepSeek Harness plugin that adds a Thinking Language dropdown under Settings → General, letting you choose which language the model uses for its reasoning / chain of thought (中文, English, 日本語, 한국어, Deutsch, …). The final reply stays in the user's language.

<p align="center"> <a href="#screenshots">Screenshots</a> · <a href="#features">Features</a> · <a href="#how-it-works">How it works</a> · <a href="#installation">Installation</a> · <a href="#usage">Usage</a> · <a href="#development">Development</a> · <a href="#publishing">Publishing</a> · <a href="#star-history">Star History</a> </p>

---

Screenshots

<table> <tr> <td align="center" width="50%"><img src="screenshots/01.webp" alt="Thinking language selector in Settings → General"><br><b>Selector in General settings</b><br><sub>Pick it right from the settings page</sub></td> <td align="center" width="50%"><img src="screenshots/04.webp" alt="The thinking-language selector box"><br><b>The selector box</b><br><sub>Click to expand and pick a language</sub></td> </tr> <tr> <td align="center" width="50%"><img src="screenshots/02.webp" alt="Expanded language dropdown"><br><b>All languages in one dropdown</b><br><sub>off plus 12 languages in one list</sub></td> <td align="center" width="50%"><img src="screenshots/03.webp" alt="dsh-think-any-lang in the plugin list"><br><b>In the plugin list</b><br><sub>Listed under plugin management after install</sub></td> </tr> </table>

---

Features

  • Settings → General → Thinking Language: a dropdown to pick the language the model thinks in.
  • Zero latency, zero extra calls: implemented as a system-prompt instruction (systemPrompt.section) — no extra model calls or response delay like "translate the reasoning" approaches.
  • Instructions written in the target language: each instruction is written in its own language (e.g. the English instruction is written in English), which improves model adherence.
  • Persisted: the choice is stored in the user settings document (settings service) and survives restarts.
  • Plain JS, no build step: both the host and browser halves are hand-written JavaScript; install straight from GitHub with zero friction.

Supported languages: off (follow default, no instruction), Simplified Chinese, English, 日本語, 한국어, Deutsch, Français, Español, Português, Русский, Italiano, العربية, हिन्दी.

---

How it works

HalfResponsibility
index.js (host half)Registers the think-any-lang settings namespace (language field, enum, default zh); watches for changes and mounts systemPrompt.section (named think-any-lang) when non-off, unmounts on off; also registers a private loopback RPC channel /think-any-lang (get/set) that the browser half uses to read/write the namespace
client.js (browser half)Registers a settings.general.item row via the window.__ModuleLoader__.load contract; renders the dropdown and reads/writes the setting through the host half's /think-any-lang RPC channel

> Why a private RPC channel instead of the settings RPC surface? dsh-host-apiproxy only exposes an explicit allowlist of settings namespaces to configuration clients (WEB_SETTINGS_NAMESPACES / PRODUCT_SETTINGS_NAMESPACES); a third-party namespace answers settings-not-exposed, so the selection would never persist. The browser half therefore talks to a private channel registered in-process (ctx.connection.rpc.handle), and in-process ctx.settings access is not filtered by that allowlist — persistence and the systemPrompt linkage stay unchanged.

> The language table is maintained in two places — index.js (instruction texts) and client.js (display labels): the browser factory's require only resolves platform modules and cannot read local modules, so each half keeps its own language view. Keep both files in sync when adding a language.

---

Installation

Requirements: dsh CLI installed with an initialized profile (dsh plugin --profile <name> add auto-initializes).

From GitHub (recommended)

dsh plugin --profile web add github:lco117/dsh-think-any-lang

> The package is pure JS with no prepare build script, so no pnpm ≥10 allowBuilds approval is needed — install straight from GitHub. Pinning to a commit is recommended as in the official docs: github:lco117/dsh-think-any-lang#<commit-sha>.

From a local directory (development)

dsh plugin --profile web add ./dsh-think-any-lang

Verify

dsh --profile web --dump-config   # should show a "# == dsh-think-any-lang" layer

---

Usage

1. Start dsh web. 2. Open Settings → General. 3. Pick a language in the Thinking Language dropdown (default: Chinese). 4. Subsequent model calls receive the thinking-language instruction in the system prompt; DeepSeek reasoning models typically output reasoning_content in the chosen language.

---

Development

dsh-think-any-lang/
├── package.json       # declares dsh.bundle and dsh.client
├── cordis.patch.yml   # plugin row: mounts both halves of this package
├── index.js           # host half: settings namespace + systemPrompt.section
├── client.js          # browser half: settings row UI (hand-written factory bundle)
├── README.md          # 中文说明
├── README.en-US.md    # English docs
└── screenshots/       # README screenshots (webp)

---

Tech Stack

CategoryTech
Plugin platformDeepSeek Harness (DSH)
Plugin frameworkCordis
LanguageJavaScript (ESM)
Schema@deepseek-ai/schemastery
BuildNone (plain JS, install straight from GitHub)

---

License

[MIT](LICENSE) © 2026 lco117

---

⭐ Star History

If this project helps you, give it a ⭐ to help more people discover dsh-think-any-lang.

<a href="https://www.repostars.dev/?repos=lco117%2Fdsh-think-any-lang&theme=ocean"> <img alt="Star History Chart" src="https://www.repostars.dev/api/embed?repo=lco117%2Fdsh-think-any-lang&theme=ocean" /> </a>