pan-stop-all-agents
Drain Overdeck: kill every running work agent and its review/test specialists on the host terminal backend (Herdr or tmux), optionally stop the dashboard, and…
от eltmon★ 36 звёзд на GitHub
Установить pan-stop-all-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Drain Overdeck (Stop All Agents)
Overview
Cleanly stops every running work agent plus its review and test specialists, and (optionally) the dashboard — without touching conversations (conv-*) or shared sidecars (CLIProxy, Traefik).
When to Use
- User says "stop all agents", "kill all agents", "drain overdeck"
- User says "stop dashboard and kill all agents"
- Memory pressure / pre-reboot drain
- Wanting a clean slate without losing chat history
What Gets Killed vs. Preserved
| What | Action | Why |
|---|---|---|
Work agents (agent-<issue>, swarm slots) |
kill | Work runs |
Review/test specialists (agent-<issue>-review, agent-<issue>-test, …) |
kill | Tied to the work agent; pan kill <issue> stops them with it |
Planning (planning-<issue>) and strike (strike-<issue>) agents |
kill | Same issue-scoped runs |
Conversations (conv-*) |
PRESERVE | Chats behind overdeck.localhost/conv/<id>, not work runs |
| Dashboard | PRESERVE unless stopping it | |
| CLIProxy, Traefik | PRESERVE | Shared sidecars |
Agents run on the host's terminal backend: Herdr by default, tmux only under
terminal.backend: tmux. List them with GET /api/agents, which reads that
backend, and stop them with pan kill, which closes the pane on either one.
Never list or kill agents with tmux -L overdeck: on a Herdr host it sees none
of them. Conversations still run on tmux until PAN-3921.
The dashboard is treated as a separate axis: stop it explicitly only if asked.
Workflow
1. Confirm scope before destroying anything
pan kill is destructive. Always print the list and confirm before running unless the
user has already explicitly said "kill all agents".
# Live agents (a live pane on the host backend), grouped by issue
curl -s http://localhost:3011/api/agents | jq -r '
[.[] | select(.hasLiveTmuxSession == true) | select(.id | startswith("conv-") | not)]
| group_by(.issueId)[]
| "\(.[0].issueId): \([.[].id] | join(", "))"'
/api/agents also lists agents stopped within the last hour; the
hasLiveTmuxSession filter (true for a live pane on either backend) drops them.
Show this list to the user. Wait for confirmation if they have not already pre-authorized.
2. Kill every live agent's issue via the CLI
pan kill <issue-id> stops every agent of that issue (work, planning,
review/test specialists, strike, swarm slots), writes its state, sweeps orphan
launchers and tears down its Docker stack.
curl -s http://localhost:3011/api/agents \
| jq -r '.[] | select(.hasLiveTmuxSession == true) | select(.id | startswith("conv-") | not) | .issueId' \
| sort -u \
| while read -r issue; do
pan kill "$issue" --force || echo "pan kill $issue FAILED"
done
If pan kill fails for an issue, retry with the one agent id
(pan kill agent-pan-895-review --force). If it still fails (e.g. a broken
state.json), close the pane on the backend that hosts it, as a last resort:
# Herdr host: the pane carrying the agent id in its agentId token
herdr pane list
herdr pane close <pane-id>
# tmux host, or a pre-Herdr agent still on tmux
tmux -L overdeck kill-session -t agent-<issue>
…and fix the broken state.json as a real bug (do not ignore it — see CLAUDE.md
"No Bandaids"). State files live at ~/.overdeck/agents/<id>/state.json. The most
common breakage is a doubled trailing } from a partial write.
3. Verify no agent is alive
# pan status probes each agent live (Herdr or tmux); /api/agents caches for ~5s
pan status --json | jq -r '.[] | select(.alive) | select(.id | startswith("conv-") | not) | .id'
# Expect no output. Conversations stay up.
4. Verify conversations survived
curl -s http://localhost:3011/api/conversations | jq -r '.[] | select(.status == "active") | .tmuxSession'
5. (Optional) Stop the dashboard
Only if the user asked to stop the dashboard. Use pan down, NOT kill -9.
pan down
Sidecars (CLIProxy, Traefik) are intentionally left running — pan down only
takes the dashboard down. If the user wants a full teardown including sidecars,
they should ask explicitly; do not assume.
6. Verify
# Dashboard health (should fail if stopped, succeed if left up)
curl -sk https://overdeck.localhost/api/health || echo "dashboard down (expected if stopped)"
# Memory should drop noticeably after killing 5+ work agents
free -h | head -2
Why preserve conv-*
conv-* tmux sessions back the conversation views at overdeck.localhost/conv/<id>. They
are durable chat history, not work runs — the JSONL session files are sacred (see
CLAUDE.md). Killing a conv-* session loses the live attach point even if the JSONL
survives, and ther
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл pan-stop-all-agents?
Drain Overdeck: kill every running work agent and its review/test specialists on the host terminal backend (Herdr or tmux), optionally stop the dashboard, and preserve conversations and shared sidecars.
Как установить скилл pan-stop-all-agents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pan-stop-all-agents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…