coordinate-recover
Skill99 starsChanged 3 months agoMITView on GitHub
Diagnose and safely resume Coordinate Agents Tasks after executable failure, non-zero exit, timeout, stale claim, processing message, or Implementer ERROR. Recovery is explicit and never an automatic retry loop.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- coordinate-agentsSkill
- coordinate-reviewSkill
- coordinate-setupSkill
- coordinate-taskSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
If MCP is unavailable, or the user explicitly requests debugging, let <skill-dir> be the absolute directory containing this loaded SKILL.md …
- Distinctive: line 48
When the user has explicitly authorized repair and continuation, invoke:
- Very specific: line 69
Use task graph-stop to mark active graph work STOPPED and close only Runtime-owned Sessions, followed by task graph-cleanup when needed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Coordinate Recover
Use coordinate_agents_recover_inspect,
coordinate_agents_task_status, and coordinate_agents_task_resume for
single-Task recovery. For a Task Graph, use
coordinate_agents_task_graph_recover, coordinate_agents_task_graph_resume,
coordinate_agents_task_graph_stop, and
coordinate_agents_task_graph_cleanup. Recovery is facts-first and never an
automatic retry.
If MCP is unavailable, or the user explicitly requests debugging, let
<skill-dir> be the absolute directory containing this loaded SKILL.md and
use the bundled fallback:
node "<skill-dir>/../coordinate-agents/scripts/runtime-entry.mjs" ...The normal Plugin path starts with coordinate_agents_recover_inspect, followed
by coordinate_agents_task_status or coordinate_agents_task_resume only when
the recovery decision requires them. The following commands are fallback/debug
syntax only:
node "<skill-dir>/../coordinate-agents/scripts/runtime-entry.mjs" task status --root "<repository>" --json
node "<skill-dir>/../coordinate-agents/scripts/runtime-entry.mjs" status --root "<repository>" --json
node "<skill-dir>/../coordinate-agents/scripts/runtime-entry.mjs" agent doctor --root "<repository>" --json
node "<skill-dir>/../coordinate-agents/scripts/runtime-entry.mjs" task graph-recover --root "<repository>" --id task-... --json
node "<skill-dir>/../coordinate-agents/scripts/runtime-entry.mjs" task graph-resume --root "<repository>" --id task-... --subtask <subtaskId> --json
node "<skill-dir>/../coordinate-agents/scripts/runtime-entry.mjs" task graph-stop --root "<repository>" --id task-... --json
node "<skill-dir>/../coordinate-agents/scripts/runtime-entry.mjs" task graph-cleanup --root "<repository>" --id task-... --jsonInspect the Task's lastError, the bounded runtime artifact, Agent Bus state,
the sessionId Session status/inspect facts, and any matching commit or
evidence. Explain the concrete error code and the smallest repair. Session
inspection is read-only: do not restart, replay input, attach to a different
PID, or resume the Task while collecting facts. Do not claim a missing
capability as a successful result.
When the user has explicitly authorized repair and continuation, invoke:
node "<skill-dir>/../coordinate-agents/scripts/runtime-entry.mjs" task resume --root "<repository>" --id task-... --jsontask resume only clears the explicit recovery gate; it does not launch an
Implementer. The same authorization covers the in-scope repair, resume, and
subsequent task dispatch; do not ask twice. If the proposed repair exceeds
that authorization, explain the concrete repair and request only the missing
decision. Dispatch performs executable validation, Bus handoff, launch, and
state/error propagation as one operation. If that activation fails, inspect the
new facts and report the blocker instead of automatically repeating recovery.
For graph recovery, task graph-recover inspects durable Session, worktree,
commit, and evidence records and records an interrupted FAILED subtask only
when no healthy Session or verified completion exists. It never infers success
from filenames or prose. task graph-resume is a separate explicit decision:
it reuses a verified healthy Runtime-owned Session/worktree, or returns an
exited/failed Session to READY for a later explicit graph dispatch. Failed
prerequisites keep dependents BLOCKED until this valid recovery path runs.
Use task graph-stop to mark active graph work STOPPED and close only
Runtime-owned Sessions, followed by task graph-cleanup when needed. Both
operations use bounded, ownership-checked cleanup and preserve user worktrees,
branches, refs, commits, and evidence; repeated recovery/resume/stop/cleanup
calls are idempotent.
TASK_NOT_FOUND, STALE_CLAIM, AGENT_EXIT_NONZERO, AGENT_TIMEOUT, and
AUTH_REQUIRED remain facts to report; they do not authorize silent retries.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

