/agent-toolkit-complete:swarm-observerfrom agent-toolkit-complete
Observes, diagnoses, and recovers Agent Toolkit swarm runs by inspecting status, handoffs, logs, and attaching to windows. Useful for stuck handoffs, backend drift, or reusing runs.
Ships in agent-toolkit-complete. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Monitor any agent-toolkit swarm run, diagnose stuck handoffs or backend drift, and recover without losing windows. Works for both Herdr (tabs) and tmux (isolated socket agent-toolkit-swarm-<run-id>). Integrates with swarm's eager-window model (every role starts as Waiting for handoff: <pred> -> <role> with agent_waiting trace).
active for >5m (955be6f6e2c... pattern) or worktree_failed.w7-wA) for headless runs — the get_backend("headless") fallback case..agent-toolkit/swarm/runs/<run-id>/state.json (filesystem is authoritative).run-id (20260807T...-xxxxxx) from swarm start --json or swarm list --json._user_shell(): $SHELL → pwd.getpwuid → /usr/bin/zsh fallback, executed as <shell> -lc).agent-toolkit swarm list --json | jq
agent-toolkit swarm status --run-id <run-id>
agent-toolkit swarm status --run-id <run-id> --json | jq '.handoffs,.worktrees,.trace'
agent-toolkit swarm handoffs --run-id <run-id>
agent-toolkit swarm handoffs --run-id <run-id> --json | jq '.[] | {id,from,to,status,artifact,auto}'
# Active that should have auto-completed:
# where to==from_role and handoff create --to == that role -> auto:true
Trace keys to watch: agent_waiting, handoff_completed auto:true, worktree_failed, headless_fallback.
agent-toolkit swarm logs --run-id <run-id> --follow
agent-toolkit swarm logs --run-id <run-id> --role reviewer --follow
agent-toolkit swarm attach --run-id <run-id> # herdr: workspace focus; tmux: attach -L agent-toolkit-swarm-<run-id>
herdr workspace list --json 2>&1 | jq '.[] | {id,name,status}'
tmux -L agent-toolkit-swarm-<run-id> capture-pane -t <window> -p | tail -n 80
| Symptom | Cause | Fix |
|---|---|---|
| `Waiting for handoff: a -> b | role: b` stuck >5m | active handoff never task complete |
worktree_failed | find_repo_root failed (git rev-parse --git-common-dir on .git file) | Re-run handoff create — fixed via AGENT_TOOLKIT_SWARM_RUN_ID export + path extract |
Extra Herdr workspaces w7-wA with headless | get_backend("headless") returned HerdrBackend | Patch backends/__init__.py to return headless/noop backend; then herdr workspace delete <id> for orphans |
Shell shows bash while user uses zsh | Hardcoded bash -lc | Fixed via _user_shell() / _shell_base() — verify ps -o comm= -p <pid> shows zsh |
# Complete stuck handoff and provision next role (worktree/tab + agent start)
agent-toolkit swarm handoff create --type artifact --from implementer --to reviewer --artifact artifacts/fix.md --run-id <run-id>
# Reuse same windows for a new request (no new run needed)
agent-toolkit swarm handoff create --type artifact --from implementer --to reviewer --artifact artifacts/new-task.md --run-id <run-id>
# Chain re-triggers: implementer -> reviewer -> integrator via file handoffs
# Only create a new run when isolated branch is required
agent-toolkit swarm start --recipe pair --ui herdr --runner opencode --model-profile balanced --attach "new isolated task"
.agent-toolkit/swarm/runs/<run-id>/state.json by hand; use handoff create / task complete / promote.headless — fix the backend fallback instead.-L agent-toolkit-swarm-<run-id>; never the default server.| Need | Skill/Command |
|---|---|
| Show failure snippet before fixing | swarm-handoff |
| Recreate worktree | agent-toolkit swarm handoff create (auto-provisions) |
| Review code produced by swarm | code-reviewer, security-reviewer |
| Create PR after promotion | github-cli-workflow |
What SKILL.md sets; muted values are Claude Code's defaults
118 skills in this plugin
/adrWHAT — Create and maintain Architecture Decision Records (ADRs) per the process. Covers when to write an ADR, required sections, review, and linking to epics/PRs. English for cross-team artifacts unless the user asks otherwise./agreementWHAT - Capture explicit agreements, terms, parties involved, dates, validity, and linked work items using the Agreement Document structure./architecture-diagramWHAT — Create architecture diagrams of real systems as one self-contained HTML page. Default mode is an interactive, Lucidchart-style explainer built from a JSON model: nested containers (cloud, cluster, namespaces), service boxes with brand icons, numbered flows the reader selects one at a time (user access, operator access over a VPN or tailnet, CI/GitOps deploy, secrets, observability, data), hover cards, an inventory and a "not there yet" list, validated by a build script. Poster mode keeps the static dark HTML+SVG template with a PNG/PDF export toolbar. Also exports Mermaid, D2, draw.io, SVG or PNG. Use for system, infrastructure, cloud, deployment, network, access-flow or security topology diagrams delivered as a shareable visual artifact rather than in-repo text.npx claudepluginhub ulises-jeremias/agent-toolkit --plugin agent-toolkit-completeOther plugins' skills for the same job