# Show HN: Idea-to-PR software factory Claude plugin – customize SDLC to the task

> Source: <https://github.com/gsVAM/SuperEGM/>
> Published: 2026-12-01 00:09:29+00:00

**Key takeaway:** SuperEGM splits long-horizon design from zero-context validation: a context-rich session writes the design, stateless reviewers who never saw the conversation critique it, and each approved unit of work becomes its own GitHub issue built on a separate branch and pull request under a dedicated GitHub

### An AI engineering team that ships reviewed pull requests,

keeps track of its own work, and can never merge without you.

**The Super Elephant-Goldfish Model** · one Claude Code plugin, from an idea to merged pull requests

[Quick start](#quick-start) · [Why](#why-it-exists) · [Memory](#memory-and-context-the-elephant-and-the-goldfish) · [What it feels like](#what-it-feels-like) · [Practices](#engineering-practices-enforced-not-suggested) · [Agent identity](#human-work-and-agent-work-kept-apart) · [Tracks](#lineage-every-piece-of-work-is-a-track) · [Sweep](#staleness-the-sweep) · [For leaders](#for-engineering-leaders) · [Install](#install) · [Setup](#before-the-first-run) · [Config](#configuration) · [Docs](#documentation)

SuperEGM turns Claude Code into a small, disciplined software team that works in your GitHub repository. You describe an idea. A team of agents brainstorms it with you. Reviewers who have never seen your conversation pick the design apart until it holds. The approved design becomes one GitHub issue per unit of work, and fresh builders work those issues in parallel: test first, each on its own branch, each opening its own pull request under the team's own GitHub identity, never yours. Every pull request is reviewed again, against the design and against CI, before it reaches you.

Then you merge. Only you can.

**You need** Claude Code, `git`, the GitHub CLI (` gh`) logged in, `python3`, and a GitHub repository you own with CI on pull requests.

1. 
**Install** the plugin from this repository's marketplace:

```
claude plugin marketplace add gsVAM/superegm
claude plugin install superegm@superegm
```

2. 
**Set up the repository once** (about 15 minutes;[Before the first run](#before-the-first-run) has every step): register a GitHub App for the builders, create an empty profile for them, protect your base branch so only you can update it, and make sure CI runs on`pull_request` . Then run`superegm doctor` : one line per prerequisite,`ok` or what to fix.
3. 
**Describe an idea** in Claude Code in that repository. The brainstorm turns it into a written design that ends in a list of units of work.
4. 
**Run the phases** , one command each:`/superegm:review-spec` ,`/superegm:plan` ,`/superegm:review-plan` ,`/superegm:file` ,`/superegm:wave` . Builders open draft pull requests; each one is reviewed before it reaches you.
5. 
**Merge** the pull requests that come back clean. Nothing merges without you.

[Your first project](#your-first-project) walks the same path in more detail.

Ask one AI session to design, build and check a feature, and four things go wrong:

- **It drifts.** Hours in, the design in its head is no longer the one you agreed on.
- **It grades its own homework.** The session that wrote the code is the worst judge of it.
- **It forgets.** A decision you made before lunch is gone by the evening.
- **It gets distracted.** It reads a comment about a bug that was fixed months ago and goes off to fix it again.

The first three are the problem Google's Elephant-and-Goldfish Model was built for. Google's Open Source Blog introduced it in October 2026 ([Introducing the Elephant-Goldfish Model plugin](https://opensource.googleblog.com/2026/10/introducing-elephant-goldfish-model-plugin.html)): an *elephant*, "a context-rich, long-horizon AI session that holds the end-to-end architectural vision and project memory", and *goldfish*, "stateless, zero-context sessions used strictly to validate specifications". Dave Rensin's essay [Elephants, Goldfish, and the New Golden Age of Software Engineering](https://drensin.medium.com/elephants-goldfish-and-the-new-golden-age-of-software-engineering-c33641a48874) makes the wider argument: design is the new code. SuperEGM is a fork of [google/elephant-goldfish-model](https://github.com/google/elephant-goldfish-model) that carries that idea from the design all the way to merged pull requests.

The fourth is what tracks and the sweep are for. In November 2026 Google's Developers Blog published [Agent Distraction](https://developers.googleblog.com/agent-distraction/), a study of millions of agent sessions in Google's own codebase. Among its findings, all from Google's internal traces:

- 13% of the file-reading sessions exposed the agent to an inline `TODO(bug/...)` or`FIXME(bug/...)` reference. Agents ignored the reference 94% of the time; in 6% of encounters they acted on that bug, and in 83% of those sessions the developer had not asked for it.
- More than two-fifths of those unprompted detours chased tickets that were already closed, fixed or obsolete. In over half, the bug was still open and the agent widened the job it had been given.
- Sessions with an unprompted bug detour took 70% more steps, 77% more tokens and 105% more wait time (statistically significant, p<0.0001).
- Google's response was cleanup agents that confirmed a TODO and its reason were obsolete before proposing to remove it. Over six months they removed thousands of obsolete references, with more than 95% of the changes accepted by human reviewers.

Their summary: "What is easy for humans to skim past in code, agents see as a call to action." SuperEGM's tracks and sweep take that lesson to a working repository: record what is finished so agents can see it, and check stale material against the real code and history before anyone deletes it. Google's figures describe Google's codebase and tooling; they are the reason for these features, not a forecast of what they will do in yours.

SuperEGM splits the work between two kinds of session, which answers the first three:

- The **elephant** is the long-memory session, yours. It brainstorms, drafts, plans, drives the waves and remembers everything. That memory is also why it is biased toward its own intentions.
- The **goldfish** is an isolated session: reviewer, judge, foreman, builder. Reviewers, judges and the foreman start with zero context; a builder is new on its unit's first launch and a fork of the previous one after (see below). It sees only the artifact and the evidence attached to its dispatch, so it finds what the elephant can no longer see.

The philosophy:

- Separate remembering from judging.
- Attach evidence, never context.
- Make "clean" a property of bytes at a commit.
- Keep the human on every merge.
- Converge across more than one model vendor, so a verdict is not one vendor agreeing with itself.

|  | One long AI session | SuperEGM | 
|---|---|---|
| **Design** | Lives in the chat, changes as it goes | A written spec, reviewed by agents who never saw the chat, frozen at a sha256 on approval | 
| **Plan** | Implicit | One test-first plan per unit, reviewed against the spec, filed as a GitHub issue | 
| **Who checks the code** | The session that wrote it | A fresh foreman per pull request head, which re-runs the checks itself, plus CI | 
| **Who merges** | Whoever holds the credential | Only you: a repository ruleset keeps every agent identity off the base branch | 
| **Git history** | Your name on everything | Agent commits under the SuperEGM GitHub App, your commits and merges under yours | 
| **What is done** | Whatever the session remembers | Tracks with status and closing evidence | 
| **Stale TODOs and rules** | Read as instructions | Found by the sweep, verified against the code and git history by a fresh agent | 
| **After the build** | A long transcript | A journal, review records, rulings, launch records and a post-mortem | 

The split between the elephant and the goldfish is the whole design, and so is what crosses it.

```
flowchart LR
  subgraph E["Elephant: your session"]
    M["Conversation, decisions,<br/>project memory"]
  end
  subgraph A["What crosses over"]
    S["The frozen spec"]
    I["The unit's issue"]
    D["The diff and CI result"]
    R["Pinned instructions<br/>and reference docs"]
  end
  subgraph G["Goldfish: fresh every time"]
    RV["Reviewers"]
    J["Judges"]
    FM["Foreman"]
    B["Builder"]
  end
  M --> S
  M --> I
  S --> RV
  S --> J
  I --> B
  D --> FM
  R --> B
  R --> RV
  R --> FM
  R --> J
```

The conversation itself never crosses. Each goldfish gets the artifact it judges or builds, and nothing else.

| Session | What it remembers | What it is given | What it never sees | 
|---|---|---|---|
| Elephant (you and your Claude Code session) | Everything | Everything | Nothing is hidden from it, which is the problem | 
| Spec and plan reviewers | Nothing | The artifact, the standards for its kind, and from round 2 the last round's findings with the fixes marked | Your conversation, your `CLAUDE.md` | 
| Builder | Nothing at launch; a later fix round resumes its own earlier session | Its issue, its orders, the rulings on its issue, pinned instructions | Your planning conversation, your profile's hooks, plugins and servers (organisation-managed plugins and hooks still run inside it) | 
| Foreman | Nothing | The pull request head, CI's result, the unit's definition of done | Your conversation | 
| Judges | Nothing | One question and its evidence | Your conversation | 

**Isolation is recorded, not assumed.** Goldfish are dispatched with `omitClaudeMd: true`, and every dispatch record carries what the goldfish reported seeing: `clean`, or `exposed:<what>` when something leaked in. A builder runs in its own empty profile with `--strict-mcp-config`, so it loads the plugins and MCP servers you list for builders, and each launch records them. The exception is managed settings: organisation-managed plugins and hooks apply whatever `--setting-sources` says, so they run inside every builder; the launch records them and `superegm doctor`'s `managed:` line names them.

**Memory that outlives the session.** The elephant's memory is not only its context window. Every handoff keeps a store outside your working tree: the journal, every review round and finding, every ruling, every launch, and the board. A new session, or a new owner, reads the store rather than a transcript. Tracks add the last piece: what is finished, why, and where it came from.

**Context that is pinned, not pasted.** The `instructions` list in `.superegm/config.json` routes repository rules files to builders, the foreman, reviewers and judges. A folder of reference documents (`{"dir": "docs/reference", ...}`, at most 50 files) is given as an index, read when the work touches it. Both are frozen at approval by blob sha and recorded on every dispatch, so you can tell exactly which version of which rule an agent saw.

1. **Monday, 9:00.** You open Claude Code in your repository and describe a feature in a paragraph. With`--team` , four agents work the idea with you: a cartographer reads your code, then an architect, a skeptic and an advocate each argue an approach and challenge one another. Out comes a design document that ends in a list of units of work, and the brainstorm goes on to set up how this project will be built: which reviewers, which rules files, the round cap, the mode, the builder.
2. **9:40.** You type`/superegm:review-spec` . Reviewers who see only the document, never your chat, find the gaps: a missing error path, two sections that disagree, a unit too big to build alone. The spec is fixed and reviewed again until nothing serious is left. You approve it, and its hash is frozen.
3. **10:15.** With the chain on, plan, plan review and filing follow by themselves: one GitHub issue per unit, each a test-first plan a stranger could follow, linked to the units it depends on. In normal mode the chain stops once for you to confirm the filing.
4. **10:30.** Builders start, each a fresh session on its own branch, pushing as your SuperEGM GitHub App, never as you. Each checks its own work before it pushes. A foreman reviews every pull request, re-runs its checks and sends back anything that is not right.
5. **Overnight.** In leave-me-alone mode a panel of judges rules on contested findings instead of you. One question splits the panel, so it waits. Your inbox asks it in plain words, with the agent's pick first: "I'd rule (b): the builder's test covers it. Rule (b)?" You answer "yes" from your phone.
6. **Tuesday, 8:00.** You open the live board on the tracking issue. Six pull requests are clean and waiting. You read them and you merge. Nothing merged itself.
7. **Friday.** The handoff closes. Its track is done, with`closed <YYYY-MM-DD>; <k> units landed, <m> not` as its evidence, and each landed unit's track is done with its merged pull request. A post-mortem tells you where the rounds, the findings and your time went. Before the next spec,`/superegm:sweep` checks the repository for TODOs, specs and rules files that this week made stale.

- **Team brainstorm.**`/superegm:brainstorming --team` (or`brainstorm.team` in the config) runs the brainstorm with four agents. A cartographer maps what your code already has. An architect, a skeptic and an advocate each work one approach in their own context and challenge each other's claims. They run as Claude Code agent teams when those are enabled, and as ordinary subagents otherwise.
- **A spec reviewed by strangers.** A panel of isolated reviewers, each with its own lens (design, readiness, structure, style, comprehension, scope and more), reads the spec round after round. Findings are rated high, medium or low and go back for fixes until nothing high or medium is left. The approval freezes the spec at a sha256, and no builder starts until the base branch carries exactly those bytes.

- **One issue per unit.** The plan is cut into units, and each unit's issue is its builder's whole brief: the test-first plan, the files it owns and its definition of done. The plan is reviewed against the spec before anything is filed. Dependencies become blocked-by links between issues.
- **Built for parallel waves.** Units that edit the same file may build at the same time, and the shared-file order is only the order their pull requests merge in; a unit that needs another's code (calls its function, extends its change, consumes its interface) names it in`Blocked by` , because a code dependency needs an explicit blocker. A wave runs several builders at once (`max_in_flight` ).
- **The right model for each unit.** Mark a unit`Tier: difficult` ,`doable` or`easy` . By default, difficult units get Opus at high effort, easy ones get Sonnet, and doable units get the builder's default model. Every role (builder, reviewer, judge) has its own model and effort, and`superegm doctor` prints them.

- **Isolated builders.** A builder is a Claude Code session with an empty profile. The first launch of a unit is new; a later launch forks the immediately previous successful session when its transcript, model, effort, profile and instruction files all match, so a fix round may keep earlier context. It sees its issue, its orders and the rulings on its issue, never your planning conversation. It writes the failing test first, commits on its own branch, and opens a draft pull request under its own GitHub identity, a GitHub App with one-hour tokens, that cannot touch your base branch. It loads the plugins and MCP servers you list for builders, plus any organisation-managed plugins and hooks, and each launch records them.
- **A foreman that checks the work.** Every pull request head gets a foreman, another goldfish. It waits for CI, re-runs the definition-of-done commands itself rather than trusting pasted output, and checks the test delta, so a deleted or weakened test is a high finding. It then reviews the head with the panel, posts one review on the pull request and returns one word:`clean` ,`revise` , or`contested` when a finding needs a ruling.
- **A second vendor, when you want one.** With the optional Astra lane (the Codex CLI), a GPT reviewer sits beside the Claude reviewers on every panel and a GPT judge on the judges' panel. Without it, panels are Claude-only and the record says so.
- **Judges for the hard calls.** In leave-me-alone mode, isolated judges on more than one model rule on contested findings, one question at a time, and a panel that does not converge waits for you.
- **A push that goes to one place.**`launch-builder` writes a`superegm-push` script into the launch's own folder next to the`gh` shim (mode 0700). It ignores its arguments and pushes`HEAD` to the builder's own branch, with no`-u` , and it is the builder's one push entry: there is no`git push` entry in its allow-list, which a prefix entry could not have kept off another ref. This removes the typed route to another ref and does not make one impossible: branch protection on the base branch stays the guard.
- **Notes from you reach every later launch.** A comment on a unit's issue that opens with`**Note:**` and then your text, from a login in`config.owners` , is carried into every later launch prompt of that unit under`# Owner notes` , oldest first.
- **Only what its author wrote.** A comment that was edited after it was posted never reaches a builder's prompt: an edited comment is left out of the prompt unless its record consumed it (a ruling's recorded text still stands), and the journal says`<form> ignored: edited` . A new ruling that cites a comment edited before it was recorded is refused. Deviation comments come from the builder or an owner alone, and a pull request review is carried into the builder's prompt only from an owner (a builder can still read any author's comments through`gh pr view <n> --comments` ; they reach its context, not its prompt).

- 
**A live board.** The tracking issue on GitHub carries a table that updates itself on every status pass: each unit's state, review round, pull request, what it waits on, the next action, what its builders cost, and its tier. An illustrative board, trimmed to eight of its ten columns:unit state round PR waits on next action cost tier U1 #12 landed r2 posted clean #20 none none 6.84 doable U2 #13 clean r1 posted clean #21 none await-merge 3.10 easy U3 #14 active none #22 ci foreman dispatch 2.45 difficult U4 #15 pending r5 posted cap-reached #23 q4 decision 2 11.37 doable
- 
**One inbox.**`/superegm:inbox` lists only what needs you: in this repository, or with`--all` across every repository you registered. If you write an executable`~/.superegm/notify` , it receives each new item, so a phone notification is one script away.
- 
**Answer in words.** The inbox asks each question in plain words, led by the agent's recommended answer and a one-line reason, so a "yes" is enough; it posts the ruling under your login and goes on.
- 
**Rule from your phone.** A`**Ruling:**` comment on a unit's issue, from an owner, is a ruling. You never have to open a terminal to unblock a unit.
- 
**Outside reviews count.** A review from a colleague or a review bot on a builder's pull request, or on the spec's own pull request, is ingested as findings and enters the same loop.
- 
**Accept early.** When only mediums and lows remain, the review says so, and you can accept without waiting out the round cap.

- **Leave-me-alone mode.** Add`--leavemealone` and the judges rule at every decision point. You wake up to merge-ready draft pull requests.
- **The driver.**`/superegm:driver` installs a launchd or systemd timer that keeps your registered projects moving, one wave pass at a time, while you are away. It runs without permission prompts, so read the caution under[How a wave works](#how-a-wave-works) first.
- **The chain.** With`driver.chain` on, a builder's exit or your answer starts the next step at once, and plan, plan review, file and wave follow your approval without a typed command.
- **The watchdog.** A builder with no new commit for 60 minutes (`builder.stall_minutes` , default 60) is reported as stalled, so it is not left quietly burning time.

- **Your rules, pinned.** The`instructions` list sends a repository's rules files to the roles that need them (builder, foreman, reviewers, judges), frozen at approval by blob sha and recorded on every dispatch. A folder of reference documents is listed as an index each agent reads from when its work touches it.
- **Your own reviewers.** One file per reviewer in`.superegm/reviewers/<id>.md` adds a review goldfish, rewords a built-in one, and chooses which kinds (`spec` ,`plan` ,`head` ,`integrate` ) it reviews.`superegm doctor` prints which loaded.
- **Your own round cap.**`review.rounds` (3 by default) caps every review, and a spec's`Rounds:` line sets its own.
- **Triage you declare up front.** A spec's`## Triage` section lists, under`Unblock:` , the kinds of medium finding that may stop blocking a pull request head; a triage goldfish answers fixed questions about each one. Highs are never eligible.
- **A go-ahead when you want one.** On a pull request head,`**Ruling:** proceed <sha7> — <reason>` ends the review at any round and pins the head you saw (it is refused when the head has moved since); on a spec or plan review the bare`**Ruling:** proceed — <reason>` does the same, and the workflow goes on.
- **Builders set up once, and probed.**`superegm builder-setup` makes the builder's profile, MCP servers and allow rules from what you already use, and`superegm doctor --probe` runs one builder-shaped session to show they work before a real launch finds out.

- **Shared files build in parallel.** Units that touch the same file can build at the same time; the shared-file order becomes the merge order, and a unit is relaunched only when its pull request really conflicts with the base. On one of SuperEGM's own plans, waiting for every shared file put 25 units in 9 waves; building them in parallel fit them in 5.
- **Builders check their own work.** Before it pushes, a builder runs the foreman's worktree checks, the definition-of-done commands and one self-review, and fixes what they find in the same session.
- **Fix rounds resume.** A later round resumes the builder's earlier session instead of reading the unit from scratch, with a fresh session whenever the resume cannot be trusted.
- **A stronger model when it is stuck.** A unit whose head reviews keep failing gets the stronger model on its next round.
- **Contests go to the judges first.** When a builder contests a foreman finding, the judge panel rules it in both modes, and you rule only what the panel does not converge on.
- **Outside reviews reach the builder whole.** A colleague's or a review bot's comment arrives as its full text, not its first line.

Builders push under their own GitHub identity, never yours, and open draft pull requests. A repository ruleset lets only you update the base branch. The foreman never merges or approves, and neither does the driver. SuperEGM brings you work that is reviewed, tested and clean, and the merge stays yours. See [Human work and agent work, kept apart](#human-work-and-agent-work-kept-apart).

From an idea to merged code, in this order. The yellow steps are yours; everything else is done by agents, each checked by another agent that never saw its work being made.

``` php
flowchart LR
  B0["Brainstorm<br/>builder check, visual companion"] --> W0["SDLC workflow<br/>reviewers, rules, round cap"]
  W0 --> P1["Review spec<br/>converged or ruled"]
  P1 --> H1["Owner pushes<br/>the approval commit"]
  H1 --> P2["Plan<br/>graph and scan pass"]
  P2 --> P3["Review plan<br/>converged or ruled, per unit"]
  P3 --> P4["File<br/>dry run confirmed"]
  P4 --> P5["Wave<br/>every head clean"]
  P5 --> H2["Merge<br/>by hand"]
  H2 --> P7["Integrate<br/>nothing left to escalate"]
  P7 --> PM["Post-mortem<br/>one report from the store"]
  P7 -.->|new units| P2
  P7 -.-> SW["Sweep<br/>stale material checked"]
  classDef human fill:#fde68a,stroke:#b45309,color:#1f2937
  class H1,H2 human
```

| Term | What it is | 
|---|---|
| **Elephant** | Your own Claude Code session. It has the long memory: it brainstorms with you, drives every phase and remembers every decision. | 
| **Goldfish** | Any fresh, isolated agent: a reviewer, a judge, a foreman, a builder. It starts with no memory of your conversation and sees only what it is handed, so it can judge what the elephant can no longer see. | 
| **Spec** | The design document for one piece of work, in `docs/specs/` : what to build, why, how it should behave, and a final`## Units` list cutting it into buildable pieces. Once approved it is frozen by its sha256 hash. | 
| **Handoff** | One approved spec on its way to being built: everything from its approval to its last merged unit, with its own record in the store. | 
| **Unit** | One buildable piece of the spec, small enough for one builder in one sitting: by default at most 10 files and 16 steps. | 
| **Plan** | A unit's step-by-step recipe, written test-first: for each step, the failing test, then the code that makes it pass. It also names the unit's interfaces, the files it may touch, its risk, its tier and what it waits on. | 
| **Issue** | Where a unit's plan lives once filed: one GitHub issue per unit. It is the builder's whole brief and the place you rule on that unit. | 
| **Tracking issue and board** | One GitHub issue per handoff, with a live table of every unit's state, review round, pull request and cost. | 
| **Wave** | A pass that launches builders for every unit whose dependencies have merged, up to `max_in_flight` at once, then reviews what they push. Waves repeat until every unit has landed. | 
| **Builder** | A goldfish that builds one unit from its issue: a headless Claude Code session in an empty profile, on its own branch, pushing as the SuperEGM GitHub App, never as you. | 
| **TDD** | Test-driven development: the test is written and seen to fail before the code that passes it. Builders commit `test(S2)` before`feat(S2)` , and the order is checked. | 
| **Definition of done (DoD)** | The checklist a unit must meet: files that must exist, commands that must pass, and CI green. The builder pastes the evidence into its pull request; the foreman runs it again itself. | 
| **Head** | The latest commit on a builder's pull request: the exact thing that gets reviewed. A new push is a new head, reviewed again. | 
| **Foreman** | The reviewer in charge of one pull request head. Once CI has finished, it re-runs the definition of done, checks the test-first order and that no test was removed or weakened, seats the review panel, posts one review and returns one word. | 
| **Review panel** | The goldfish that read an artifact together, each with its own lens: design, scope, readiness, structure, code changes, codebase fit, and optionally a GPT reviewer (Astra) from a second vendor. | 
| **Finding** | One problem a reviewer raises, rated **high** ,**medium** or**low** . High and medium block; low never does. | 
| **Round and cap** | One pass of review and fixes. Reviews repeat until nothing high or medium is left, or until the round cap (3 by default) asks you to rule. | 
| **Converged / clean** | Nothing high or medium left standing. A clean pull request head also has CI green, its definition of done met and its test order checked. | 
| **Contest** | A builder disagreeing with a finding, with its reason. Contests go to the judges first. | 
| **Judges** | A panel of isolated goldfish, on more than one model, that rules on one question at a time; a panel that does not agree waits for you. | 
| **Ruling** | Your decision, as a `**Ruling:**` comment on the issue or an answer in the inbox: uphold or overrule a finding, one more round, stop, proceed. | 
| **Inbox** | The one list of everything that needs you, asked in plain words with the agent's recommended answer first. | 
| **Store** | The local folder outside your repository where SuperEGM keeps its records: every review round, ruling, launch and the journal. | 
| **Respec** | A correction to an approved spec when the build proves part of it wrong: only that section is re-reviewed, and only the units it touches are rebuilt. | 
| **Integrate** | The last check: the spec is reviewed against everything that was merged, and the handoff closes. | 
| **Track** | One piece of work with a status, an origin and closing evidence, so anyone (or any agent) can see what is done and why. | 
| **Sweep** | A check for stale TODOs, specs and rules-file lines, each confirmed against the code by a fresh agent before it is called stale. | 

**1. Brainstorm: you and the elephant.** You describe an idea. The elephant asks the questions that matter, reads your code (with `--team`, a cartographer maps it while an architect, a skeptic and an advocate argue approaches) and writes the spec. Before handing it over, one fresh subagent reads the spec as the person who must build it (the builder check) and reports only the questions where a wrong guess matters; the skill answers what the spec already answers, settles the minor ones and marks them as its own calls, and asks you the rest. The visual companion, offered just in time, opens a local browser tab with mockups and diagrams; it binds `127.0.0.1` only and starts only on your yes, and nothing it shows leaves the machine. *Out:* a spec ending in `## Units`.

**2. Set up how it will be built.** The brainstorm then walks you through the workflow that will review and build this spec, in order: the reviewers, the instructions and reference documents, the round cap, the mode, the builder's tooling, `superegm doctor`, and the chain. You may skip any area or the whole step. *Out:* a checked `.superegm/config.json`.

**3. Review the spec: goldfish panel, `/superegm:review-spec`.** Reviewers who have never seen your conversation read the spec, each through its own lens, and raise findings. The elephant fixes them and marks each one; a new round reads the fixed spec. *Gate:* nothing high or medium left, or your ruling at the cap. You approve, the spec is frozen at its sha256, and you push the approval commit: no builder starts until the base branch carries exactly those bytes.

**4. Plan: `/superegm:plan`.** The approved spec is cut into units, each with its test-first plan, its scope, its definition of done, its tier and what it is blocked by. The helper checks the dependency graph and refuses a unit that is too big. *Out:* one plan per unit, in the store.

**5. Review the plan: goldfish panel, `/superegm:review-plan`.** Each unit's plan is reviewed against the spec before anything is filed, so a builder never receives a brief the design does not support. *Gate:* every unit converged or ruled.

**6. File: `/superegm:file`.** A dry run shows you every issue it is about to create; on your yes it files one GitHub issue per unit, links them with blocked-by, and opens the tracking issue with its board. *Out:* the plan, readable by anyone on GitHub.

**7. Wave, building: builders, `/superegm:wave`.** For every unit whose blockers have merged, a builder starts in its own worktree and branch. It works its plan step by step, test first, checks its own work before it pushes, and opens a draft pull request with the evidence for each definition-of-done item. If it is blocked, it says why on the issue and stops instead of guessing.

**8. Wave, reviewing: the foreman.** When CI has finished on a head, a foreman reviews it: it re-runs the definition of done, checks the test order and the test delta, and seats the review panel. It posts one review on the pull request and returns one word. **Clean:** the unit waits for your merge. **Revise:** the builder gets the review and fixes it in a new round. **Contested:** the judges rule first, then you if they split. **Cap reached:** you choose one more round or stop.

**9. Merge: you.** The inbox brings you every clean pull request. You read it and merge it, or say yes in the inbox. Each merge unblocks the units that were waiting on it, and the next wave launches them.

**10. Integrate: `/superegm:integrate`.** Once every unit has landed, the spec is reviewed against everything that was merged. Anything missing becomes new units that go round plan, review, file and wave again. The handoff closes, its track is marked done with its evidence, and a post-mortem reports where the rounds, the findings and your time went.

**11. Learn and tidy: `/superegm:retro` and `/superegm:sweep`.** The retro turns the post-mortem's lessons into edits for the next spec, one yes at a time. The sweep finds the TODOs, specs and rules-file lines this build made stale.

When the build shows the spec itself is wrong, `superegm respec` corrects one section in place: a narrowed review of the diff alone, an approval on the same handoff, and only the units the change touches are rebuilt. The details of each mechanism are in [How a review works](#how-a-review-works), [How a wave works](#how-a-wave-works), [The eight phases](#the-eight-phases) and [Post-mortem](#post-mortem).

`instructions` in `.superegm/config.json` lists files (`{"file": ".superegm/rules.md", "to": ["builder", "foreman", "reviewers", "judges"]}`, at most 8,192 bytes) that go into the brief of every role they are addressed to. An entry may name a `dir` instead: its `*.md` files are listed in the brief as reference documents (at most 50, 65,536 bytes each) that an agent reads when its task touches them. `approve-spec` freezes each file by its blob sha, so a builder's branch never changes what an agent was told. A file cannot grant a tool: a command it asks the builder to run still needs a `builder.allowed_tools` entry. A file addressed to `reviewers` or `judges` goes to the Codex vendor through the Astra lane (seated when `astra.enabled` is true, or when a review is opened with `--astra on`) and through the `astra` judge (when `astra.enabled` is true); addressing a file to `builder` or `foreman` alone keeps it out of the brief's instructions section only: a builder's own session is processed by the host, and a changed file's diff in a reviewed pull request is part of the Astra brief whatever its recipients (see [docs/privacy.md](https://github.com/gsVAM/SuperEGM/blob/main/docs/privacy.md)).

A file `.superegm/reviewers/<id>.md` adds a review goldfish: frontmatter `name`, `kinds` (any of `spec`, `plan`, `head`, `integrate`) and optional `model` and `effort`, then the persona (at most 8,192 bytes). A file named for a built-in reviewer replaces that reviewer's persona. Name the ids in `reviewers.spec`, `reviewers.plan`, `reviewers.head` and `reviewers.integrate`; `approve-spec` freezes the files, and `superegm doctor` prints a `reviewers:` line.

A review pauses for your ruling at its cap: `review.rounds`, an integer 1 to 10, default 3. A review stores its cap when it opens and keeps it when resumed, so a later change to `review.rounds` does not reach a cycle already open. A spec's own review opens under the live `review.rounds` (a respec cycle opens with a cap of 2). A `Rounds: <n>` line must stand in the spec's header, before its first `##` heading, outside fences and unindented. `approve-spec` freezes that line, else the live value, as the cap of that handoff's plan, head and integrate reviews, so a later change does not reach an approved handoff either. The judge panel keeps its own cap of 5.

With `driver.chain` set to `true` (default `false`; the SDLC workflow offers it once doctor passes), the driver carries a handoff through its phases unattended and stops where it needs you. `driver kick --root <path>` runs a tick now, but only when the driver is installed, the root is registered and that store's `driver.chain` is true; the install default interval is 5 minutes (`driver install --interval` sets another). `/superegm:inbox` (the helper is `superegm inbox`) lists only what needs you.

The inbox asks in plain words, opens each question with one recommended option and its reason, and your "yes" takes it. It checks that your `gh` login is in `config.owners`, reads your mapped answer back once, and posts the `**Ruling:**` comment itself; no skill asks you to paste a command. It merges only a pull request you name, with `--match-head-commit`, and withdraws the offer if the unit changed: `inbox withdrawn` journals `merge withdrawn`. A bare `superegm inbox` is read-only and opens no card. Typed without `--runcard`, `inbox withdrawn` opens and closes its own inbox card; that exception stands next to `approve-spec --void`, which opens and closes its own card too, and `driver kick`, which runs with no card.

A spec may carry a `## Triage` section with `Unblock:` patterns (over reach, later, critical, verified). When it does, a triage goldfish answers fixed fields against the code for a medium finding, and a matching one is deferred (`deferred: triage <n>`) instead of blocking the head. A clean head can therefore keep confirmed medium defects; they are listed under **Deferred by triage**, recorded as a follow-up row, and listed when the unit closes. To restore a blocker, undo it in the inbox: it posts `** Ruling:** <fid> finding upheld`, and triage is off for that unit afterwards.

`superegm postmortem --handoff <id>` writes one report from the store, with six sections: Header, Units, Reviewers, Owner time, Plan against actual and Lessons (fact rows that name their source records). It needs no run card, reads one `gh api` comment per respec row, and works on an open handoff too. Integrate runs it after it closes the handoff. `/superegm:retro [--handoff <id>]` then walks that closed handoff's Lessons with you one question at a time, each led by a suggested answer, and proposes each agreed cause as one edit (a reference document, a reviewer file, the config or `.superegm/brainstorm.md`): nothing is applied without your yes, and the accepted edits land in one commit with the retrospective recorded.

Every key lives in `.superegm/config.json`; `superegm init` writes it with the defaults.

| Key | Default | 
|---|---|
| `instructions` | `[]` | 
| `review.rounds` | `3` | 
| `units.max_body_kb` | `25` | 
| `units.max_files` | `10` | 
| `units.max_steps` | `16` | 
| `driver.chain` | `false` | 
| `reviewers.<kind>` | the built-in panels; name a `.superegm/reviewers/` id here to seat it | 
| `builder.precheck_attempts` | `3` | 
| `builder.escalate_after` | `2` (`0` turns escalation off for later rounds; an escalation already recorded stays) | 
| `builder.stall_minutes` | `60` | 
| `max_in_flight` | the builders a wave runs at once | 
| `mode` | `normal` , or`leavemealone` for the judges to rule | 

[`skills/plan/references/handoff_config.md`](https://github.com/gsVAM/SuperEGM/blob/main/skills/plan/references/handoff_config.md) has each key's rule.

Most agentic workflows ask the model to follow good practice. SuperEGM puts each practice behind a gate that a fresh session, a script or GitHub checks, and leaves a record behind.

| Practice | What enforces it | What it leaves behind | 
|---|---|---|
| **Spec-driven development** | No builder launches until the base branch carries the approved spec, byte for byte (sha256) | The approval commit and the frozen spec | 
| **Adversarial design review** | A panel of isolated reviewers, each with its own lens (design, zoom-out, readiness, proportion, structure, style, comprehension and more), round after round until nothing high or medium stands, or you rule | Every round's findings, fixes and dispositions | 
| **Test-driven development** | Every unit's plan is red, green, commit, with the test code written out; the foreman checks test-first order on the head | The unit's commits, test first | 
| **Tests cannot be talked past** | The foreman checks the test delta: a test removed or weakened is a high finding only you can allow | The finding and your ruling | 
| **Evidence over claims** | The foreman re-runs every definition-of-done command itself rather than trusting pasted output | The review comment on the pull request | 
| **Goldfish review** | Reviewers, judges and the foreman start with zero context and are dispatched without `CLAUDE.md` | `clean` or`exposed:<what>` on every dispatch | 
| **Judges for disputes** | Contested findings go to a panel of isolated judges that converges per question; a split waits for you | The panel's verdict file and the ruling it posted | 
| **CI gates** | Every builder head gets CI through a `pull_request` workflow; the foreman waits for it, and clean means CI green | CI runs on every head | 
| **Small units** | `scan` refuses a unit over the size limits (25 KB body, 10 files, 16 steps by default) and the plan splits it | The plan as filed | 
| **Human merge** | A ruleset lets only the owners update the base branch; the foreman and driver never merge or approve | Merges under your login | 
| **Learning from each build** | `superegm postmortem` writes a numbers-only report from the store;`/superegm:retro` turns its lessons into edits for the next spec | `postmortem.md` , the retrospective's edits | 

**How independent is the review?** Every goldfish is independent of the elephant's context. That is not the same as being independent of the model. By default every reviewer, the foreman and two of the three judges are Claude models: reviewers run on `opus` at `xhigh` effort, and the judge panel is `fable` and `opus` plus `astra`, a GPT-model judge that runs only when the optional Astra lane is set up (it needs the Codex CLI and `astra.enabled`). With `judges.min_vendors` at its default of 1, a Claude-only panel can rule, and its record says the panel was degraded. If you want every verdict to cross a model vendor, turn the Astra lane on and set `judges.min_vendors` to 2.

Every commit a builder makes and every pull request it opens is made under the **SuperEGM GitHub App**, as `<slug>[bot]`, never under your account. Your own commits, your approvals and your merges stay under yours. Six months from now, `git log` still tells you which lines an agent wrote and which a person did.

```
flowchart LR
  subgraph H["Your GitHub login"]
    O1["Brainstorm and approve the spec"]
    O2["Issues, review comments, rulings"]
    O3["Merge"]
  end
  subgraph AG["GitHub App: slug bot"]
    B1["Builder commits, test first"]
    B2["Builder branches, superegm/**"]
    B3["Draft pull requests"]
  end
  B1 --> B2 --> B3
  B3 -->|clean head| O3
  O3 --> BASE["Base branch"]
  B2 -.->|ruleset refuses| BASE
  classDef human fill:#fde68a,stroke:#b45309,color:#1f2937
  class O1,O2,O3 human
```

|  | Agent work | Human work | 
|---|---|---|
| **Identity** | `<slug>[bot]` , the SuperEGM GitHub App | Your `gh` login | 
| **Credential** | A one-hour installation token, minted per `gh` call by`superegm builder-token` from the App's private key; no token is stored | Your own | 
| **Commits** | The builder's git author and committer, on `superegm/**` branches | Your commits and the approval commit | 
| **Pull requests** | Draft, opened by the App | Merged by you | 
| **Base branch** | Refused by the repository ruleset | Only `config.owners` may update it | 
| **Workflows** | No Workflows permission, so a builder cannot change the CI that judges it | Yours to change | 

The issue bodies, comments, reviews and labels the plugin writes go under your `gh` login, because it acts for you there; the builder identity is for code. There is one builder identity per repository, and `launch` refuses to start a builder until the base branch is protected against it.

This is visible in SuperEGM's own history: when this README was written, 181 of the last 200 commits on `main` were by `superegm-builder[bot]`, and the other 19 were the owner's own commits and merges.

**For a leader, this is the audit trail.** You can answer "what share of this release did agents write?", "who approved this design?" and "did a human merge every change?" from git and GitHub alone, without trusting a tool's own report. The boundary is enforced by GitHub, not by the agent's good behaviour: the agent identity cannot merge, cannot push to the base branch and cannot rewrite CI.

A release, a handoff, a unit, a respec, a fix found halfway through a build, a feature, a redesign: each is one **track**. A track has:

- a **kind** :`release` ,`handoff` ,`unit` ,`respec` ,`fix` ,`feature` ,`redesign` or`other` ;
- a **status** : not started, in progress, done or dropped;
- its **origin** : the track it came from;
- **links** : the issues, pull requests, specs and records it touches;
- **closing evidence** : what shows it is done, or why it was dropped.

Tracks form a tree that can branch in any direction: a fix can come out of a unit, a feature out of a handoff, the work of a redesign out of the stopped unit it replaces. Handoffs, units and respecs are tracks already: they are derived from the store each time and never written, so an existing store has its tree from the first `superegm track list`. You add the rest, a release, a fix, a feature, with `superegm track add`.

``` php
flowchart TD
  R["A release<br/>in progress"] --> H1["Handoff A<br/>done: closed 2026-11-20; 7 units landed, 0 not"]
  R --> H2["Handoff B<br/>in progress"]
  H1 --> U1["Unit U1<br/>done: PR merged"]
  H1 --> U2["Unit U2<br/>done: PR merged"]
  U2 --> BF["Fix found in U2<br/>done: PR merged"]
  H1 --> RD["Redesign<br/>dropped: owner: replaced by handoff B"]
  H2 --> U3["Unit U3<br/>in progress"]
  H2 --> RS["Respec R1<br/>done: approved"]
  H2 --> U4["Unit U4<br/>not started"]
  H2 --> FE["Feature that came out of handoff B<br/>not started"]
```

*An illustrative tree, not a real build.*

**A track is done only with evidence the store records.** A landed unit shows `pr:#<n> merged <date>`, a stopped one who stopped it and why, a closed handoff `closed <YYYY-MM-DD>; <k> units landed, <m> not`, a superseded handoff the handoff that replaced it, an approved respec its commit; the owner's own word is stored as `owner: <text>`. The helper never states a fact the store does not hold.

**Why it matters.** The failure Google's Agent Distraction study measured is an agent spending effort on work that was already finished. A track that says **done**, with its closing evidence, is the thing an agent can check before it starts: this bug was fixed in that pull request, this redesign was dropped for that reason. Lineage also answers the question every reviewer and every new owner asks: *why does this exist, and what did it come from?*

| Without tracks | With tracks | 
|---|---|
| A TODO names a bug; the agent cannot tell it was fixed last week | The bug's track is done, with the pull request that fixed it | 
| A side fix found during a build is a comment nobody can find later | It is a track whose origin is the unit it was found in | 
| "Is the redesign still on?" means reading three threads | The redesign's track is dropped, and says what superseded it | 
| A feature that grew out of a handoff is a new list with no history | Its origin is the handoff it came from | 

**Who reads tracks.** Your own Claude Code session: before it starts on a bug, a TODO, an issue or a plan item, it runs `superegm track find` on it, and if a track for it is `done` or `dropped` it says so and shows the evidence first; the brainstorm does the same for a new topic. The inbox keeps a stopped unit's `redesign` row until its track has a child, that is until you have linked the redesign's work with `track origin`. The sweep uses a track's status as evidence. Builders, the foreman, reviewers and judges do not read tracks.

**The `superegm track` command.** `superegm track list [--status …] [--kind …] [--open]` prints one line per track, derived and owned, and `track show <id>` its history, its origin chain and its children. `track find <text>` matches a whole token (an id or a link exactly, so `#301` finds `issue:#301` and `pr:#301` and never `#3010`; a title or evidence by whole words) and prints one line per match, status first. The forms that write take `--runcard` and, typed without it, open and close their own `track` card: `track add --kind <kind> --title <text> [--origin <id>] [--link <link>]…` adds an owned track, `not started`, and prints its id `T<n>`; `track set T<n> --status <status> [--evidence <text>]` changes an owned track's status (`done` and `dropped` need evidence); `track link T<n> <link>` adds a link; `track origin <id> <origin id>` sets the origin of any track, derived ones included, and refuses a cycle. A derived track's status cannot be set by hand: `track set` on one says it is derived from the store. Owned tracks live in the store's `tracks/tracks.json`, outside your working tree like the rest of it.

**Tracks and GitHub.** A unit's GitHub issue is still its builder's brief and the place you rule; the live board is still on the tracking issue. A track is the record of status and lineage across all of them, including work that never had an issue.

Agents follow what they read. A TODO about a fixed bug, a spec nobody approved, a line in `CLAUDE.md` about a module that no longer exists: each one is an instruction to an agent, and a wrong one.

`/superegm:sweep` looks for that material across the repository. It reads three sources, TODOs, specs and rules files:

- **TODOs, FIXMEs and XXXs in tracked code** (not under`docs/specs/` or`tests/` ). One that names an issue or a unit is a candidate with that issue's state and the matching track's status as evidence; one that names nothing is a candidate only when its line is more than 90 days old;
- **specs** under`docs/specs/` that were never approved and have not changed in 90 days (an abandoned draft), or whose latest approval was voided. Whether a spec's design still matches the code is`/superegm:drift-report` 's job, not the sweep's;
- **lines in rules files** (`CLAUDE.md` ,`AGENTS.md` ,`GEMINI.md` at any depth,`.claude/**/*.md` and the files of`instructions` ) that name a path the repository no longer has.

**Nothing is called stale on suspicion.** The helper gathers the candidates and the evidence a checker cannot gather itself (the line's blame date, the file's recent git log, the state of each issue it names, each matching track's status, whether each path exists), and judges nothing. Each batch of up to 20 candidates then goes to a separate, fresh `superegm:sweeper` that reads only its batch and the repository at `HEAD`, and answers each candidate `stale`, `still true` or `unsure` with the evidence it cites; `stale` needs evidence. The agent that found a candidate is not the agent that convicts it: the same split of finding and judging that runs the rest of SuperEGM.

``` php
flowchart LR
  S["Sweep finds<br/>candidates"] --> C["Fresh subagent checks<br/>the code at HEAD and its history"]
  C -->|confirmed| ST["Stale<br/>with its evidence"]
  C -->|still true| K["Kept"]
  ST --> Y["Reported to you<br/>you decide"]
  classDef human fill:#fde68a,stroke:#b45309,color:#1f2937
  class Y human
```

The sweep changes nothing: it shows you the `stale` rows grouped by file, each with its evidence and a suggested change (delete the TODO, update the line, mark the spec abandoned), then the `unsure` rows, and counts the `still true` ones. Making any change is a separate request of yours. This follows the lesson of Google's cleanup agents, which confirmed a TODO and its reason were obsolete before proposing a change; it is not a claim that SuperEGM will match their acceptance rate. Like everything else here, nothing reaches your base branch except by your merge.

| Tool | What it checks | Against what | When | 
|---|---|---|---|
| `/superegm:sweep` | TODOs in code, specs that were never approved or lost their approval, `CLAUDE.md` and other rules files | The code at `HEAD` and the git history, by a fresh subagent | Before a new spec, or whenever the repository has moved on | 
| `/superegm:drift-report` | Every design document | The code | Typed by you after `/superegm:integrate` | 
| `/superegm:clean` | Worktrees, refs and local files a wave left behind | The store | Automatic for finished units; typed for an abandoned wave | 

Documentation is a by-product of the workflow, not a chore after it.

| Artifact | Written by | Where it lives | What it answers | 
|---|---|---|---|
| The spec | The brainstorm, then the spec review | `docs/specs/` in the repository | What are we building, and why? | 
| The approval | You | A commit on the base branch | Which exact bytes were approved? | 
| One plan per unit | `plan` , then`plan review` | The unit's GitHub issue | How is this unit built and checked? | 
| The board | `status` | The tracking issue | Where is every unit right now? | 
| Review records | Every review round | The store | What was found, fixed and ruled? | 
| Launch records | Every builder launch | The store | Which plugins and MCP servers did each builder load? | 
| Tracks | The workflow, and you for work outside it | With the workflow's records | What is done, and where did it come from? | 
| Reference documents | You, or the brainstorm offers to draft them | A folder you name, such as `docs/reference` | What must every agent know about this codebase? | 
| The post-mortem | `superegm postmortem` | `postmortem.md` beside the handoff | Where did the rounds, findings and your time go? | 
| The retrospective | `/superegm:retro` with you | Edits to reference docs, reviewers and config | What should the next build do differently? | 

The store sits under `artifacts_dir`, outside the working tree, and is never committed. The spec, the approval and the issues are in your repository and on GitHub, where your team already looks.

SuperEGM is a way to let agents do a large share of the building without giving up the controls you already rely on: a written design, code review, CI, and a human on every merge. What it changes is where people spend their time.

| Concern | What SuperEGM gives you | What it does not give you (yet) | 
|---|---|---|
| **Throughput** | Builders work units in parallel ( `max_in_flight` ), the phases after approval can chain on their own, and the driver keeps waves moving overnight | A measured speed-up. SuperEGM's own builds are the only data so far: one 15-unit wave phase ran about 90 hours | 
| **Review cost** | People review a design once, then rule only on the decisions the workflow raises; the inbox asks each in plain words with a recommended answer. Rounds are capped. In one of SuperEGM's own builds, half of 44 owner decisions were answered within about 6 minutes | A total token or money figure per build. The board shows what each unit's builders cost, and the post-mortem shows where the rounds went | 
| **Auditability** | A frozen, hashed spec; agent and human work under separate identities in git; every review round, finding, ruling and launch recorded | A tamper-evident log. The store is plain JSON on the owner's machine | 
| **Risk** | The agent identity cannot merge, cannot update the base branch and cannot change CI workflows; App tokens last one hour and are never stored | Protection on the machine itself. The unattended driver runs its sessions without permission prompts; give it a dedicated machine and only repositories you would let a session act on alone | 
| **Quality** | Spec review before code, test-first plans, a foreman that re-runs the checks, CI on every head, judges for disputes | A defect-escape rate. Nothing here is a benchmark against other tools | 
| **Knowledge retention** | Tracks with lineage and closing evidence, a post-mortem per build, a retrospective that turns lessons into edits for the next spec | Measurements for tracks and the sweep, which are new | 
| **Vendor exposure** | Runs in Claude Code against GitHub; an optional second vendor on review and judge panels | GitLab or other hosts. With the Astra lane on, specs and diffs go to OpenAI under your Codex account | 

**What a senior engineer will ask, answered.**

- *"Isn't this a lot of process for a small change?"* Yes. Use it for features and releases, not one-line fixes. The unit size limits come from evidence: in SuperEGM's first build, unit bodies of 59 to 94 KB took up to 11 builder launches, while a 24 KB, 8-file, 16-step unit merged on its first.
- *"Are the reviewers really independent?"* Of the author's context, always, and that is recorded per dispatch. Of the model vendor, only with the Astra lane on; see[How independent is the review?](#engineering-practices-enforced-not-suggested) .
- *"Is a track a second source of truth next to GitHub issues?"* No. The issue stays the builder's brief and the place you rule. A track is status and lineage, including for work that never had an issue.
- *"Why both a sweep and a drift report?"* They check different things against different evidence; see[Three hygiene tools](#three-hygiene-tools-three-jobs) .

SuperEGM is built with SuperEGM, and its own records are the only numbers this README quotes about it. Every design in [docs/specs/](https://github.com/gsVAM/superegm/tree/main/docs/specs) went through the workflow described here: brainstormed, reviewed by isolated reviewers until it converged, cut into units filed as GitHub issues, built test-first by fresh builders under the SuperEGM GitHub App, reviewed head by head, and merged by its owner. The issues, pull requests and review comments are public in this repository.

**What this README does not claim.** Tracks and the sweep have no field measurements yet, and nothing here quotes someone else's numbers as SuperEGM's result. Where a figure appears, it comes from SuperEGM's own build records or from the cited source, and says which.

- **Not for one-line fixes or quick spikes.** The per-unit process is deliberately thorough.
- **Not host-neutral.** It needs Claude Code and GitHub; there is no GitLab support, and the Astra lane needs the Codex CLI.
- **Not a cost claim.** Many reviewers at high effort cost tokens, and nothing here says it is cheaper than another way of working.
- **Not unattended-safe on a shared workstation.** Run the driver on a machine you would let a session act on alone.
- **Not a tamper-evident audit system.** GitHub holds the durable record; the store is local.
- **Not autonomous at the merge.** No mode, flag or timer merges without your word; the inbox merges only when you say so.

**You need** Claude Code, `git`, the GitHub CLI (` gh`) logged in, and `python3` (CI runs 3.11). That is the whole runtime: the helper is standard-library Python and every store is plain JSON on your disk.

**Why install from the GitHub repository.** This repository is its own Claude Code marketplace: `marketplace add gsVAM/superegm` points Claude Code at it, and `plugin install` takes the latest tagged release. Every release is cut from a reviewed, merged pull request, tagged and never moved, and ships a ZIP with its `SHA256SUMS` ([docs/releases.md](https://github.com/gsVAM/SuperEGM/blob/main/docs/releases.md)). So what you install is exactly what the tag says, and `claude plugin update superegm@superegm` moves you to a later one. Your projects live in their own GitHub repositories, too: SuperEGM files its plan as issues, its builders open pull requests there, and your merge is the only way code reaches your base branch.

SuperEGM includes the skills of two plugins under the same names, so if you have either installed, disable it first; otherwise skip this step:

```
claude plugin disable egm@egm-astra
claude plugin disable superpowers@claude-plugins-official
```

Then install from the marketplace:

```
claude plugin marketplace add gsVAM/superegm
claude plugin install superegm@superegm
```

Optional, and recommended: the second vendor. With [claudex-loop](https://github.com/chaseai-yt/claudex-loop) and a logged-in Codex CLI, a GPT reviewer (Astra) joins every review panel and every judges' panel, so no single model grades its own work:

```
claude plugin marketplace add chaseai-yt/claudex-loop
claude plugin install claudex-loop@claudex-loop
codex login
```

Without it, or with `"astra": {"enabled": false}` in `.superegm/config.json`, the lane records `not run` and reviews run Claude-only. What leaves your machine, and to whom, is in [docs/privacy.md](https://github.com/gsVAM/SuperEGM/blob/main/docs/privacy.md).

The workflow is in [docs/getting_started.md](https://github.com/gsVAM/SuperEGM/blob/main/docs/getting_started.md); the platform facts in [docs/claude.md](https://github.com/gsVAM/SuperEGM/blob/main/docs/claude.md).

**Why this is on GitHub, and why it takes a few minutes.** SuperEGM works where your code already lives. The plan becomes GitHub issues you can read, builders work on branches and open draft pull requests, CI runs on every push, and rulings can be comments. What it asks you to set up once is the safety it relies on: a GitHub App so a builder can never be you, a ruleset so nothing but your merge reaches the base branch, and a clean profile so a builder sees its orders and nothing else.

| Step | What | Why | 
|---|---|---|
| 1 | The builder identity: a GitHub App | Builders push under their own identity, scoped to this repository and without `workflow` , so they can never update the base branch or the CI that judges them. The App mints a one-hour token per call | 
| 2 | An empty builder profile | A builder starts fresh: no plugins and no `CLAUDE.md` it did not get from its orders | 
| 3 | A ruleset on the base branch | Only owners update it; unit branches cannot be force-pushed or deleted | 
| 4 | CI on `pull_request` | `clean` means CI green on the head; no CI means nothing is ever clean | 
| 5 | Commit the config | Every session and every builder reads the same `.superegm/config.json` | 
| 6 | Review from a profile without `SubagentStart` hooks | Such a hook reaches every goldfish, and a goldfish is meant to see the artifact and nothing else | 
| 7–9 | Builder tooling, the driver, keeping the machine awake | Only when you want them: plugins for builders, waves while you are away, a laptop that does not sleep mid-wave | 

Step 1 is a **GitHub App**: no long-lived token, and it is how SuperEGM's own repository is built.

Six things need a human once, before the first wave, and three more as you need them: the builder's own tooling (step 7) and the driver's unattended waves (steps 8 and 9). `superegm init` (run by the first typed skill when `.superegm/config.json` is missing) writes the config and prints the first five by-hand steps; steps 6 to 9 are yours to remember:

1. 
Register the builder's **GitHub App** : a name, no webhook, visibility`Only on this account` (a public App is installable by anyone, and the key would mint for them), repository permissions`contents: write` ,`pull_requests: write` ,`issues: write` ,`metadata: read` and no other (`doctor` checks exactly these four), installed on this repository (the installation may reach other repositories too: every token is minted for this repository alone, and`doctor` checks that the token reaches no other); note the App ID and slug, generate a private key and keep the`.pem` file outside the repository at the path the variable`SUPEREGM_APP_KEY` names (config key`builder.app.private_key_env` ); set`builder.app` to`{"app_id": <id>, "slug": "<slug>", "private_key_env": "SUPEREGM_APP_KEY"}` one identity per repository. Builders then push and comment as`<slug>[bot]` under one-hour tokens minted per call; no token is ever written anywhere.
2. 
Create the builder's empty profile at `config.builder.profile_dir` : no hooks, no plugins and no`CLAUDE.md` , only the login (`CLAUDE_CONFIG_DIR=<profile_dir> claude` , then`/login` , then exit) and a`settings.json` with`"syncClaudeAiPlugins": false` and`"disableClaudeAiConnectors": true` , set before the login, so the account's plugins are not synced into the profile on every start (Claude Code 2.1.273 or later) and its claude.ai connectors are not loaded;`launch-builder` refuses anything else (the files Claude Code writes on its own,`plugins/installed_plugins.json` with no entry,`known_marketplaces.json` , its default marketplace clones under`marketplaces/` ,`store/` , are not plugins; the plugins your organization's claude.ai policy installs,`scope: managed` in`installed_plugins.json` , are policy you cannot refuse from a profile: they are not refused, and every launch records them in the store's`launches/<unit>_r<n>_plugins.json` ). Managed settings apply whatever`--setting-sources` says, so the hooks they hold run inside every builder;`launch-builder` records those hook events in the same file, and`superegm doctor` prints one informational`managed:` line, right after`plugins:` , naming the managed plugins and hook events. It changes no exit code: you cannot remove managed settings from the profile, and the line shows what runs.
3. 
Set the branch protection of design section 11 on the base branch: restrict updates to the owner, the logins in `config.owners` (`init` writes your own): a classic restriction naming a non-empty subset of them, or a ruleset whose bypass names neither the App nor a team other than`config.owner_team` ; block force-push and deletion on`superegm/**` with a repository ruleset whose target pattern is exactly`refs/heads/superegm/**/*` (GitHub's ruleset matcher takes`refs/heads/superegm/**` as matching no branch, and`doctor` then reports`superegm/**` unprotected), the only form`launch` reads for that pattern.`launch` reads the protection and refuses the first wave without it.
4. 
Add a workflow triggered on `pull_request` , so every builder head gets CI: CI is the foreman's evidence.
5. 
Commit `.superegm/config.json` ;`approve-spec` commits it with the spec.
6. 
Run reviews from a profile without SubagentStart hooks: such hooks in the owner's own profile reach adapter subagents, and every dispatch record carries what the goldfish reported seeing.
7. 
Configure the builder's tooling, if it needs any: list the plugins in `config.builder.plugins` (each installed once into your own profile and disabled there) and the MCP servers in`config.builder.mcp` ; every launch loads exactly those and records them, with each plugin's hook events, in`launches/<unit>_r<n>_plugins.json` . To let builders delegate, add`Agent` to`config.builder.allowed_tools` (absent by default): a builder may then spawn the platform's default subagents under its own allow-list, budgeted in its orders at`builder.max_subagent_calls` (12), a budget the helper does not enforce.
8. 
For the driver, write `~/.superegm/env` (`KEY=value` lines, mode 0600:`PATH` ,`CLAUDE_CONFIG_DIR` naming a profile without SubagentStart hooks, and`SUPEREGM_APP_KEY` ; the driver's sessions run unattended with`bypassPermissions` , no allow-list and no prompt, under that credential), then type`/superegm:driver install` (installs the timer with`superegm driver install` ; re-typed after every plugin update) and`/superegm:driver register` (runs`superegm register` ) from the checkout that has the base branch checked out (without`--root` it registers the current checkout, and a spec-branch worktree makes the chain stop at`waiting checkout` ); the skill runs both under a`driver` card, without which the helper refuses them. On Linux, also run`loginctl enable-linger` so the timer runs while you are logged out.
9. 
Keep the machine awake while the driver runs ( `pmset` , or`caffeinate` ):`doctor` prints the`sleep:` setting. Optionally write`~/.superegm/notify` , an executable outside every repository that gets the new inbox lines on its stdin.

`superegm builder-setup [--mcp <name>]... [--allow <prefix>]...` does the profile settings of step 2, copies each named MCP server into `builder.mcp` with `mcp__<name>__*` in `builder.allowed_tools`, and adds `Bash(<prefix>:*)` for each `--allow`; it ends by asking you to run `superegm doctor --probe`.

Then run `superegm doctor` before the first wave: one line per prerequisite, `ok` or the refusal `launch` would give, and no run card. `superegm doctor --probe` also runs one headless session shaped like a builder launch (a model call) and prints `probe:` lines for each MCP server's status, each tool call and each permission denial, so a missing MCP login or allow-list entry shows before a builder hits it.

Everything SuperEGM needs to know about a repository lives in one file, `.superegm/config.json`, at the repository root and committed with your code, so every session and every builder reads the same rules.

**You do not write it from scratch.** The first typed skill runs `superegm init` when the file is missing: it writes the file with every key at its default, fills in `repo`, `base`, `artifacts_dir` and `owners` from your checkout and your `gh` login, and prints the by-hand setup steps. Then you edit the few keys your project needs. An unknown key is refused rather than ignored, so a typo shows up at once.

**The keys most projects change.** An excerpt, not a whole file; every other key keeps its default:

```
{
  "owners": ["your-login"],
  "mode": "normal",
  "max_in_flight": 5,
  "builder": {
    "profile_dir": "~/.superegm/builder-profile",
    "app": {"app_id": 123456, "slug": "my-builder", "private_key_env": "SUPEREGM_APP_KEY"},
    "allowed_tools": ["Read", "Edit", "Write", "Glob", "Grep", "Bash(git add:*)", "Bash(git commit:*)", "Bash(pytest:*)"],
    "plugins": [],
    "mcp": {}
  },
  "instructions": [
    {"file": "CLAUDE.md", "to": ["builder", "foreman", "reviewers"]},
    {"dir": "docs/reference", "to": ["builder", "reviewers"]}
  ],
  "review": {"rounds": 3},
  "astra": {"enabled": false},
  "driver": {"chain": false}
}
```

| You want to | Set | 
|---|---|
| Say who may merge | `owners` : the GitHub logins allowed to update the base branch;`owner_team` if a team's bypass is allowed | 
| Connect the builders' GitHub App | `builder.app` : its ID, its slug, and the name of the environment variable that holds the private key's path (never the key itself) | 
| Let builders run your test command, linters or tools | `builder.allowed_tools` , as Claude Code allow rules:`Bash(npm test:*)` ,`Bash(make lint:*)` ; plugins in`builder.plugins` , MCP servers in`builder.mcp` (`superegm builder-setup` copies them from your own setup) | 
| Give agents your rules files and reference docs | `instructions` : each file or folder, and which roles get it (`builder` ,`foreman` ,`reviewers` ,`judges` ) | 
| Choose models and effort | `builder.model` and`builder.effort` for ordinary units,`builder.tiers` for`difficult` and`easy` ones,`reviewers.model` and`reviewers.effort` for the review panels | 
| Change who reviews | `reviewers.spec` ,`.plan` ,`.head` ,`.integrate` ; add your own with a file in`.superegm/reviewers/` | 
| Run more or fewer builders at once | `max_in_flight` | 
| Cap review rounds | `review.rounds` (1 to 10; a spec can set its own with a`Rounds:` line) | 
| Let the judges rule instead of you | `mode` :`leavemealone` | 
| Add the second-vendor reviewer | `astra.enabled` :`true` , with claudex-loop installed and Codex logged in | 
| Let approved work move through the phases on its own | `driver.chain` :`true` , with the driver installed | 
| Keep words or names out of everything posted to GitHub | `banned_terms` : regular expressions checked against every issue, comment and review before it is written | 

**When a change takes effect.** Most keys are read each time a command runs. A few are frozen when a spec is approved, so that a build runs under the rules it was approved with: `mode`, the round cap, the `instructions` files (by their exact contents) and your custom reviewer files. A change to those reaches the next approved spec, not one already building. `driver.chain` is always read live.

**Check it.** Run `superegm doctor` after any change: one line per prerequisite, `ok` or exactly what `launch` would refuse, plus the model and effort of every role. `superegm doctor --probe` also starts one builder-shaped session, so a missing tool permission or MCP login shows up before a real builder hits it.

The full reference, with every key, its default and its rule, is [`skills/plan/references/handoff_config.md`](https://github.com/gsVAM/SuperEGM/blob/main/skills/plan/references/handoff_config.md).

1. Open Claude Code in the repository and describe the idea. `/superegm:brainstorming` is auto-invoked and drafts a spec under`docs/specs/` that ends in`## Units` . With`--team` (or`config.brainstorm.team` ) it brainstorms in team mode: a cartographer, an architect, a skeptic and an advocate, falling back to subagents when agent teams are off.
2. `/superegm:review-spec <spec>` : isolated reviewers go round until the spec converges. Approve it, then push the approval commit to the base branch. When the spec travels in a pull request (the plan PR), merge that pull request before the first wave:`launch` refuses until the base branch carries the approved spec, and where the base ruleset restricts updates to the owners the merge is the admin bypass,`gh pr merge --admin` , run by you. The pull request's CI has to pass first; a trimmed`reviewers.spec` panel is refused when the config is written, not first in CI.
3. `/superegm:plan <spec>` , then`/superegm:review-plan <spec>` : one TDD plan per unit, each reviewed against the spec.
4. `/superegm:file <spec>` : confirm the dry run; one GitHub issue per unit, with blocked-by links.
5. `/superegm:wave <spec>` : builders build, foremen review, and you merge the clean draft pull requests by hand. Merge, then type it again until every unit has landed.
6. `/superegm:integrate <spec>` : the spec is reviewed against everything merged; the handoff closes when nothing is left to escalate, and its post-mortem is written.
7. `/superegm:sweep` : before the next spec, find the TODOs, specs and rules-file lines this build made stale.

With the driver installed and `driver.chain` on, steps 3 to 5 follow the approval commit on their own; the brainstorm offers to turn the chain on when it sets up the project's workflow.

Add `--leavemealone` to a skill (or set `"mode": "leavemealone"` in `.superegm/config.json`) and the judge panel rules at every decision point instead of you; merging stays yours.

One review loop serves the spec, every plan and every pull request head. Each round, every reviewer on the panel is a goldfish: a fresh, isolated session that sees only the artifact, the standards for its kind and, from round 2, the previous round's findings with the fixes marked. The panel is seated when the review opens (a resumed spec review may narrow it, from the next round, to a proper subset that begins with `design`) and every reviewer runs concurrently. At the cap (` review.rounds`, default 3) the owner rules: one more round, accept, or stop; `proceed`, the owner's word alone, also carries a stalled review or one with unsettled findings past the pause. On a pull request head it names the head you saw, `**Ruling:** proceed <sha7> — <reason>`, and is refused when the head has moved since; a spec or plan review takes the bare `**Ruling:** proceed — <reason>`.

``` php
flowchart LR
  R["Fresh reviewers<br/>read only the artifact"] --> F["Findings<br/>high · medium · low"]
  F -->|none high or medium| X["Converged<br/>sha256 recorded"]
  F -->|fix| N["Fix, mark<br/>each finding"]
  N -->|next round| R
  N -.->|round cap| RU["Your ruling"]
  classDef human fill:#fde68a,stroke:#b45309,color:#1f2937
  class RU human
```

Lows never block. A high or medium finding that is contested or declined by the builder goes to the judge panel (isolated judges on more than one model, converging per question) first, in both modes; a panel that does not converge waits for the owner. On a pull request head the cap ruling is one more round or stop, never accept. `<fid> allowed`, `<fid> finding upheld` on an `owner: <ids>` allowance decision, `proceed`, a head's decision point 5, an amendment and a respec are the owner's alone.

Every external review is ingested as findings: a review on a builder's pull request, and the spec's own pull request (`review ingest --pr`, with the pull request's number), enters the same loop. The owner rules with one `**Ruling:**` comment, from a phone if need be. Below the cap, when only mediums and lows stand, `review status` prints an `acceptable:` line and the owner may accept; the journal then records it as accepted before the cap, and on a pull request head the wave asks it as `decision open --point 5` (accept or revise).

`/superegm:wave` runs a driver loop in your own session. It launches a builder per ready unit (up to `max_in_flight`), watches the pull requests, and dispatches a foreman for every head once CI has concluded. The foreman is a goldfish too: it reviews the head with the panel, posts one review on the pull request, and returns one word.

```
sequenceDiagram
  participant O as Owner
  participant F as Foreman
  participant B as Builder
  participant CI
  participant G as GitHub
  Note over O: the wave loop runs in the owner's session
  O->>B: launch a builder, its issue body as the brief
  B->>G: TDD commits on its own branch, a draft pull request as the builder identity
  G->>CI: pull_request
  CI-->>F: CI concluded, the head is ready
  F->>G: reviews the head, posts the review comment
  Note over F,G: clean, revise, contested, cap-reached, target-moved, error
  alt revise
    O->>B: the next builder round, its prompt carries the review
  else contested or cap-reached
    F->>O: ruling (finding upheld or overruled, one more round or stop)
  else target-moved or error
    F-->>F: reviewed again at the next batch
  else clean
    F->>O: unit awaiting merge
    O->>G: merges by hand
  end
```

Clean means CI green, every definition-of-done item met, no unsettled high or medium finding, test-first order checked and no unruled deviation. The foreman never merges, never approves and never launches a session; `launch` refuses the first wave until the base branch carries the protection from the by-hand steps.

The foreman re-runs every DoD `Run` item on the head itself rather than trusting the pasted output, and checks the test delta: a test removed or weakened is a high finding only the owner can allow. A builder runs on its unit's tier (`builder.tiers` for a difficult or an easy unit, `builder.model` and `builder.effort` for a doable one), loads the plugins of `config.builder.plugins` and the servers of `config.builder.mcp` alone, and records them in `launches/<unit>_r<n>_plugins.json`. The review goldfish run on `reviewers.model` at `reviewers.effort` (`opus` / `xhigh` by default; `SUPEREGM_GOLDFISH_MODEL` and `SUPEREGM_GOLDFISH_EFFORT` override them for a session), each judge on its `judges.members` model and effort, and the foreman's Astra lane at `astra.heads_effort` (`high`); `doctor` prints one `model:` line per role. A running builder with no newer commit of its own for `builder.stall_minutes` is reported stalled, comments or not. The tracking issue carries a live board between `<!-- superegm:board -->` and `<!-- /superegm:board -->`, and `close` closes the tracking issue when the handoff ends with every unit landed.

The fleet layer runs waves while you are away. `/superegm:inbox` lists only what needs you in the current repository's store, and with `--all` across every registered store; `~/.superegm/notify`, if you write it, is told of each new line. `/superegm:driver` installs a timer (`superegm driver install`) that types `wave --leavemealone` for one open handoff (with `driver.chain` true, the plan, review-plan, file or wave phase `superegm next` names, never `integrate`, in the handoff's frozen mode, so a normal-mode approval chains without `--leavemealone`) at a time per store in the environment of `~/.superegm/env`, over the stores `superegm register` listed; keep the machine awake (`caffeinate`). That session runs with `--permission-mode bypassPermissions`, no allow-list and no prompt, under the credential the env file names, so install the driver only on a machine and for repositories you would let a session act on alone. The driver never merges.

| # | Phase | Skill | Gate | 
|---|---|---|---|
| 0 | Brainstorm | `/superegm:brainstorming` (auto-invoked) | the owner's opt-in; a spec ending in `## Units` | 
| 1 | Spec review | `/superegm:review-spec <spec>` | converged or ruled; the approval freezes the spec at a sha256 | 
| 2 | Plan | `/superegm:plan <spec>` | `graph` and`scan` pass | 
| 3 | Plan review | `/superegm:review-plan <spec>` | converged or ruled, per unit | 
| 4 | File | `/superegm:file <spec>` | a dry run the owner confirms; `verify` reads back | 
| 5 | Wave | `/superegm:wave <spec>` | per unit: a clean head, contested findings ruled, no regressions | 
| 6 | Merge | the owner | no builder, foreman or driver merges; the inbox merges only a pull request you name | 
| 7 | Integrate | `/superegm:integrate <spec>` | nothing left to escalate; `--close` gives a handoff up | 

In the plan phase each unit may carry a `Tier:` row (`difficult`, `doable` or `easy`) that picks its builder's model and effort from `builder.tiers`; a unit without one builds as doable.

One skill per phase; nothing chains unless `driver.chain` is true, in which case a tick launches the phase `superegm next` names, except `integrate` (never launched unattended) and a `waiting` line; the owner pushes the approval commit between phases 1 and 5. With `--leavemealone` (or `"mode": "leavemealone"` in the config, which governs a handoff approved after the edit: approval freezes the mode, and a handoff whose approval froze none reads the live `config.mode`) the judge panel rules at every decision point and the owner wakes to merge-ready draft pull requests.

- `/superegm:brainstorming` : turn an idea into a written design that ends in`## Units`
- `/superegm:draft` : draft a spec from a brief when brainstorming was skipped
- `/superegm:review-spec` : the adversarial spec review, run to convergence
- `/superegm:plan` : cut the approved spec into TDD-shaped build units
- `/superegm:review-plan` : review the plan against the spec before anything is filed
- `/superegm:orient` : copy what the repository says about a unit into the store, an extractor that never summarizes
- `/superegm:file` : file the confirmed plan as GitHub issues
- `/superegm:wave` : launch, review and land a wave of units
- `/superegm:inbox` : list what needs the owner across every registered store
- `/superegm:driver` : install, inspect or reset the timer that runs waves unattended, and register a store
- `/superegm:interrupt` : pause a running wave at the next safe point
- `/superegm:clean` : remove what a wave left behind locally
- `/superegm:finishing-a-development-branch` : finish a branch outside a wave, the PR as the owner
- `/superegm:integrate` : review the spec against everything merged and close the handoff
- `/superegm:judges` : run the judge panel over a question file (advisory when typed)
- `/superegm:test-driven-development` : red, green, commit on a filed unit's branch
- `/superegm:systematic-debugging` : find the root cause before fixing
- `/superegm:verification-before-completion` : prove it works before calling it done
- `/superegm:writing-skills` : write and test a skill for this plugin
- `/superegm:using-superegm` : the dispatcher every session reads first
- `/superegm:drift-report` : check the code against the designs after`integrate`
- `/superegm:sweep` : find stale-looking TODOs, specs and rules-file lines, each checked by a fresh agent against the code at`HEAD` and its history
- `/superegm:retro` : turn a build's post-mortem into edits for the next spec, one question at a time

SuperEGM is built on five projects.

- Google's [Elephant-and-Goldfish Model](https://github.com/google/elephant-goldfish-model) (Apache-2.0) gives the orchestration: deep-context elephants draft and zero-context goldfish stress-test. The adversarial gate before any code, the handoff into issues, the waves and the foreman all come from it.
- gsVAM's [EGM Astra fork](https://github.com/gsVAM/elephant-goldfish-model) 0.2.1, built on the upstream, gives the Astra lane and the panel presets SuperEGM inherits.
- Jesse Vincent's [superpowers](https://github.com/obra/superpowers) 7.0.0 (MIT) gives the unit of work: brainstorming, test-driven development, systematic debugging, verification before completion and writing skills.
- chaseai-yt's [claudex-loop](https://github.com/chaseai-yt/claudex-loop) gives the cross-provider lane: it runs GPT-model reviewers and judges headlessly, which SuperEGM uses for Astra reviews and the judge panel.
- [graphify](https://github.com/Graphify-Labs/graphify) by Graphify Labs gives orient its engine: a local, deterministic AST pass over code, a semantic pass over documents, and a knowledge graph with every edge explained, which`orient` projects per unit for builders and reviewers.

SuperEGM aims to unite these workflows under one plugin with cross-provider adversarial review: EGM's gates around superpowers' unit of work, and every review and judge panel able to seat reviewers from more than one model vendor through claudex-loop, so a converged verdict is not one vendor agreeing with itself. When the cross-provider lane is absent the panel degrades to Claude-only judges and says so in the record.

Two Google posts shape SuperEGM's design without vouching for it: the Open Source Blog's [introduction of the Elephant-Goldfish Model plugin](https://opensource.googleblog.com/2026/10/introducing-elephant-goldfish-model-plugin.html), the model SuperEGM forks, and the Developers Blog's [Agent Distraction](https://developers.googleblog.com/agent-distraction/), whose findings on stale bug references motivate the tracks and the sweep.

SuperEGM runs in Claude Code only; there is no Codex host.

SuperEGM has no hosted service and sends no telemetry. Three things leave your machine: writes to GitHub (issues, comments, reviews and labels under your login; branches and draft pull requests under the builder identity), the Astra lane's requests to OpenAI when you turn it on, and whatever Claude Code itself sends to its host. `banned_terms` in `.superegm/config.json` is checked against every body and comment before it is written, and the store stays under `artifacts_dir`, never committed. [docs/privacy.md](https://github.com/gsVAM/SuperEGM/blob/main/docs/privacy.md) has the details.

| Document | Read it when | 
|---|---|
| [Getting started](https://github.com/gsVAM/SuperEGM/blob/main/docs/getting_started.md) | You are installing, setting up a repository, or want the phases and modes in one place | 
| [Claude Code](https://github.com/gsVAM/SuperEGM/blob/main/docs/claude.md) | You want the platform facts: adapters, hooks, isolation, what a builder can and cannot do | 
| [FAQ](https://github.com/gsVAM/SuperEGM/blob/main/docs/faq.md) | You have a question about merging, the builder's GitHub App, leaving it running, or reviews that do not converge | 
| [Privacy](https://github.com/gsVAM/SuperEGM/blob/main/docs/privacy.md) | You need to know what leaves your machine, and to whom | 
| [Releases](https://github.com/gsVAM/SuperEGM/blob/main/docs/releases.md) | You are cutting or verifying a release | 
| [The designs](https://github.com/gsVAM/superegm/tree/main/docs/specs) | You want the full design of any part: every unit and every amendment, as reviewed and approved | 
| [Index](https://github.com/gsVAM/SuperEGM/blob/main/docs/index.md) | You want everything else, including the shared runtime resources | 

The full list of files carrying a notice:

**Licence.** Apache-2.0 (`LICENSE`) for the EGM-derived files and SuperEGM's own, MIT (` LICENSE-MIT`) for the superpowers-derived files. Every file changed from its source carries a notice naming the change, in the source's own form. The Apache files with a notice: `.claude-plugin/agents/change-review.md`, `.claude-plugin/agents/codebase-details.md`, `.claude-plugin/agents/comprehension.md`, `.claude-plugin/agents/design.md`, `.claude-plugin/agents/foreman.md`, `.claude-plugin/agents/readiness.md`, `.claude-plugin/agents/structural.md`, `.claude-plugin/agents/style.md`, `.claude-plugin/agents/zoom-out.md`, `.github/workflows/tests.yml`, `README.md`, `agents/change-review.md`, `agents/codebase-details.md`, `agents/comprehension.md`, `agents/design.md`, `agents/readiness.md`, `agents/structural.md`, `agents/style.md`, `agents/zoom-out.md`, `docs/claude.md`, `docs/faq.md`, `docs/getting_started.md`, `docs/index.md`, `docs/privacy.md`, `docs/releases.md`, `resources/astra_lane.md`, `resources/document_standards/handoff-standard.md`, `resources/review_panels.md`, `scripts/pack_plugin.py`, `scripts/prepare_release.py`, `skills/draft/SKILL.md`, `skills/draft/references/design_doc.md`, `skills/draft/test_scenarios.yaml`, `skills/drift-report/SKILL.md`, `skills/drift-report/test_scenarios.yaml`, `skills/file/SKILL.md`, `skills/judges/references/astra_judge.md`, `skills/plan/SKILL.md`, `skills/plan/references/handoff_config.md`, `skills/plan/references/handoff_plan.md`, `skills/plan/references/issue_template.md`, `skills/plan/scripts/superegm.py`, `skills/plan/scripts/superegm/__init__.py`, `skills/plan/scripts/superegm/apply.py`, `skills/plan/scripts/superegm/approve_spec.py`, `skills/plan/scripts/superegm/body.py`, `skills/plan/scripts/superegm/collect.py`, `skills/plan/scripts/superegm/decide.py`, `skills/plan/scripts/superegm/dry_run.py`, `skills/plan/scripts/superegm/gate.py`, `skills/plan/scripts/superegm/graph.py`, `skills/plan/scripts/superegm/launch.py`, `skills/plan/scripts/superegm/prepare.py`, `skills/plan/scripts/superegm/record_launch.py`, `skills/plan/scripts/superegm/scan.py`, `skills/plan/scripts/superegm/status.py`, `skills/plan/scripts/superegm/verify.py`, `skills/plan/test_scenarios.yaml`, `skills/review-plan/SKILL.md`, `skills/review-plan/test_scenarios.yaml`, `skills/review-spec/SKILL.md`, `skills/review-spec/references/resolve.md`, `skills/review-spec/references/review_loop.md`, `skills/review-spec/test_scenarios.yaml`, `skills/wave/SKILL.md`, `skills/wave/references/foreman_brief.md`, `skills/wave/test_scenarios.yaml`, `tests/integration/test_claude.py`, `tests/unit/conftest.py`, `tests/unit/test_astra_fork.py`, `tests/unit/test_events.py`, `tests/unit/test_file.py`, `tests/unit/test_harnesses.py`, `tests/unit/test_helper.py`, `tests/unit/test_packaging.py`, `tests/unit/test_plan.py`, `tests/unit/test_releases.py`, `tests/unit/test_review.py`, `tests/unit/test_review_plan.py`. The superpowers files with a notice: `hooks/session-start`, `skills/brainstorming/SKILL.md`, `skills/brainstorming/references/conversation-craft.md`, `skills/brainstorming/references/red-flags.md`, `skills/brainstorming/references/triage.md`, `skills/brainstorming/references/visual-companion.md`, `skills/brainstorming/scripts/server.cjs`, `skills/brainstorming/scripts/start-server.sh`, `skills/brainstorming/scripts/stop-server.sh`, `skills/finishing-a-development-branch/SKILL.md`, `skills/plan/references/writing_plans.md`, `skills/systematic-debugging/SKILL.md`, `skills/test-driven-development/SKILL.md`, `skills/using-superegm/SKILL.md`, `skills/using-superegm/references/claude-code-tools.md`, `skills/verification-before-completion/SKILL.md`, `skills/wave/references/builder_orders.md`, `skills/writing-skills/SKILL.md`, `skills/writing-skills/references/skill_discovery_optimization.md`, `tests/unit/test_builders.py`, `tests/unit/test_effects.py`.

Built by its own workflow: every unit of SuperEGM was specified, reviewed, built by a fresh builder, reviewed again and merged by its owner. The documentation index is [docs/index.md](https://github.com/gsVAM/SuperEGM/blob/main/docs/index.md).
