/install claw-mission-killer
agent-interrupt
One command. Agent stops. Memory rolled back. Like it never happened.
When an agent goes off-track — running the wrong task, stuck in a loop, or executing something you didn't intend — agent-interrupt kills it cleanly and rewinds its memory to before it received that task.
Quick Start
After installing, run once to set up all your agents:
python -X utf8 scripts/install.py
Then just tell your assistant:
kill dev1
kill all
What It Does
- Kills the process — Finds and terminates the agent's running subprocess (precise PID or workspace path fallback)
- Verifies it's dead — Aborts if any process survives; transcript stays untouched
- Backs up memory — Saves the removed messages to
interrupt-logs/for recovery - Rolls back transcript — Deletes the last user message (the task trigger) and everything after it
- Agent wakes up clean — It enters standby with no memory of the interrupted task
Fuzzy Agent Matching
No need to remember exact agent IDs. It understands names:
kill dev1 → matches zero_dev1
kill pm → matches zero_pm
kill 开发工程师 ��� matches by Chinese name
kill all → interrupts every agent except main
Precise Kill (Recommended)
For agents running long scripts, use run.py wrapper so they can be killed precisely:
# Instead of: python your_script.py
python -X utf8 scripts/run.py --agent \x3Cyour_agent_id> -- python your_script.py
install.py automatically adds this protocol to all your agents' AGENTS.md files.
New agents added later are picked up automatically via a background watcher.
Recovery
Every rollback is backed up:
~/.openclaw/agents/\x3Cid>/interrupt-logs/rollback-YYYYMMDD-HHMMSS.jsonl
Append the backup lines back to the transcript to restore.
Scripts
| Script | Purpose |
|---|---|
interrupt.py |
Kill + rollback (main script) |
install.py |
One-time setup for all agents |
run.py |
Wrapper for precise kill support |
watch.py |
Auto-injects new agents (runs via cron) |
mark.py |
Manual PID registration (advanced) |
Platform
Works on Windows, Linux, macOS. No external dependencies beyond Python stdlib.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claw-mission-killer - 安装完成后,直接呼叫该 Skill 的名称或使用
/claw-mission-killer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Claw Mission Killer 是什么?
Interrupt a running agent task and rollback its session to the state before the last triggering user message. Use when an agent is stuck, running the wrong t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 201 次。
如何安装 Claw Mission Killer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-mission-killer」即可一键安装,无需额外配置。
Claw Mission Killer 是免费的吗?
是的,Claw Mission Killer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Claw Mission Killer 支持哪些平台?
Claw Mission Killer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Claw Mission Killer?
由 maomao(@dorianyoung7702)开发并维护,当前版本 v0.1.0。