dsh-think-chinese

by lingtima

1 工具与能力github收录于 08-23

DSH 插件:让模型始终用中文进行内部推理与思考(think in Chinese)

安装

dsh plugin --profile web add github:lingtima/dsh-think-chinese

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

DSH(DeepSeek Harness)的模型在展示「思考过程(Thinking)」时,默认倾向于用英文推理。本插件通过注册一条全局系统提示词段落,明确指示模型始终使用中文进行内部推理与思考——无论系统提示词、工具说明或对话使用何种语言。

安装

官方 bundle 插件,经 web profile 安装(安装后重启 web 生效)。

方式一:npm 安装

dsh plugin --profile web add dsh-think-chinese
# 重启 web

方式二:GitHub 直装(免构建,纯 JS 包)

dsh plugin --profile web add github:lingtima/dsh-think-chinese
# 重启 web

使用

安装并重启后无需任何配置:安装该插件的 profile 上,每个会话的每次模型请求都自动携带中文思考指令。子代理同样生效(段落是 profile 组合层的全局注册)。

验证是否生效:观察会话中模型的「思考过程(Thinking)」——应为中文。

能力

面 说明
System prompt 段落 在 order: 50 注册 think-in-chinese 段落(人设之后、工具引导之前),指示模型始终用中文推理

卸载

dsh plugin --profile web remove dsh-think-chinese
# 重启 web

插件管理

已装插件可用 plugin-registry 的薄控制台管理(浏览器面板):管理 profile 插件安装态(bundle 层栈 + insert 行 + 启停),无需手改配置。安装:

dsh plugin --profile web add github:vlln/plugin-registry#main&path:/packages/plugin/console

工作原理

index.mjs 是标准 Cordis entry(命名导出 name/inject/apply),经 ctx.systemPrompt.section() 注册一条 PromptSection:

  • order: 50 —— 按 DSH 约定位于人设(0)之后、工具引导(100–199)之前
  • text —— 中文思考指令,随每次提示词组装进入系统提示词
  • 段落 disposer 由 ctx.effect 托管,插件停止/更新/卸载时自动清理

License

MIT

原始 README: https://github.com/lingtima/dsh-think-chinese/blob/main/README.md ↗