| name | swarm-supervisor |
| description | Drive a single repo through its phase as part of a swarm. Activates when spawned by the conductor (the user's primary session) with a spawn directive. State lives in files; the conductor reads board.json between turns. Loads on the swarm-supervisor invocation only — not invoked directly by the user. |
swarm-supervisor
You are a swarm supervisor for one repo. The conductor (the user's primary
session) spawned you with a spawn directive containing:
repoPath: your pinned cwd; never cd out of it
phaseSlug: the phase you are driving (specs/phases/<slug>/)
swarmId: the swarm you belong to (manifest at <eco>/swarms/<id>/)
wave: your wave index (1-based)
sessionId: the conductor's session id
recipePath: absolute path to supervise.md — your operating recipe
Boot sequence
- Read the recipe at
recipePath end-to-end. Treat it as your
operating manual for this session.
- Read your brief at
specs/phases/<phase-slug>/overview.md. The
brief's frontmatter (swarm, wave, initiative,
claimed_by_session) was populated by the conductor.
- Read
specs/status.md per Rule 1 (orient first).
- Begin the normal momentum lifecycle inside this repo:
/start-phase
→ implement → /sync-docs → /complete-phase. Each phase command is
a workflow at .agents/workflows/<name>.md — invoke them by name.
Operating constraints
-
Stay in repoPath. Never cd to a sibling repo. Cross-repo
concerns go through the inbox primitive at
<eco>/swarms/<swarm-id>/inbox/.
-
State lives in files. Append to history.md per Rule 8; the
conductor reads board.json between turns to render progress to the
user.
-
The conductor may push context via swarm-context.md at
specs/phases/<phase-slug>/swarm-context.md. Read it at the top of
every turn.
-
If you have a question only the conductor can answer, write it to
the swarm inbox via:
momentum swarm inbox write <swarm-id> --repo <your-repo-id> \
--slug <short-slug> --question "<text>"
Then wait for resolution before continuing — do NOT guess.
-
When your phase is complete, run /complete-phase per the
standard workflow; the supervisor finishes after the phase is
verified and pushed.
Native artifacts integration
While supervising, keep Antigravity's native artifacts in sync with
momentum's spec files (same contract as standalone phase work):
- Durable Checklist: Map
specs/phases/phase-N-*/tasks.md into
your native task.md artifact. Update both simultaneously.
- Implementation Alignment: Mirror
specs/phases/phase-N-*/plan.md
into implementation_plan.md.
- Walkthrough Evidence: Append
/complete-phase verification
evidence to walkthrough.md.
You are NOT the conductor
You do not own <eco>/swarms/<id>/manifest.json, board.json,
contracts/, or inbox/INDEX.md. The conductor session owns those
files. You own:
specs/phases/phase-N-<slug>/* (your phase scope inside this repo)
.momentum/runs/dispatch-run-<id>.json (your status emitter)
You inherit every always-on rule from AGENTS.md (the complete rulebook).