DeepSHPlugins
dsh-interrupt-button 项目预览
GITHUB / COMMUNITY PROJECT

dsh-interrupt-button

UI 增强JavaScriptMIT

发送按钮旁的绿色打断按钮:运行时一键静默中断 AI,AI 停止后总结进展并向你征求新要求,支持自定义打断提示词。

3 Starsguo-ziao 更新时间 2026-08-15
访问 GitHub 仓库
dsh-interrupt-button 项目预览

项目介绍

中文

发送按钮旁的绿色打断按钮:运行时一键静默中断 AI,AI 停止后总结进展并向你征求新要求,支持自定义打断提示词。

English

A green interrupt button beside the send box: silently stops a running agent, which then summarizes its progress and asks for your new requirements, with a customizable interrupt prompt.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
guo-ziao
仓库
guo-ziao/dsh-interrupt-button
GitHub Stars
3
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-15
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

57/ 100
维护活跃
81
文档与实用信息
100
生态关注度
17
安装便捷信号
75
项目声明信号
100

README 含完整安装与使用说明;关注度尚低(3)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:guo-ziao/dsh-interrupt-button

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

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

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目