dsh-weneedfirst
其他 活跃维护

dsh-weneedfirst

XiaoWind/dsh-weneedfirst

轻量级插件,可自动将推理过程输出的默认「Let me」开头表述替换为「We need」,让思维链更贴合协作表达逻辑,安装即用无需额外配置。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
12 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:XiaoWind/dsh-weneedfirst
git clone https://github.com/XiaoWind/dsh-weneedfirst.git
git clone git@github.com:XiaoWind/dsh-weneedfirst.git
README.md main

dsh-weneedfirst

English | 中文

A DeepSeek Harness (DSH)
plugin that shapes the model's chain of thought. It registers a global
system-prompt section instructing the model to adopt a role that fits the
conversation, think in English, and open every reasoning block with
"We need".

There is no build step and no extra runtime state — the plugin contributes one
prompt section to the systemPrompt registry and does nothing else.

Install

# from GitHub (works immediately — no npm publish required)
dsh plugin --profile web add git+https://github.com/XiaoWind/dsh-weneedfirst.git

# or from npm, once published
dsh plugin --profile web add dsh-weneedfirst

The dsh plugin command forwards to pnpm inside the web profile directory,
then reconciles the profile's dsh.profile.bundles layer list. Because this
package declares dsh.bundle.patch, it joins the layer stack automatically.
Restart the Web app after installing.

The plugin injects the systemPrompt service, so it activates in every
profile that composes a system prompt — the shipped web profile does.

Update

dsh plugin --profile web update dsh-weneedfirst

Restart the Web app after updating — the bundle layer is composed at boot, so a
running Web process does not hot-reload an installed plugin.

Configuration

The opening phrase is configurable in your profile's cordis.patch.yml:

Config Default Meaning
openingPhrase We need The phrase every chain-of-thought block must open with.
# your profile's cordis.patch.yml
- id: we-need-first
  config:
    openingPhrase: "We need"

Development

# syntax check
node --check lib/index.js

# unit tests
node --test test/

The plugin is a single-file ESM Cordis function plugin (lib/index.js). It
exports apply, inject, and name, and the bundle layer cordis.patch.yml
inserts it into the profile composition.

License

MIT