# dsh-weneedfirst [English](README.md) | 中文 一个 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(DSH) 插件,用于塑造模型的**思维链**。它注册一个全局 system-prompt 段落,指示模型根据 对话内容采取合适的角色、用 **英语** 思考,并以 **「We need」** 开启每一个推理块。 无需构建步骤,也没有额外运行时状态——插件只向 `systemPrompt` 注册表贡献一段提示词。 ## 安装 ```sh # 从 GitHub 安装(立即可用,无需发布到 npm) dsh plugin --profile web add git+https://github.com/XiaoWind/dsh-weneedfirst.git # 或发布到 npm 后 dsh plugin --profile web add dsh-weneedfirst ``` `dsh plugin` 会把参数转发给 `web` profile 目录内的 `pnpm`,随后自动把该包加入 `dsh.profile.bundles` 层级列表(因为本包声明了 `dsh.bundle.patch`)。安装后请 重启 Web 应用。 > 本插件注入 `systemPrompt` 服务,因此在任何组合了 system prompt 的 profile 中都 > 会生效——官方自带的 `web` profile 就是其中之一。 ## 更新 ```sh dsh plugin --profile web update dsh-weneedfirst ``` 更新后请重启 Web 应用——bundle 层在启动时组合,运行中的 Web 进程不会热更已安装的插件。 ## 配置 开头短语可以在你的 profile 的 `cordis.patch.yml` 中修改: | 配置 | 默认值 | 含义 | |---|---|---| | `openingPhrase` | `We need` | 每个思维链块必须使用的开头短语。 | ```yaml # 你的 profile 的 cordis.patch.yml - id: we-need-first config: openingPhrase: "We need" ``` ## 开发 ```sh # 语法检查 node --check lib/index.js ``` 插件是单文件 ESM Cordis 函数插件(`lib/index.js`),导出 `apply`、`inject`、 `name`,并由 bundle 层 `cordis.patch.yml` 插入到 profile 组合中。 ## License MIT