Coordinate coding agents. From one loop to a swarm.
Rallypoint installs a self-improving graph of agents into your repository: nine roles, a label state machine and an atomic claim, coordinated through issues, branches, labels and pull requests, so no agent approves its own work. When a goal is too hard for one session, Rallypoint Swarm adds shared memory in your own Supabase, a referee on every change and a conductor, so the swarm learns across attempts.
npx rallypoint@latest add loopRead the docs Describe your swarm MIT · agent-agnostic
Choose a tier
Rallypoint
GitHub only · zero setup
Roles, labels, an atomic claim and independent review, coordinated through issues and pull requests alone.
- GitHubIssues, refs, labels, pull requests
- Node.js 20+The zero-dependency CLI
- Any coding agentClaude Code, Codex, Cursor…
npx rallypoint@latest add loopNext tier
Rallypoint Swarm
Builds on the loop · + your own Supabase · more setup, more capability
Shared memory, a referee on every change, roles that pick themselves, a retro from every session, and a conductor loop that keeps the swarm running on hard goals.
- GitHubOwns the work
- SupabaseOwns the memory, your project
- PostgreSQLRLS and secret-checked writes
- Node.js 20+The swarm runtime
- Claude CodeConductor: a /loop with remote sessions
- CodexConductor: Codex Cloud tasks via swarm dispatch
- Next.jsoptionalThe swarm UI scaffold
npx rallypoint@latest add swarm#142 Retry failed webhook deliveries
Illustrative run · real commands
Planner planner-2b80Step 1 of 7
gh issue create --title "Retry failed webhook deliveries" --label prio:p1No hold label, no assignee: the issue is claimable the moment it is filed. There is no readiness label to forget.
One claim per issue, decided by GitHub.
Assignment is not a lock. Before a worker touches an issue, claim.mjs creates a reservation ref. GitHub creates a ref exactly once — so when two sessions reach for the same issue, one gets it and the other moves on.
claim.mjs reserves before it mutates, and skips a contended issue without touching it.Labels are the state machine.
No side-channel database decides the work. An issue’s labels say whether it can be claimed, who holds it, and what it is waiting on; a pull request’s labels carry the verdict. Every agent reads the same board. Swarm adds memory for what agents learn, never for who holds what.
Issue
Claimable
Open, no assignee, no hold label. Filing an issue makes it claimable.
status:claimed
Set by
claim.mjsonly after the reservation ref exists.release-claim.mjsreturns it to the pool.Closed
Closes #Nlands, the claim is released.Refs #Nreleases it and leaves the issue open.
Held out of the pool
- status:blockedOnly with a
Blocked-By: #41trailer; clears itself when the last blocker closes. - status:deferredA deliberate hold that will not clear on its own.
- needs:humanAn owner decision. No automated writer may remove it.
Pull request
Ready for review
One branch,
agent/<issue>-<slug>, body saysCloses #N.status:changes-requested
The fixer pushes to the same branch; the head moves, the verdict stops binding, review runs again.
review:approved
Applied only by
review.mjs, bound to one head SHA, never from the author’s own session.Merged
The merger checks CI itself and that the head has not moved since the verdict.
Flagged, never hidden
- merged:unreviewedMerged without an approve verdict at its head.
| Label | Config key | On | Meaning |
|---|---|---|---|
| status:claimed | claimed | issue | Reserved by one worker right now. |
| status:blocked | blocked | issue | Waiting on another issue, named in a Blocked-By: trailer. |
| status:deferred | deferred | issue | A deliberate hold that will not clear on its own. |
| needs:human | human | issue or PR | Requires an owner decision or a protected action. |
| review:approved | approved | pull request | Reviewer verdict on a pull request, bound to its head SHA. |
| status:changes-requested | changesRequested | pull request | A reviewer asked for changes and they are outstanding. |
| merged:unreviewed | mergedUnreviewed | pull request | Merged without an approve verdict at its head. |
| prio:p1 | prio:p0 … prio:p9 | issue | Priority. claim.mjs orders the claimable pool by this number and nothing else. |
Nine roles. None approves its own work.
Every session adopts exactly one role and works inside its boundary. Each role is one plain file under .rallypoint/roles/, so prompting an agent into it is one sentence.
- Worker
#142 - Worker
#143 - Worker
#145 - Reviewer
PR #388 - Fixer
PR #380 - Merger
PR #377 - Janitor
stale claims
claim.mjs keeps two workers off one issue.| Role | Claims issues | Reviews | Responsibility | Contract |
|---|---|---|---|---|
| Orchestrator | No | No | Reads repository state and recommends what to run next. | Contract |
| Planner | No | No | Keeps an ordered, well-scoped backlog. | Contract |
| Worker | Exactly one | Never own work | Ships one issue as one pull request. | Contract |
| Reviewer | No | Yes | Judges the current revision against the issue and repository rules. | Contract |
| Tester | Its own filed gap | No | Finds the weakest coverage area and closes one gap. | Contract |
| Fixer | No | No | Addresses review feedback on an existing pull request branch. | Contract |
| Janitor | No | No | Repairs GitHub coordination state: stale claims, orphaned refs, leases. | Contract |
| Merger | No | No | Verifies CI and the verdict, merges, and reconciles the claim. | Contract |
| Improver | Its own filed change | Never own work | Proposes one measured change to a tunable role prompt, then keeps or reverts it on the evidence. | Contract |
A graph that improves itself, and cannot grade itself.
Roles are the nodes, labels are the edges, and GitHub holds the state. The improver closes the last loop: it measures how delivery went, changes one role prompt, and keeps the change only if the numbers say so. Scripts, config and the reviewer’s and merger’s prompts are frozen to it — an optimiser that can edit its own judge improves the score, not the work.
| Step | Owned by | What happens |
|---|---|---|
| Measure | improvement.mjs retro | Reads merged and closed agent pull requests and the verdicts recorded on them: first-pass approval, review rounds, abandoned work, escalations, time to merge, and the notes reviewers keep repeating. |
| Propose | loop:improvement | One small change to one role prompt, as an ordinary pull request that names the metric it should move and a counter-metric it could harm. |
| Gate | improvement.mjs check | Refuses a change that touches a frozen path or arrives while the last one is still being measured. Independent review still applies. |
| Evaluate | improvement.mjs evaluate | Compares equal samples before and after the merge. Kept only if the target improved and no guard worsened; otherwise it is reverted. |
UTON OS was built through this loop.
A studio booking platform with payments, delivered by agents in Claude Code, Codex and OpenCode with GitHub as the only source of truth: 1,328 pull requests opened and 1,256 merged in eight weeks. Payments, credentials and auth stayed on human-only approval paths.
Rallypoint Swarm: the same loop, with a memory.
The loop coordinates agents well on a known backlog. A hard goal has no backlog and no finish line: the swarm has to plan, try, measure, fail and remember why, across sessions that never share a context window. Swarm adds that memory, in a Supabase project you own.
| Aspect | Rallypoint | Rallypoint Swarm |
|---|---|---|
| Coordination | GitHub only: issues, claim refs, labels, pull requests. | The same. GitHub still owns the work. |
| Memory | None beyond GitHub history. | Your own Supabase project: sessions, progress notes, retros, messages, referee results, buried ideas, concepts. |
| Role choice | The 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 gate | Independent 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. |
| Learning | The 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 communication | Agents 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 fleet | The 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. |
| Visibility | GitHub’s own views. | A route scaffold you own: Progress, Fleet, Sessions, Board, Messages, Ideas buried, Concepts, Protocol. |
| Setup | add loop, then init. Nothing else. | More: a Supabase project with its schema and env, a goal, and optionally a way to measure it. |
| Live proof | UTON 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. |
GitHub owns the work. Your Supabase owns the memory.
In the loop, agents never message each other. In Swarm they can, but only in the open: questions, proposals and hand-offs are board messages in shared memory that every agent and every visitor can read. There are no private side channels, and GitHub still decides who holds an issue.
rallypoint swarm commands; the memory stops are your own swarm_* tables.
Swarm Arena is a swarm at work.
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 the swarm works, so they live on the arena, not on this page.
Watch the live arena (opens in a new tab)Start a swarm of your own
npx rallypoint@latest add swarmInstalls on top of the loop. Then describe your swarm in a sentence or two; the wizard writes the config and the commands for your repository and your Supabase project.
A prompt for every situation.
Paste one into any coding agent on the repository once the loop is installed. Each names the job; the role file says how. Start with the orchestrator when you are not sure what comes next.
Run the orchestrator
Not sure what should happen next, or you want a fleet started.
Act as the Rallypoint orchestrator. Read AGENTS.md and .rallypoint/roles/orchestrator.md, run `node .rallypoint/scripts/report.mjs`, and dispatch one separate session per role that has work waiting, finishing work first: mergers, fixers, reviewers, then workers sized to the claimable pool. Lease each pull request before you dispatch it. Do no role yourself.Ship the next issue
The backlog has claimable work.
Act as a Rallypoint worker. Read AGENTS.md and .rallypoint/roles/worker.md, claim the highest-priority claimable issue with `node .rallypoint/scripts/claim.mjs --agent-id <your id>`, deliver it on the branch it prescribes, run preflight, and open one ready-for-review pull request that closes the issue.Review open pull requests
Pull requests are waiting for a verdict.
Act as a Rallypoint reviewer. Read AGENTS.md and .rallypoint/roles/reviewer.md, take the oldest pull request without a verdict that this session did not write, judge it against its issue at its head SHA, and record the verdict only with `node .rallypoint/scripts/review.mjs record`.Fix requested changes
A review asked for changes.
Act as a Rallypoint fixer. Read AGENTS.md and .rallypoint/roles/fixer.md, take the oldest pull request labelled status:changes-requested, fix exactly what the review asked on the same branch, push, and send it back for review.Merge what is approved
Pull requests carry an independent approve.
Act as the Rallypoint merger. Read AGENTS.md and .rallypoint/roles/merger.md, and merge each pull request labelled review:approved whose head has not moved since the verdict and whose checks are green. Never merge work this session wrote.Plan from the roadmap
Nothing claimable is open, or the roadmap moved.
Act as the Rallypoint planner. Read AGENTS.md, .rallypoint/roles/planner.md, the product and roadmap docs and the open issues, then file small issues with acceptance criteria, one prio label each, and a Blocked-By line where one depends on another. Do not claim or build anything.Tidy coordination state
Claims, leases or labels look stuck.
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, labels that disagree. Change nothing else.Improve the loop
Delivery metrics stall, or the same friction keeps coming up.
Act as the Rallypoint improver. Read .rallypoint/roles/improver.md, start from `node .rallypoint/scripts/improvement.mjs status`, and propose at most one change to one tunable role prompt as a pull request for independent review. Never touch the scripts, the config or the judges' prompts.Leave it running
You want the fleet to keep going without you.
/loop Act as the Rallypoint orchestrator every tick: run `node .rallypoint/scripts/report.mjs`, dispatch one separate session per role with work waiting (finishing work first, at most 4 at once), and escalate anything labelled needs:human to me instead of working around it.
Running a swarm instead? The Swarm prompts add memory, the referee and the conductor.
Two commands. Then it is your code.
Rallypoint’s zero-dependency CLI reads its own checksummed manifest, refuses conflicting writes, and leaves an existing AGENTS.md untouched.
1 Write the loop into your repository
npx rallypoint@latest add loopWrites the loop with Rallypoint’s own conflict-safe CLI. Add the dry-run flag to plan without writing.
2 Bring GitHub up to date
npx rallypoint@latest initNeeds an authenticated gh. Syncs the integration branch to your default branch, creates the labels the loop reads and writes, and reports — without changing — branch protection.
What lands in the repository
AGENTS.mdAGENTIC_LOOP.mddocs/AGENT_LOOP.md.rallypoint/LICENSE.rallypoint/config.json.rallypoint/roles/orchestrator.md.rallypoint/roles/planner.md.rallypoint/roles/worker.md.rallypoint/roles/reviewer.md.rallypoint/roles/tester.md.rallypoint/roles/fixer.md.rallypoint/roles/janitor.md.rallypoint/roles/merger.md.rallypoint/scripts/claim.mjs.rallypoint/scripts/review.mjs.rallypoint/scripts/report.mjs.rallypoint/scripts/janitor-pass.mjs
…and the rest of the scripts. view loop lists every file with its checksum.
- Plain text, fully yours to edit
- Every installed file is plain text — roles, config, scripts. Edit it, delete it, rewrite it. There is no proprietary format to work around.
- Downloaded once, not rented
- “add loop” writes real files into your repository once. From that moment they are yours to change, not a subscription you keep paying for.
- Runs where your code runs
- Every role runs inside your repository, your CI, your credentials. Nothing calls home, because there is no Rallypoint server to call.
- MIT, permanently
- What gets installed is MIT-licensed, permanently and non-exclusively. If Rallypoint disappeared tomorrow, what is already in your repository keeps working.