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本体外无需额外依赖。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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

Awesome DSH Plugin

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):

【用户按下了“打断”按钮】 用户刚刚按下了打断按钮,立即执行以下操作,不得继续当前任务:

  1. 立即停止并结束当前一切工作:停止思考、停止工具调用、停止后台任务。
  2. 用不超过三句话简短总结你到目前为止的进展,只讲结果,不展开过程。
  3. 回复的最后一句必须原样是:“你有什么新的要求和建议吗?”
  4. 然后停下等待用户回复;用户给出新要求或建议后,将新要求与旧要求融合,再继续工作。 不要长篇分析,直接简洁回复。

Development

npm run check   # syntax-check both halves

License

MIT

← 上一个 Prev dsh-system-monitor 下一个 Next ai-sdk-provider-dsh →