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 task, or needs to be redirected. Triggers on phrases like "interrupt agent", "stop agent and rollback", "cut agent task", "terminate and reset agent", "kill my_agent", "kill all agents", "终止 agent 任务并回滚", "kill掉", "打断". Supports all configured agents by ID, or all agents at once with --all.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "claw-mission-killer" with this command: npx skills add dorianyoung7702/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

  1. Kills the process — Finds and terminates the agent's running subprocess (precise PID or workspace path fallback)
  2. Verifies it's dead — Aborts if any process survives; transcript stays untouched
  3. Backs up memory — Saves the removed messages to interrupt-logs/ for recovery
  4. Rolls back transcript — Deletes the last user message (the task trigger) and everything after it
  5. 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 <your_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/<id>/interrupt-logs/rollback-YYYYMMDD-HHMMSS.jsonl

Append the backup lines back to the transcript to restore.


Scripts

ScriptPurpose
interrupt.pyKill + rollback (main script)
install.pyOne-time setup for all agents
run.pyWrapper for precise kill support
watch.pyAuto-injects new agents (runs via cron)
mark.pyManual PID registration (advanced)

Platform

Works on Windows, Linux, macOS. No external dependencies beyond Python stdlib.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Huo15 Wecom Plugin

火一五·企业微信(WeCom)OpenClaw 插件 v2.8.25 — 默认走 Bot WebSocket(响应快、配置简单),自带加密媒体解密 / Agent 主动发消息 / 微信客服三通道接入 / 多账号切换。v2.8.25 重点:GUIDANCE 优先级翻转回 MEDIA: 直发——v2.8.22 当时担...

Registry SourceRecently Updated
Automation

Js Eyes

Install, configure, verify, and troubleshoot JS Eyes browser automation for OpenClaw.

Registry SourceRecently Updated
Automation

Personal Memory Layer

Create and maintain a persistent personal memory layer for OpenClaw to build deep understanding of the human over time. The agent actively learns from intera...

Registry SourceRecently Updated
Automation

AgentOctopus

Use when you need to route a user query to the best specialized skill — AgentOctopus semantically matches queries against installed skills, executes the top...

Registry SourceRecently Updated
1430Profile unavailable