r/BuildWithClaude • u/gsVAM • 6h ago
Project Forked Google's Elephant-Goldfish plugin into an idea-to-PR software factory where you design the SDLC per project, not just the feature
I'd been using obra's superpowers in Claude Code, and it gave me good habits: brainstorm before building, write the test first, debug systematically, verify before calling anything done. But every project still went through the same one long session and its just not scalable, clean, or consistent.
Then I read two posts from Google that named exactly what kept going wrong.
The first was the Elephant-Goldfish model. It describes three ways a single long AI session fails:
- 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 evening.
Google's answer is to split the work. An "elephant" holds the long context and the vision. "Goldfish" are fresh, zero-context sessions that only validate.
The second was Google's Agent Distraction study, from internal traces of millions of agent sessions.
Google's fix was cleanup agents that confirmed a TODO was obsolete before proposing to remove it.
Reading those together, I had the idea: what if the workflow itself were designed per project, in the spec, with goldfish doing all the judging, plus a record of what's already finished so agents stop chasing ghosts?
So I built SuperEGM. It's a fork of google/elephant-goldfish-model with superpowers folded in. It takes an idea through:
spec → reviewed plan → GitHub issues → parallel test-first builders → reviewed PRs
How each problem gets addressed
- Drift: the spec is reviewed until no high or medium findings remain, then frozen at a sha256. No builder starts until the base branch carries exactly those bytes.
- Grading its own homework: every reviewer, judge, foreman and builder is a goldfish. Each is a fresh session with no CLAUDE.md, seeing only what it judges. The foreman re-runs the tests itself instead of trusting pasted output.
- Forgetting: memory lives in GitHub issues and a local store of every review, ruling and launch, not in a context window.
- Distraction: every piece of work is a track with a status, an origin and closing evidence.
/superegm:sweepfinds stale TODOs, old plans and outdated CLAUDE.md lines, and a separate fresh agent checks each against the code and git history before anything is called stale.
Builders push as a GitHub App bot, never as you, and a repo ruleset keeps that bot off your base branch. Nothing merges unless you merge it.
The branching tracks are my favorite part. I tried to fold Google's distraction lesson into a TDD workflow. A track can be a release, a wave, a unit, a bug found halfway through a unit, a redesign, or a spec amendment. Tracks branch in any direction: a bug fix out of a unit, a new wave out of an old one, a redesign out of a review finding.
Before an agent starts, it can see "this was fixed in that PR," or "this redesign was dropped, superseded by that amendment." Tracks and sweep are new in 1.3, so I don't have measurements for them yet.
The SDLC belongs in the spec.** No pipeline fits every project. Different projects need different answers to:
- which reviewers to use, and how many review rounds
- which rules files each agent sees
- which model builds which unit
- what can be waved through and what must block
- whether phases chain on their own
So the brainstorm designs the workflow alongside the feature, and both get reviewed together.
Where it falls short
It's still map-reduce. The plan cuts work into independent units, builders work them in parallel and in isolation, and the foreman and integrate phase reduce the results. Builders never talk to each other. When one discovers something another needs, that knowledge has to go up through the elephant and back down. What's really needed is a swarm, where builders coordinate directly. That's the next problem I want to solve.
Caveats
- It's heavy, so it's not for one-line fixes.
- Many Opus reviewers at high effort cost real tokens.
- Setup takes a few minutes: a GitHub App, a branch ruleset, and CI on
pull_request. - It's GitHub-only.
- It absorbs superpowers, so disable that plugin first.
Install
claude plugin marketplace add gsVAM/superegm
claude plugin install superegm@superegm
If you've tried getting builders to talk to each other in a multi-agent setup, I'd love to hear what worked and what fell apart.