Inject steering or correction into a running session while the model is thinking, or cancel the current turn, from a floating browser panel.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:CAI-MH/dsh-steer
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
在大模型思考过程中随时向当前会话注入纠偏/引导信息,或打断当前回合 —— 而不是等整个任务跑完才能再次输入对话。DSH bundle 插件。
能力
- 发送引导(steer):不打断当前回合,把纠偏信息注入正在运行的会话,模型在下一步边界读取(保留已完成的工作)。
- 打断(cancel):停止当前回合(保留排队中的消息)。
- 左下角悬浮球 🧭 带状态点:绿点 = 有会话正在思考,灰点 = 空闲。
- 自动列出并选中「正在思考」的会话;多个会话并行时可手动切换目标。
文件
index.js— Host 半部分:webServer路由 +sessionController(steer / cancel / list)client.js— 浏览器半部分:shell.overlay悬浮面板cordis.patch.yml— host 组合插件行package.json— bundle 元数据
接口(同源 HTTP,仅本机回环 + 同源校验)
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /api/steer/sessions |
会话列表(含 running 标志) |
| POST | /api/steer/message |
{ sessionId, text, mode? },mode 默认 steer,失败退化为 queue |
| POST | /api/steer/cancel |
{ sessionId } 打断当前回合 |
原理
依赖 DSH 宿主 sessionController 的编排层 steer 通道:
prompt({ requestId, sessionId, mode: 'steer', content })注入引导(消息以steering节点进入实时收件箱);prompt(..., mode: 'queue')排队;cancel({ sessionId })打断当前回合。
注:steer 的生效粒度是「下一步边界」,不是打断正在流式输出的 token。若模型卡在长时间工具调用里,引导需等该步自然结束才被读取;要立即全停请用「打断」。
安装
让 DSH 调用 plugin_forge_install(dir 指向本目录),或手动:
- 拷贝本目录到 web profile 的
node_modules/dsh-steer/ - profile
package.json注册dependencies+dsh.profile.bundles - 重启 DSH Desktop 生效(bundle 需重启才被加载器扫入)
维护
改代码 → 改本目录源文件 → 重新 plugin_forge_install(重新拷入 node_modules)→ 重启 DSH Desktop。
Links
More in this category
Minglink/dsh-infinite-gen-3★ 1734
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 407
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
Nwflower/dsh-chat-import★ 179
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Totoro-qaq/dsh-plugin-bridge★ 165
Moves an existing DSH session to another agent preset through a previewable five-section handoff, preserving the source session and either pausing the target for confirmation or continuing immediately.
Anionex/dsh-turn-rewind★ 115
Rewind conversation and workspace state, powered by a persistent Change Ledger.
Renzic-Stone/DSH-EasyRewrite★ 115
Inline-edit and recall your own user messages in dsh web — lazily and seamlessly, with a version pager and per-session draft persistence.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.