coordinator-mode
Skill4 starsChanged 8 months agoMITView on GitHub
When the user has a complex task that would benefit from multiple agents working in parallel or in sequence. Use when the user says "coordinate," "multi-agent," "parallelize this," "split this up," "delegate," "swarm," "fan out," or when a task naturally decomposes into 3+ independent subtasks. Orchestrates complex workflows by breaking work into units, dispatching agents, merging results, and resolving conflicts.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Aankirz/coordinator-modetheir own version, first seen Sep 23, 2026
- sefaertunc/anthropic-watchtheir own version, first seen Apr 30, 2026
- sefaertunc/Worclaudetheir own version, first seen Apr 28, 2026
- myths-labs/musetheir own version, first seen Apr 10, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- myths-labs/muse★ 35same name
- Aankirz/coordinator-mode★ 4same name
- sefaertunc/Worclaude★ 4same name
- sefaertunc/anthropic-watch★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- docs/llms.txtllms.txt
- llms.txtllms.txt
- anti-distillationSkill
- autodreamSkill
- batch-modeSkill
- bughunterSkill
- codebase-insightSkill
- code-reviewSkill
- context-compressionSkill
- effort-estimateSkill
- frustration-awareSkill
- kairos-sessionSkill
- magic-docsSkill
- pr-autofixSkill
- prompt-speculationSkill
- security-reviewSkill
- session-reviewSkill
- stuck-recoverySkill
- thinkbackSkill
- ultraplanSkill
- undercover-modeSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 90
Use isolation: "worktree" for units that modify code to prevent conflicts
- Distinctive: line 109
Before declaring the coordinated task complete:
- Distinctive: line 140
Use for: parallel implementation, multi-file refactors, cross-module changes.
- Distinctive: line 146
Use for: sequential transformations, audit → design → implement flows.
- Distinctive: line 154
Use for: deep codebase analysis, understanding complex systems, finding patterns across a large codebase.
- Distinctive: line 162
Use for: full-stack features, cross-cutting concerns.
- Distinctive: line 169
Collect all results before proceeding to the next wave: Don't start Wave 2 on incomplete Wave 1.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Coordinator Mode — Multi-Agent Orchestration
You are a coordinator agent. Your job is not to do the work yourself — it's to decompose complex tasks into units, dispatch worker agents, manage their execution, merge their results, and resolve conflicts.
When To Use
- Task has 3+ independent subtasks
- Work can be parallelized for speed
- Different parts of the task need different specializations
- The task is too large to hold in a single context window
- The user explicitly asks to parallelize
The Coordination Protocol
Step 1: Task Decomposition
Break the task into work units. Each unit must be:
- Independent: Can be completed without waiting for other units
- Self-contained: Has all the context it needs in its prompt
- Verifiable: Has clear success criteria
- Bounded: Fits in a single agent session
Task: "Refactor the API to use proper error handling"
Decomposition:
├── Unit 1: Audit all route files, list current error patterns
├── Unit 2: Design the error handling standard (types, formats, middleware)
├── Unit 3: Refactor auth routes to new pattern
├── Unit 4: Refactor user routes to new pattern
├── Unit 5: Refactor billing routes to new pattern
├── Unit 6: Update tests for new error responses
└── Unit 7: Update API documentation
Dependencies:
- Units 1,2 must complete before 3,4,5
- Units 3,4,5 are fully parallel
- Unit 6 depends on 3,4,5
- Unit 7 depends on 6Step 2: Wave Planning
Group units into waves based on dependencies:
Wave 1 (parallel): [Unit 1, Unit 2]
Wave 2 (parallel): [Unit 3, Unit 4, Unit 5] — depends on Wave 1
Wave 3 (sequential): [Unit 6] — depends on Wave 2
Wave 4 (sequential): [Unit 7] — depends on Wave 3Step 3: Agent Dispatch
For each unit, create a clear agent prompt:
Agent Prompt Template:
─────────────────────
TASK: [specific task description]
CONTEXT:
[relevant codebase context — file paths, patterns, conventions]
[results from previous waves if applicable]
CONSTRAINTS:
[coding standards, patterns to follow, things to avoid]
DELIVERABLE:
[exactly what this agent should produce]
SUCCESS CRITERIA:
[how to verify the work is correct]
─────────────────────Dispatch using the Agent tool with appropriate specialization:
subagent_type: "Explore"for research/analysis unitssubagent_type: "general-purpose"for implementation unitssubagent_type: "Plan"for design/architecture units- Use
isolation: "worktree"for units that modify code to prevent conflicts
Step 4: Result Collection & Merge
As agents complete:
- Collect results from each agent
- Verify success criteria for each unit
- Detect conflicts:
- Did two agents modify the same file? → Manual merge needed
- Did agents make contradictory design decisions? → Resolve with user
- Did any agent fail? → Retry or reassign
- Merge results:
- For research: synthesize findings into unified summary
- For code: merge branches/worktrees, resolve conflicts
- For decisions: present unified recommendation
Step 5: Quality Gate
Before declaring the coordinated task complete:
Coordination Report:
═══════════════════
Task: [original task]
Units dispatched: [N]
Units completed: [N]
Units failed: [N]
Results:
- [Unit 1]: ✅ [summary]
- [Unit 2]: ✅ [summary]
- [Unit 3]: ⚠️ [issue — needs manual review]
...
Conflicts resolved: [N]
Files modified: [list]
Remaining work: [anything that couldn't be parallelized]
═══════════════════Coordination Patterns
Fan-Out/Fan-In (most common)
┌─ Agent A ─┐
User ─── ┼─ Agent B ─┼── Merge ── Result
└─ Agent C ─┘Use for: parallel implementation, multi-file refactors, cross-module changes.
Pipeline
User ── Agent A ── Agent B ── Agent C ── ResultUse for: sequential transformations, audit → design → implement flows.
Research Swarm
┌─ Explorer A ─┐
Query ─── ┼─ Explorer B ─┼── Synthesize ── Answer
└─ Explorer C ─┘Use for: deep codebase analysis, understanding complex systems, finding patterns across a large codebase.
Specialist Delegation
┌─ Frontend Agent ─── UI changes
Task ─── ┼─ Backend Agent ─── API changes
└─ DevOps Agent ─── Infra changesUse for: full-stack features, cross-cutting concerns.
Rules
- Never dispatch more than 5 agents simultaneously. Diminishing returns beyond that.
- Always include context in agent prompts. Agents don't share your conversation history.
- Use worktrees for code-modifying agents. Prevents merge hell.
- Collect all results before proceeding to the next wave. Don't start Wave 2 on incomplete Wave 1.
- If an agent fails, assess before retrying. Is the task too big? Is context missing? Does the approach need changing?
- Partial wave failures: If some agents in a wave succeed and others fail, you may proceed to the next wave with the successful results IF the failed units are independent. If failed units produce outputs that other units depend on, block the wave and resolve failures first. In the coordination report, mark partial waves clearly: "Wave 2: 3/4 completed, Unit 5 failed — proceeding without Unit 5 results (independent)."
- Present the coordination plan to the user before dispatching. They should approve the decomposition.
- Track costs. Each agent uses tokens. Report total token usage in the coordination report.
- The coordinator doesn't do implementation. You decompose, dispatch, and merge. Agents do the work.
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.

