Len7183/DSH-Think-zh 预览 preview

Len7183/DSH-Think-zh

Desktop桌面端 Native原生 ⭐ 32 MIT Docs & Writing文档与写作

DSH插件「DSH-Think-zh」 :为利于中文使用者阅读推理过程、复核结论;在设置添加切换模型思考语言档位[简体中文/默认英文];回复语言跟随提问语言,代码与标识符保持原文。

Project Overview项目介绍

DSH-Think-zh is a native plugin built exclusively for DeepSeek Harness (DSH). It addresses a common pain point for Chinese-speaking DSH users, where the model’s default reasoning language is often English, making it hard to follow and verify the model’s thinking process. To install the plugin, you can run a single DSH CLI command to pull it directly from GitHub, or clone the source code, build it locally, and add it to your DSH profile manually before restarting DSH. Its core mechanism is injecting a lightweight language rule prompt into every system prompt request, forcing reasoning to run in Simplified Chinese while keeping replies aligned with the user’s query language.

After installation, the plugin is enabled by default, so you don’t need to do any extra configuration to start using it. To verify the plugin is working correctly, you can run a DSH CLI command to dump your profile config and check for the plugin entry, then start a new session and look for the injected language rule section in the system prompt trace. This plugin is built for Chinese-speaking DSH users who prefer reading the model’s reasoning steps in their native language. It also supports optional custom configuration, so you can disable the prompt injection or replace the default rule text with your own custom instructions if needed.

DSH-Think-zh is released under the open source MIT license, so you can use, modify, and distribute it per the license terms. It requires Node.js version 22.19 or higher to build and install, and it is compatible with DSH version 0.1.0-rc.6 and above. It has minimal runtime overhead, adding only around 75 tokens of extra prompt text per request, with no extra processing or tracking. There is an important limitation to note: the plugin can only influence the model’s language choice via prompt injection, it cannot guarantee 100% compliance, as the final output depends on the model’s inherent behavior.

这是一个专为 DeepSeek Harness(DSH)开发的原生插件,核心功能是通过在每次请求的系统提示词中注入精简语言指令,强制模型的思考(reasoning)过程使用简体中文,同时让模型回复语言跟随用户提问语言,保留代码、标识符、文件路径等专业内容不翻译,解决了DSH默认思考语言多为英文不利于中文用户阅读复核的问题。

用户可通过DSH插件命令直接从GitHub安装,也可克隆源码构建后安装,安装完成后重启DSH即可生效,插件默认开启注入功能,无需额外配置即可使用,面向所有习惯使用中文阅读的DSH用户,解决了默认英文思考带来的阅读障碍,也支持自定义配置调整规则。

本插件采用MIT许可协议开源,使用要求环境为Node.js ≥ 22.19,适配DSH 0.1.0-rc.6及以上版本。需要注意插件仅能通过注入指令影响模型思考语言,无法100%保证生效,最终效果受模型自身行为影响,用户可通过配置命令验证插件是否成功安装注入。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 32 stars - an early-stage project星标 32,属于早期项目
  • Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Len7183/DSH-Think-zh

把 Len7183/DSH-Think-zh 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-think-zh

license CI Node DSH

DeepSeek Harness(DSH)插件:把模型的思考(reasoning)锁定为简体中文,档位在 **设置 → 通用设置 →「思考语言」**里随时切换;回复语言跟随提问语言。

项目解决什么问题

DeepSeek Harness 默认的思考语言常常为英文,这不利于中文使用者阅读推理过程、复核结论。 本插件在每次请求的 system prompt 中注入一条精简的强制语言指令,使:

  • 思考语言可控:默认档强制简体中文,也可切到「默认英文」,把思考语言交还模型;
  • 回复跟随提问语言:中文提问用中文答,英文提问用英文答,判断不出语言倾向时默认简体中文;
  • 代码、标识符、文件路径、命令等保持原文,不翻译。

限制声明:思考语言本质是模型自身行为,插件只能通过「注入强制指令」影响,无法在程序上 100% 锁死;模型是否遵守超出插件控制范围。

目录

特性

  • 默认档注入两条强制条款:思考必须用简体中文 + 回复跟随提问语言;切到「默认英文」则只保留回复条款,思考语言交还模型。
  • 档位在 GUI 里切换:设置 → 通用设置 →「思考语言」,样式与相邻的「语言」行一致。
  • 改完即时生效:档位是 volatile 配置,下一份请求即用新文本;不用重启、也不用重挂插件。
  • 两条投递通道:静态 system prompt section(默认开)与每轮用户消息前置(injectPerTurn,默认关,用于对静态 section 服从弱的模型),两者相互独立。
  • 零运行时开销:只注入一段文本,无语言检测、无缓冲、无写回;每次请求的额外成本就是那段指令本身(简体中文档 90 字符,默认英文档 64 字符)。

安装

前置条件:

  • DeepSeek Harness ≥ 0.1.7(「思考语言」设置项依赖官方 settings 服务的 volatile 字段)。
  • 源码方式另需 Node.js ≥ 22.19 与 pnpm(dsh plugin 内部调用 pnpm)。

方式一:桌面应用内安装(推荐)

  1. 打开侧栏 插件,点 添加插件。
  2. 填仓库地址 https://github.com/Len7183/DSH-Think-zh(也接受 github:Len7183/DSH-Think-zh)。
  3. 安装完成后按提示重启 DSH。

方式二:命令行安装

dsh plugin --profile <profile 名> add github:Len7183/DSH-Think-zh

需要可复现安装时,固定到某个提交:

dsh plugin --profile <profile 名> add github:Len7183/DSH-Think-zh#<commit-sha>
  • <profile 名> 即 ~/.dsh/profiles/<名字> 的目录名;等价写法 npx @deepseek-ai/dsh plugin ...。
  • 桌面应用自己的 desktop profile 由应用独占管理,dsh plugin 对它不可用——桌面用户走方式一。
  • 仓库内已提交 lib/ 构建产物,安装时不需要跑构建脚本。若 pnpm 提示 git 依赖的 prepare 被阻止,把提示里的 key 加到该 profile 的 pnpm-workspace.yaml 下 allowBuilds 后重跑即可。

方式三:从源码安装

git clone https://github.com/Len7183/DSH-Think-zh.git
cd DSH-Think-zh
npm install
npm run build

# 装进 profile(任意目录执行);桌面应用也可在插件页填这个绝对路径
dsh plugin --profile <profile 名> add <本目录绝对路径>

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev webdsh 下一个 Next dsh-chat-timeline →