guo-ziao/dsh-interrupt-button
DeepSeek Harness WebUI 的绿色中断按钮:静默停止正在运行的代理,然后该代理总结进度并询问新需求;可自定义中断提示。
Project Overview项目介绍
This is a plugin built specifically for DeepSeek Harness (DSH), that adds a green interrupt button to the right of the send box in the DSH web interface. To install it, you can run one of two simple DSH CLI commands directly: either dsh plugin --profile web add guo-ziao/dsh-interrupt-button to install directly from the GitHub repository, or dsh plugin --profile web add dsh-interrupt-button to pull the packaged version from the public npm registry. Once installed, the button appears immediately after a page refresh, and it integrates seamlessly with DSH’s native UI components and core APIs.
When the DSH agent is actively running a task, clicking the interrupt button triggers a full "strong pause" that stops all ongoing work across multiple layers. It aborts the active model turn and any in-flight model requests, kills any running background jobs and terminals that the agent owns, interrupts any running child agents, and disarms armed goals to stop automatic goal continuation. Unlike a manual user interrupt that adds a fake user message to the transcript, this interrupt adds a clean system-style context entry instead, then asks the agent to summarize its progress so far and prompt you for new requirements.
When the DSH agent is idle, clicking the interrupt button opens a theme-aware dialog that lets you customize the model-facing interrupt prompt that the agent receives when you next trigger an interrupt. The dialog automatically adapts to DSH’s current light or dark theme using DSH’s native theme tokens, so it never looks out of place regardless of your UI preference. You can save your custom prompt for future use, or save and send it immediately if you want to use it for the current interrupt flow. This plugin is released under the permissive open-source MIT license, with no fees or restrictions on use or modification.
这是一款专为DeepSeek Harness(DSH)开发的原生插件,会在DSH网页端的发送框旁添加一个绿色的中断按钮。当代理正在运行任务时,点击该按钮即可在后台静默中断当前工作,不会在对话记录中添加模拟用户消息。中断后代理会停止当前任务,自动总结已完成的进展,并询问你有什么新要求,等待你的回复后融合新旧需求继续推进工作。
当代理处于空闲状态时,点击该按钮会弹出对话框,支持你自定义下次中断时发送给模型的中断提示,你可以保存自定义提示,也可以保存后直接发送。它提供的强暂停功能可以中止当前活跃的模型请求和工具调用,关闭代理所属的后台任务和终端,中断子代理,停止已设定目标的自动继续,同时保留队列中的消息。对话框还会自动适配DSH的浅色和深色主题。
你可以通过DSH命令行工具安装这款插件,执行指令dsh plugin --profile web add guo-ziao/dsh-interrupt-button即可,也可以通过npm源安装,执行dsh plugin --profile web add dsh-interrupt-button。它的工作原理是注册一个环回POST路由,点击按钮时触发中断操作,代理空闲时则打开提示编辑器。它采用MIT许可证,可免费使用和修改,除了正常运行的DSH本体外无需额外依赖。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-interrupt-button(guo-ziao/dsh-interrupt-button)
仓库:https://github.com/guo-ziao/dsh-interrupt-button
本站详情页:https://www.yhbd.top/plugins/guo-ziao-dsh-interrupt-button/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-15 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 dsh-interrupt-button
把 guo-ziao/dsh-interrupt-button 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-interrupt-button
A green interrupt button beside the DeepSeek Harness send box. While the agent is running, one click silently interrupts it in the background — no simulated user message appears in the transcript. The agent then stops its current work, summarizes what it has done as an assistant message, and asks you: "Do you have any new requirements or suggestions?" — waits for your reply, and merges your new requirements with the old ones before continuing.
When the agent is idle, clicking the button opens a dialog where you can customize the interrupt prompt (the model-facing instruction sent on the next interrupt), save it, or send it immediately.
Features
- 🟢 Green button in the composer tool row, right beside the send button
- ⏸ Strong pause: aborts the active turn (model request / tool calls),
kills background jobs and terminals owned by the agent, interrupts child
agents, and disarms an armed goal so automatic continuation stops; queued
messages are preserved (
keepInbox) - 💬 The agent replies as an assistant message: stops, summarizes its progress in a few sentences, and asks for your new requirements
- ✎ Customizable interrupt prompt: edit the model-facing instruction in a dialog (available when nothing is active); save it, or save & send immediately
- 🌗 Theme-aware dialog (light/dark via DSH theme tokens)
Install
dsh plugin --profile web add guo-ziao/dsh-interrupt-button
Or via npm:
dsh plugin --profile web add dsh-interrupt-button
How it works
The host half registers one loopback HTTP route (POST /dsh-interrupt-button/interrupt).
On press it performs a strong pause — agent.cancel({ kind: 'user' }, { keepInbox: true })
to abort the active turn, jobs.kill / terminals.kill for background work,
subagents.interrupt for child agents, and goals.disarm for an armed goal —
then agent.steer(...) with a plugin-source (notice form) message, so the
transcript shows a system-style context row instead of a fake user message and
the model produces the short summary and the question itself. When nothing is
active, the handler returns nothingActive and the browser half opens the
prompt editor instead.
Default interrupt prompt
The following instruction is sent to the agent when you have not customized it (short thinking, brief summary, and the exact closing question):
【用户按下了“打断”按钮】 用户刚刚按下了打断按钮,立即执行以下操作,不得继续当前任务:
- 立即停止并结束当前一切工作:停止思考、停止工具调用、停止后台任务。
- 用不超过三句话简短总结你到目前为止的进展,只讲结果,不展开过程。
- 回复的最后一句必须原样是:“你有什么新的要求和建议吗?”
- 然后停下等待用户回复;用户给出新要求或建议后,将新要求与旧要求融合,再继续工作。 不要长篇分析,直接简洁回复。
Development
npm run check # syntax-check both halves
2nd1st/dsh-plugin-open-app
rezon-aki/dsh-streamfold
Yu-tao-Li/dsh-pin
YesSanSan/dsh-conversation-outline
Han-1413141/dsh-sticky-disclosure
reactive-resume/reactive-resume