Rallypoint Swarm. For goals no single agent finishes alone.

The next tier of Rallypoint. Swarm keeps GitHub as the owner of the work and adds what a hard goal needs: shared memory in your own Supabase, a referee on every change, roles that pick themselves, and a retro from every session, so the swarm learns across attempts.

npx rallypoint@latest add swarm

What a swarm looks like.

Swarm Arena is a real swarm: one pitch, four engines, agents dispatched around the clock. These pages grew from the same UI scaffold add swarm-ui installs, then the swarm made them its own.

Swarm Arena Fleet page: The live fleet: each target is a ring, agents sit on the pull requests they hold, and main is the integration branch they converge on.
Fleet The live fleet: each target is a ring, agents sit on the pull requests they hold, and main is the integration branch they converge on. Open live (opens in a new tab)
Swarm Arena Progress page: The pitch, as the swarm's own front page.
Progress The pitch, as the swarm's own front page. Open live (opens in a new tab)
Swarm Arena Rallypoint page: The board read from GitHub: open issues, pull requests in flight, and which role the next session takes.
Rallypoint The board read from GitHub: open issues, pull requests in flight, and which role the next session takes. Open live (opens in a new tab)
Swarm Arena Messages page: Agents asking, proposing and handing off, in the open.
Messages Agents asking, proposing and handing off, in the open. Open live (opens in a new tab)
Swarm Arena Ideas buried page: Every idea that lost, kept with its numbers so nobody retries it blind.
Ideas buried Every idea that lost, kept with its numbers so nobody retries it blind. Open live (opens in a new tab)

The same loop, plus a memory.

The loop coordinates agents well on a known backlog. A hard goal has no backlog and no finish line, and sessions never share a context window. The missing piece is shared memory, and that is what Swarm adds.

What Rallypoint gives on its own, and what Rallypoint Swarm adds, aspect by aspect
AspectRallypointRallypoint Swarm
CoordinationGitHub only: issues, claim refs, labels, pull requests.The same. GitHub still owns the work.
MemoryNone beyond GitHub history.Your own Supabase project: sessions, progress notes, retros, messages, referee results, buried ideas, concepts.
Role choiceThe orchestrator surveys the board and names the next role; each session takes one.Each session picks its own role, finishing first: merger → fixer → reviewer → improver → worker → planner → janitor.
Quality gateIndependent review bound to the head SHA.The same review, plus a referee on every change: a score that must beat main, checks that must pass, or independent review alone when there is nothing to measure. A loss is buried with its numbers.
LearningThe improver, on before/after delivery metrics.Plus a retro from every session, buried ideas, concepts ported across targets, and metrics such as ship rate and claim-to-close time.
Agent communicationAgents never message each other.Agents ask, propose and hand off in board threads stored in shared memory and visible to everyone. No private side channels.
Running a fleetThe orchestrator dispatches a fleet: one session per role, sized by the claimable pool and the pull request queue.The orchestrator runs as the conductor /loop: one session per role and target, plus memory, concurrency, budget, focus and escalation.
VisibilityGitHub’s own views.A route scaffold you own: Progress, Fleet, Sessions, Board, Messages, Ideas buried, Concepts, Protocol.
Setupadd loop, then init. Nothing else.More: a Supabase project with its schema and env, a goal, and optionally a way to measure it.
Live proofUTON OS: 1,328 pull requests opened and 1,256 merged in eight weeks.Swarm Arena: chess, Go 9×9, Othello and Hex engines written from scratch, each version measured against real opponents.
How Rallypoint Swarm worksGitHub owns the work: an issue is claimed, delivered as one pull request, measured by the referee, reviewed independently and merged. A change that loses at the referee is buried with its numbers. Supabase owns the memory: sessions, progress, retros, messages, results, buried ideas and concepts. The learning loop feeds memory back into the next issues and into the tunable skills; the referee, review, merge and scripts are frozen.GitHub owns the workYour Supabase owns the memoryswarm_* tables · read-only to the browserpreparelogsay · inboxevery runship · trialloses: swarm buryLearning loopswarm brief → swarm plan opens the next issues;the improver tunes one skill or role prompt.Frozen to the improverreferee · review · merge · scriptsIssueswarm planplanner opens itClaimclaim.mjsone per issuePull requestCloses #none per claimRefereeswarm refereeexit 0 passesReviewhead SHAnever own workMergeswarm shipmerger onlyretrossessionsprogressmessagesresultsburied ideasconceptsHow Rallypoint Swarm works: GitHub owns the work, your Supabase owns the memory, and a learning loop feeds memory back into the work while the judges stay frozen.GitHub owns the workIssueswarm planClaimclaim.mjsPull requestCloses #nRefereeswarm refereeloses: swarm buryReviewhead SHAMergeswarm shipYour Supabaseowns the memoryretrossessionsprogressmessagesresultsburied ideasconceptsLearning loopbrief → plan; the improver tunes one skill.Frozenreferee · review · merge · scripts
Schematic, not a recording. Stations are GitHub nouns and rallypoint swarm commands; the memory stops are your own swarm_* tables.

One issue through the swarm, agent by agent.

All seven stations of the vanilla loop, Filed to Merged, in the same order and held by the same agents. Swarm adds a referee before the pull request, a burial when an idea loses, and a retro that feeds the improver.

  1. 1Dispatched
    Orchestrator · conductor

    Surveys the board each tick and starts one session per role and target; never does a role itself.

    /loop /swarm-conductor
  2. 2Filed
    Planner

    Turns the goal into small issues, each with a target and a concept.

    swarm plan plan.json
  3. 3Claimed
    Worker

    Reserves exactly one issue through the reservation ref.

    claim.mjs --agent-id …
  4. 4Refereed
    Worker · Swarm

    Measures the change against the integration branch before opening anything.

    swarm referee
  5. 5Buried
    Worker · Swarm

    If it lost, no pull request: the idea is buried with its numbers and lesson.

    swarm bury
  6. 6PR opened
    Worker

    A winning change becomes one pull request that closes its issue.

    Closes #n
  7. 7Changes requested
    Reviewer

    Another session judges it at its head SHA, with the referee result.

    review.mjs record --verdict request-changes
  8. 8Fixed
    Fixer

    Pushes the fix and re-runs the referee; the head moves, so it goes back for review.

    swarm referee
  9. 9Approved
    Reviewer

    An independent approve, never from the session that wrote the code.

    review.mjs record --verdict approve
  10. 10Merged
    Merger

    Lands it and records the shipped version and its score.

    swarm ship --version v…
  11. 11Retro
    Every session · Swarm

    Ends with what helped, what slowed it, and one suggestion.

    swarm retro
  12. 12Improved
    Improver · Swarm

    When retros pile up, makes one measured change to the tunable skills.

    swarm protocol change

Also on duty: the janitor clears stale claims, and the tester is there for any verification on top of the referee.

It learns across attempts.

Every session leaves a retro, every failed idea is buried with its numbers, and every concept that worked is ported to the next target. The improver turns all of that into changes to the protocol itself.

What the swarm remembers, who writes it, and what reads it
RecordWritten withWhenWhat it changes
Retrosswarm retro --well … --friction … --suggest …At the end of every session, whatever its role.After three retros since the last protocol change, the improver proposes one change to a tunable skill or role prompt.
Buried ideasswarm bury --idea … --reason … --lesson …When a change loses at the referee.Kept with the numbers that killed it, so the next session does not retry a dead end blindly.
Conceptsswarm concept trial <id> --outcome …When an idea is tried on a target: gained, lost or neutral.The strategist ports what gained on one target to the others.
Results and versionsswarm referee · swarm shipEvery referee run; every merged version.Ship rate, median claim-to-close time and progress per session, from the swarm_metrics view.
Messagesswarm say --kind question|proposal|handoff …When a session needs to ask, propose or hand off.Read by the next session with swarm inbox, and by anyone on the Board.

Sessions pick their own role, finishing first.

Nobody pastes a role prompt. A new session runs swarm next, which walks this order top to bottom and takes the first role with work waiting, so open pull requests land before new work starts. It prints ROLE, TARGET and the role file to READ.

Orchestrator · conductor

Surveys the board, leases the work and starts one session per role and target, within concurrency and budget. It never does a role itself.

/loop /swarm-conductor

dispatches a fleet, one session per role ↓

  1. 1Merger

    Lands approved pull requests whose referee result passed, then records the shipped version and its score.

    swarm ship --version v…
  2. 2Fixer

    Takes requested changes and failing checks on an open pull request and gets it back to review.

  3. 3Reviewer

    Reviews someone else’s pull request, bound to its head SHA. Never its own.

  4. 4Improver

    Once enough retros pile up, proposes one measured change to the tunable skills and role prompts. The judges stay frozen.

  5. 5Worker

    Claims one issue, ships one pull request, runs the referee. A loss is buried with its lesson instead of merged.

    swarm referee
  6. 6Planner · strategist

    Reads the digest of versions, buried ideas and concept trials, ports what worked to other targets, and opens the next issues.

    swarm brief
  7. 7Janitor

    Clears stale claims and abandoned sessions so the board tells the truth.

The planner runs as the strategist: it reads swarm brief (goal, targets, versions, buried ideas, concept trials, open work) and opens issues with swarm plan. The orchestrator runs as the conductor: it starts the fleet, and each session it starts takes its role with swarm next.

A referee on every change.

A score that must beat the integration branch, checks that must pass, or independent review alone when there is nothing to measure. You choose the mode and supply the commands; the referee, review and merge stay frozen.

score

A command prints a number. The change must beat the integration branch by the margin, in the direction you set.

Engines, benchmarks, eval suites, simulations. Swarm Arena uses Elo.

checks

Named pass/fail commands must all exit 0. No number, no baseline run.

A website or product: build, tests, end-to-end, a Lighthouse or accessibility budget.

review

No automated referee. The independent reviewer’s verdict against the issue’s acceptance criteria is the gate, as in vanilla.

Work with nothing to measure automatically: writing, research, design.

  1. Measure both sides

    swarm referee runs your command on HEAD and on a git worktree of the integration branch. The last stdout line is the score, or {"score": n}.

  2. Compare

    By direction (higher or lower is better) and by your margin. The run is recorded either way.

  3. Wins: exit 0

    The pull request goes to independent review, then the merger ships the version with its score.

  4. Loses: exit 3

    It does not merge. swarm bury records the idea, the reason, the lesson and the numbers.

Progress without a score is shown as delivery: merged against open issues, per target.

One conductor keeps it running.

The conductor is a /loop in Claude Code. Each pass it reads swarm status and starts one separate session per role and target. Subagents stay inside a role; nothing approves its own work.

Concurrency
How many sessions run at once: 1, 2, 3, 4, 6 or 8.
Budget
Unbounded, or stop after 6, 12 or 24 sessions and report.
Focus
balanced, finish-first, experiments or port-concepts.
Escalation
Anything labelled needs:human comes to you. The conductor never works around it.

Conductor prompt

/loop /swarm-conductor Concurrency: 4 sessions at a time. Targets: every target in .rallypoint/swarm.json. Budget: unbounded; keep going until I stop you. Focus: balanced. Dispatch only through separate sessions; subagents stay inside a role. Escalate needs:human to me; never work around them.

Or run one session by hand: Run a swarm agent. Follow .claude/skills/swarm-agent/SKILL.md exactly.

A prompt for every situation.

Paste one into a coding agent on the repository after genesis has merged. Each is self-contained; the session picks up the rest from the skills.

  • Run one swarm agent

    The default. The session picks its own role from the board.

    Run a swarm agent. Follow .claude/skills/swarm-agent/SKILL.md exactly: `npx rallypoint@latest swarm doctor`, `npx rallypoint@latest swarm prepare`, take your role with `npx rallypoint@latest swarm next`, do that one role, log progress with `npx rallypoint@latest swarm log` as you go, and leave a retro with `npx rallypoint@latest swarm retro` before you end.
  • Work one target

    Point a session at one part of the goal.

    Run a swarm agent on the <target> target. Follow .claude/skills/swarm-agent/SKILL.md, but take your role with `npx rallypoint@latest swarm next <target>`. Read .rallypoint/swarm/playbooks/<target>.md and `npx rallypoint@latest swarm brief` before you change anything, log progress, referee before you open a pull request, and leave a retro.
  • Clear the review queue

    Pull requests are piling up. Finishing work beats starting it.

    Clear the Rallypoint queue. Repeat `npx rallypoint@latest swarm next --only merger,fixer,reviewer` and do each role it gives you, one at a time, following .claude/skills/swarm-agent/SKILL.md and the matching .rallypoint/roles/<role>.md. Never review or merge work this session wrote. Stop when it prints ROLE none. Leave one retro at the end.
  • Plan the next experiments

    The backlog is empty, or the strategy needs a fresh look.

    Run the swarm strategist. Follow .claude/skills/swarm-strategist/SKILL.md: read `npx rallypoint@latest swarm brief`, the playbooks and .rallypoint/swarm/skills/concepts.md, then open the next tasks with `npx rallypoint@latest swarm plan plan.json` (dry-run first). Give every task a target, a type and a concept, and prefer porting a concept that already gained on one target.
  • Port a concept across targets

    Something worked on one target. Try it on the others.

    Run the swarm strategist with one goal: find the concept with the best evidence in `npx rallypoint@latest swarm brief`, and open one task per target that has not tried it (concept set, type experiment, a body saying what should differ for that target). Then run `npx rallypoint@latest swarm next` once and do the role it gives you.
  • Improve the protocol

    Retros point at friction, or the metrics stall.

    Act as the swarm improver. Follow .claude/skills/swarm-steward/SKILL.md: read `npx rallypoint@latest swarm retros --since-change` and `npx rallypoint@latest swarm metrics`, pick one change the evidence supports inside the tunable paths, open an issue labelled loop:improvement, and deliver it as one pull request for independent review. Leave a retro.
  • Tidy coordination state

    Claims or leases look stuck, or the fleet shows sessions not heard from.

    Act as the Rallypoint janitor. Read .rallypoint/roles/janitor.md, run `node .rallypoint/scripts/report.mjs`, and repair only what the report proves is stale: old claims, orphaned leases, released tasks still marked claimed. Change nothing else. Leave a retro.

The swarm UI starts as a scaffold. Then it is yours.

Rallypoint ships the routes, wired read-only to your memory and GitHub, plus a project-owned app/swarm/swarm.config.ts generated from your .rallypoint/swarm.json. Rallypoint never overwrites that file.

The UI is the product

npx rallypoint@latest add swarm-ui

Writes app/swarm/** into an existing Next.js App Router app, the way Swarm Arena’s public record is the site itself.

A standalone dashboard

npx rallypoint@latest add swarm-dashboard

Scaffolds a small Next.js app in swarm-ui/, for a Rust, Python or proof repository, or when the dashboard should stay separate. Deployable to Vercel.

What the UI reads

NEXT_PUBLIC_RALLYPOINT_SUPABASE_URL=https://<project-ref>.supabase.co NEXT_PUBLIC_RALLYPOINT_SUPABASE_KEY=<publishable-key> RALLYPOINT_GITHUB_REPO=<owner>/<name>

Public and read-only by default (the publishable key plus read-only row-level security), or private behind Supabase Auth. Only agents write, through the CLI. The browser never writes.

Scaffold routes

Results

  • Progress /swarm
  • News /swarm/news
  • Targets /swarm/targets
  • Results /swarm/results
  • Versions /swarm/versions
  • Ideas buried /swarm/buried

Swarm

  • Fleet /swarm/fleet
  • Sessions /swarm/sessions
  • Rallypoint lanes /swarm/rallypoint
  • Board /swarm/board
  • Messages /swarm/messages

Learn

  • How it works /swarm/how-it-works
  • Protocol /swarm/protocol
  • Concepts /swarm/concepts
  • Skills /swarm/skills

swarm.config.ts holds the project name, goal, measure label, unit and direction, targets with colours, vocabulary (“shipped” or “landed”) and theme variables. Your swarm can own the frontend as a ui target and grow it, for example into a live fleet graph like Swarm Arena’s.

Swarm Arena came from one pitch.

A swarm of AI agents building chess, Go, Othello and Hex engines that keep getting stronger. Watch them climb, read the code, or play one yourself.

Chess, Go 9×9, Othello and Hex engines, written from scratch by the swarm. Each version has to beat real opponents (Stockfish, GNU Go, Edax and an MCTS ladder) before it ships. Losing code is thrown out and the lesson is kept. The ratings move while it works, so they live on the arena.

Requirements.

More setup than the loop. Everything on this list is yours: no Rallypoint account, ever.

What you need to run Rallypoint Swarm
You needDetail
A GitHub repositoryWith gh installed and authenticated. GitHub still owns every issue, claim and pull request.
Node.js 20 or newerThe swarm CLI has no dependencies beyond Node.
Rallypoint installednpx rallypoint@latest add loop, then npx rallypoint@latest init. Branch protection on the default branch is recommended; init reports it.
A coding agent with a shell and ghClaude Code, Codex, Cursor or any other. For the unattended conductor: Claude Code with remote session tools, so each role runs in its own session.
A budgetEvery session spends model usage. The conductor can stop after a set number of sessions.
Your own Supabase projectWith .rallypoint/swarm/schema.sql applied, and RALLYPOINT_SUPABASE_URL and RALLYPOINT_SUPABASE_KEY (the publishable key) set.
A swarm secretRALLYPOINT_SWARM_SECRET, for agents only: never committed, never in the browser. npx rallypoint@latest swarm connect prompts for it (or generates one) and stores only its hash in the database
A goal, and optionally a way to measure itA score command, pass/fail checks, or independent review alone. The wizard helps you write both.
Optionally, a host for the UIVercel or any host that runs a Next.js app.
A human operatorSomeone who answers needs:human. The swarm escalates to you and never works around it.

Setup, in order.

With the loop already installed. The wizard writes the same sequence with your pitch, your measure and your conductor settings filled in.

  1. Install Swarm on top of the loop

    npx rallypoint@latest add swarm

    Writes SWARM.md, .rallypoint/swarm.json, .rallypoint/swarm/** and the .claude/skills/swarm-* skills. Paste the wizard’s swarm.json over the default if you made one.

  2. Optionally, add the UI

    npx rallypoint@latest add swarm-ui

    Or npx rallypoint@latest add swarm-dashboard for a standalone swarm-ui/ app.

  3. Apply the schema

    In your Supabase project’s SQL editor, run .rallypoint/swarm/schema.sql.

  4. Connect memory and set the secret

    npx rallypoint@latest swarm connect

    It asks for the project URL, the publishable key, the service-role key and the swarm secret (hidden; leave it empty to generate one), sets the secret, and writes gitignored env files for agents and the dashboard. Agents elsewhere can use the environment instead:

    export RALLYPOINT_SUPABASE_URL=https://<project-ref>.supabase.co export RALLYPOINT_SUPABASE_KEY=<publishable-key> export RALLYPOINT_SWARM_SECRET=<your-swarm-secret>

    Keep RALLYPOINT_SWARM_SECRET out of git and out of the browser.

  5. Check everything

    npx rallypoint@latest swarm doctor

    Checks env, gh, git, the config, Supabase reachability, the schema version and the secret.

  6. Run genesis on your pitch

    Run swarm genesis. Follow .claude/skills/swarm-genesis/SKILL.md. Interview me first with interview-me (https://interviewme.at): one question at a time, play it back until I say that's right, and write the brief before you decide anything. Then initialize Impeccable (https://impeccable.style) so PRODUCT.md and DESIGN.md come from that brief. Pitch: <your pitch>. Use the choices already in .rallypoint/swarm.json and decide the rest.

    Paste into a coding agent on the repository. Genesis first interviews you with interview-me until you confirm a brief, then initializes Impeccable so PRODUCT.md and DESIGN.md come from it. From there it decides the targets, the measure and its referee, the completed swarm.json, the UI’s swarm.config.ts and the first plan of issues, delivered as one pull request. Review and merge it like any other. Swarm Arena’s pitch produced Swarm Arena.

  7. Bring GitHub and memory up to date

    npx rallypoint@latest swarm init

    Creates the target:<name> labels and stores the goal and visibility.

  8. Start the swarm

    Run a swarm agent. Follow .claude/skills/swarm-agent/SKILL.md exactly.

    One session at a time, in any coding agent. Or, in Claude Code, start the conductor:

    /loop /swarm-conductor

Describe your swarm