Next tierRallypoint Swarm

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 loop

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 loop

Next 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

OpenIssue #142prio:p1
No pull request yet

Planner planner-2b80Step 1 of 7

gh issue create --title "Retry failed webhook deliveries" --label prio:p1

No 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.

Two workers race to claim issue 142worker-a3f9 creates refs/heads/rallypoint-claims/issue-142 first and claims issue 142. worker-7c21 tries to create the same ref, GitHub refuses the second creation, and it moves on to issue 143 without touching 142.create ref — once onlyrefs/heads/rallypoint-claims/issue-142Refused:reference already existsworker-a3f91st to arriveworker-7c212nd to arrive#142 status:claimedthen the label, the assignee, the branch#143 next candidate#142 never touchedTwo workers race to claim issue 142worker-a3f9 creates the reservation ref first and claims issue 142. worker-7c21 is refused and moves on to issue 143.create ref — once onlyrefs/heads/rallypoint-claims/issue-1422nd create refused:reference already existsworker-a3f9worker-7c21#142 claimed#143 next
Several sessions may share one GitHub identity, so an assignee proves nothing about who arrived first. The ref does: 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

  1. Claimable

    Open, no assignee, no hold label. Filing an issue makes it claimable.

  2. status:claimed

    Set by claim.mjs only after the reservation ref exists. release-claim.mjs returns it to the pool.

  3. Closed

    Closes #N lands, the claim is released. Refs #N releases it and leaves the issue open.

Held out of the pool

  • status:blockedOnly with a Blocked-By: #41 trailer; 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

  1. Ready for review

    One branch, agent/<issue>-<slug>, body says Closes #N.

  2. status:changes-requested

    The fixer pushes to the same branch; the head moves, the verdict stops binding, review runs again.

  3. review:approved

    Applied only by review.mjs, bound to one head SHA, never from the author’s own session.

  4. 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.
Rallypoint labels, their config keys, and meanings
LabelConfig keyOnMeaning
status:claimedclaimedissueReserved by one worker right now.
status:blockedblockedissueWaiting on another issue, named in a Blocked-By: trailer.
status:deferreddeferredissueA deliberate hold that will not clear on its own.
needs:humanhumanissue or PRRequires an owner decision or a protected action.
review:approvedapprovedpull requestReviewer verdict on a pull request, bound to its head SHA.
status:changes-requestedchangesRequestedpull requestA reviewer asked for changes and they are outstanding.
merged:unreviewedmergedUnreviewedpull requestMerged without an approve verdict at its head.
prio:p1prio:p0 … prio:p9issuePriority. 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.

Orchestratornode .rallypoint/scripts/report.mjssurveys the board, leases the work, dispatches
  • Worker#142
  • Worker#143
  • Worker#145
  • ReviewerPR #388
  • FixerPR #380
  • MergerPR #377
  • Janitorstale claims
One orchestrator, a fleet of sessions, each in its own role on its own issue or pull request. Several orchestrators may run at once: leases keep them from dispatching the same job twice, and claim.mjs keeps two workers off one issue.
The nine Rallypoint roles, whether each claims issues or reviews, and what it is responsible for
RoleClaims issuesReviewsResponsibilityContract
OrchestratorNoNoReads repository state and recommends what to run next.Contract
PlannerNoNoKeeps an ordered, well-scoped backlog.Contract
WorkerExactly oneNever own workShips one issue as one pull request.Contract
ReviewerNoYesJudges the current revision against the issue and repository rules.Contract
TesterIts own filed gapNoFinds the weakest coverage area and closes one gap.Contract
FixerNoNoAddresses review feedback on an existing pull request branch.Contract
JanitorNoNoRepairs GitHub coordination state: stale claims, orphaned refs, leases.Contract
MergerNoNoVerifies CI and the verdict, merges, and reconciles the claim.Contract
ImproverIts own filed changeNever own workProposes 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.

The improver’s cycle: measure, propose, gate, evaluate
StepOwned byWhat happens
Measureimprovement.mjs retroReads 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.
Proposeloop:improvementOne 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.
Gateimprovement.mjs checkRefuses a change that touches a frozen path or arrives while the last one is still being measured. Independent review still applies.
Evaluateimprovement.mjs evaluateCompares 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.

1,328 pull requests opened on UTON OS, one square each; 1,256 filled squares were merged.1,328 pull requests opened on UTON OS, one square each; 1,256 filled squares were merged.
1,256 mergedopened, not mergedOne square per pull request · 1,328 opened in eight weeks

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.

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.

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.

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.
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 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 swarm

Installs 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 loop

Writes 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 init

Needs 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.md
  • AGENTIC_LOOP.md
  • docs/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.