Swarm
Use multi-actor execution only when at least two scopes or evidence lenses are meaningfully independent and parallelism, clean-context judgement, or quorum confidence is worth the coordination overhead. Do not swarm a task that one bounded agent can complete safely, a task whose architecture is still unsettled, or concurrent mutations of one shared contract.
Read actors first for generic Recipe, spawn, Run, Trace, Control, artifact, and lifecycle operation. This Skill owns only multi-actor methodology: decomposition, scope ownership, independence, synthesis, integration, and completion proof.
Coordinator and participants
The coordinator owns decomposition, shared contracts, integration order, and final validation. Participants own bounded tasks or evidence lenses. Keep the coordinator available for decisions instead of duplicating participant implementation; use actors for launch, observation, and lifecycle mechanics.
Reasoning allocation
Allocate reasoning by role instead of making one long thread implement and judge itself:
- Bounded implementation/authorship participants default to reasoning off when the task card fixes scope, invariants, checks, and escalation. Enable reasoning only when unresolved diagnosis or local design judgement is part of their assignment.
- Reviewers default to independent medium reasoning and clean context. For consequential work, several reviewers with distinct lenses or repeated independent judgement usually provide better error discovery than increasing one author's reasoning and relying on self-review.
- Synthesizers and integrators use medium reasoning because they reconcile evidence, conflicts, shared contracts, and retained state.
- The coordinator decides whether review fanout is worth its cost, preserves dissent, and never treats reviewer count as evidence quality by itself.
Do not change a running participant's profile merely because policy changed. Replace or add a later independent review only when fresh evidence is still needed.
Choose the shape
| Need |
Shape |
Primary Recipe |
| Different risk lenses on one target |
Lens swarm |
swarm/lens-review |
| Independent judges for one exact claim |
Quorum |
swarm/quorum-review |
| Evidence map plus contradiction-preserving synthesis |
Research swarm |
swarm/research-synthesis |
| Competing architecture directions and one smallest next slice |
Architecture swarm |
swarm/architect |
| Bounded implementation assignment with scope critique |
Development tasking |
swarm/development-tasking |
| Multi-lens ship/readiness verdict |
Readiness review |
swarm/review-readiness |
Use different lenses for breadth and repeated independent judges for confidence. Combine both only for high-stakes work where the added cost is justified. swarm/subagent-* Recipes are maintained composition components; start from a primary Recipe unless building an intentional custom composition.
Coordinator protocol
The coordinator owns the whole result even when participants choose local implementation details.
- State the goal, non-goals, evidence standard, integration owner, and stop condition.
- Partition work into disjoint read or write scopes. Give shared contracts one owner.
- Give each participant a bounded task card with allowed scope, avoided scope, expected artifact, checks, and escalation rule.
- Assign each participant an explicit execution profile and isolation mode under the reasoning-allocation contract.
- Preflight required model/tool access before expensive fanout.
- Launch independent work without cross-contaminating lenses. Do not let participants silently expand scope.
- Preserve every terminal result, including failures, disagreements, and partial evidence; avoid doing participant work in the coordinator while a valid owner remains active.
- Merge through one named synthesizer or integrator. Resolve conflicts from explicit intent and invariants, not textual convenience.
- Run fresh integrated validation and, for consequential outputs, an independent post-merge review.
- Report complete, degraded, or insufficient-data status honestly; name residual owners and next actions.
Scope and coordination rules
- One writable scope has one owner. Parallel readers may share a stable target.
- Public contracts, schemas, central configuration, and integration surfaces require exclusive ownership.
- Concurrent writers use disjoint paths, isolated worktrees, or declared patch/artifact outputs.
- Shared ledgers, lockfiles, generated contracts, metadata, schemas, release surfaces, and cross-domain configuration belong to one named integrator unless a task card transfers one surface to another exclusive owner.
- Participants record shared-surface and other out-of-scope needs in handoff instead of editing them opportunistically.
- Reasoning and model profiles are task-card inputs, not implicit properties of the whole swarm.
- Coordinator checkpoints are bounded decision requests, not free-form actor chat.
- Locks support scope ownership but do not replace coordinator judgement. Every lock must be bounded and releasable.
- One integrator owns merge order, conflict resolution, and final validation.
- A zero-conflict merge is not proof of semantic compatibility.
Evidence and quorum rules
- Every material finding traces to inspected evidence or explicit uncertainty.
- Preserve minority high-impact findings and contradictions; consensus does not erase them.
- Keep reviewer evidence separate from merger findings.
- If successful evidence is below the requested threshold, return degraded or insufficient data instead of inventing quorum.
- Use a clean-context merger for serious quorum work. Use a fresh post-merge reviewer when the result drives code, security, architecture, money, governance, migrations, or release decisions.
See review swarms for lens, quorum, synthesis, and conflict-evidence detail. See development swarms for task cards, write ownership, handoffs, conflict reports, and integration.
Stop rules
Stop or replan when scopes overlap, a participant needs an undeclared shared contract, evidence cannot meet the threshold, provider/tool preflight fails, conflict changes the architecture, no integrator owns the result, or integrated validation is unavailable. Do not compensate with extra agents, repeated blind retries, shared mutable work, or coordinator-written consensus unsupported by participant evidence.
1---2name: swarm3description: Use when work needs multiple actors or subagents for independent implementation, artifact generation, review, delegated audit, research, or coordinated decomposition and integration.4---56# Swarm78Use multi-actor execution only when at least two scopes or evidence lenses are meaningfully independent and parallelism, clean-context judgement, or quorum confidence is worth the coordination overhead. Do not swarm a task that one bounded agent can complete safely, a task whose architecture is still unsettled, or concurrent mutations of one shared contract.910Read `actors` first for generic Recipe, spawn, Run, Trace, Control, artifact, and lifecycle operation. This Skill owns only multi-actor methodology: decomposition, scope ownership, independence, synthesis, integration, and completion proof.1112## Coordinator and participants1314The coordinator owns decomposition, shared contracts, integration order, and final validation. Participants own bounded tasks or evidence lenses. Keep the coordinator available for decisions instead of duplicating participant implementation; use `actors` for launch, observation, and lifecycle mechanics.1516## Reasoning allocation1718Allocate reasoning by role instead of making one long thread implement and judge itself:1920- Bounded implementation/authorship participants default to reasoning off when the task card fixes scope, invariants, checks, and escalation. Enable reasoning only when unresolved diagnosis or local design judgement is part of their assignment.21- Reviewers default to independent medium reasoning and clean context. For consequential work, several reviewers with distinct lenses or repeated independent judgement usually provide better error discovery than increasing one author's reasoning and relying on self-review.22- Synthesizers and integrators use medium reasoning because they reconcile evidence, conflicts, shared contracts, and retained state.23- The coordinator decides whether review fanout is worth its cost, preserves dissent, and never treats reviewer count as evidence quality by itself.2425Do not change a running participant's profile merely because policy changed. Replace or add a later independent review only when fresh evidence is still needed.2627## Choose the shape2829| Need | Shape | Primary Recipe |30| --- | --- | --- |31| Different risk lenses on one target | Lens swarm | `swarm/lens-review` |32| Independent judges for one exact claim | Quorum | `swarm/quorum-review` |33| Evidence map plus contradiction-preserving synthesis | Research swarm | `swarm/research-synthesis` |34| Competing architecture directions and one smallest next slice | Architecture swarm | `swarm/architect` |35| Bounded implementation assignment with scope critique | Development tasking | `swarm/development-tasking` |36| Multi-lens ship/readiness verdict | Readiness review | `swarm/review-readiness` |3738Use different lenses for breadth and repeated independent judges for confidence. Combine both only for high-stakes work where the added cost is justified. `swarm/subagent-*` Recipes are maintained composition components; start from a primary Recipe unless building an intentional custom composition.3940## Coordinator protocol4142The coordinator owns the whole result even when participants choose local implementation details.43441. State the goal, non-goals, evidence standard, integration owner, and stop condition.452. Partition work into disjoint read or write scopes. Give shared contracts one owner.463. Give each participant a bounded task card with allowed scope, avoided scope, expected artifact, checks, and escalation rule.474. Assign each participant an explicit execution profile and isolation mode under the reasoning-allocation contract.485. Preflight required model/tool access before expensive fanout.496. Launch independent work without cross-contaminating lenses. Do not let participants silently expand scope.507. Preserve every terminal result, including failures, disagreements, and partial evidence; avoid doing participant work in the coordinator while a valid owner remains active.518. Merge through one named synthesizer or integrator. Resolve conflicts from explicit intent and invariants, not textual convenience.529. Run fresh integrated validation and, for consequential outputs, an independent post-merge review.5310. Report complete, degraded, or insufficient-data status honestly; name residual owners and next actions.5455## Scope and coordination rules5657- One writable scope has one owner. Parallel readers may share a stable target.58- Public contracts, schemas, central configuration, and integration surfaces require exclusive ownership.59- Concurrent writers use disjoint paths, isolated worktrees, or declared patch/artifact outputs.60- Shared ledgers, lockfiles, generated contracts, metadata, schemas, release surfaces, and cross-domain configuration belong to one named integrator unless a task card transfers one surface to another exclusive owner.61- Participants record shared-surface and other out-of-scope needs in handoff instead of editing them opportunistically.62- Reasoning and model profiles are task-card inputs, not implicit properties of the whole swarm.63- Coordinator checkpoints are bounded decision requests, not free-form actor chat.64- Locks support scope ownership but do not replace coordinator judgement. Every lock must be bounded and releasable.65- One integrator owns merge order, conflict resolution, and final validation.66- A zero-conflict merge is not proof of semantic compatibility.6768## Evidence and quorum rules6970- Every material finding traces to inspected evidence or explicit uncertainty.71- Preserve minority high-impact findings and contradictions; consensus does not erase them.72- Keep reviewer evidence separate from merger findings.73- If successful evidence is below the requested threshold, return degraded or insufficient data instead of inventing quorum.74- Use a clean-context merger for serious quorum work. Use a fresh post-merge reviewer when the result drives code, security, architecture, money, governance, migrations, or release decisions.7576See [review swarms](./references/review-swarms.md) for lens, quorum, synthesis, and conflict-evidence detail. See [development swarms](./references/development-swarm.md) for task cards, write ownership, handoffs, conflict reports, and integration.7778## Stop rules7980Stop or replan when scopes overlap, a participant needs an undeclared shared contract, evidence cannot meet the threshold, provider/tool preflight fails, conflict changes the architecture, no integrator owns the result, or integrated validation is unavailable. Do not compensate with extra agents, repeated blind retries, shared mutable work, or coordinator-written consensus unsupported by participant evidence.