AI Compass / Knowledge cards
Checking the plan before building
elephant and goldfish
When you plan with an AI agent, the plan takes shape in the conversation. Afterwards, the agent knows all the reasoning and considers the plan correct. The Elephant-Goldfish-Model (EGM) therefore separates two roles. The elephant knows the project and the history and writes the specification with you, the description of what will be built and how. The goldfish are subagents without the chat history. They only see the document and the code it refers to, and look for missing assumptions, unclear requirements and risks. You make the decisions. EGM is an open plugin from Google for Claude Code, Codex and Antigravity.
What it is for
The difficult cases are settled before anything is built. A mistake in the plan costs less than a mistake in finished code.
Steps
- Only use it for features that need design decisions. For a small, clear fix, the README advises the normal workflow.
- Install according to the README:
claude plugin marketplace add google/elephant-goldfish-model, thenclaude plugin install egm@egmand start a new session. The commands have the prefix/egm:. - Check the
CLAUDE.md. In the video, after the installation it said there that subagents could not start subagents of their own. According to the Claude Code docs, by default they can, up to three levels deep, and the goldfish review needs this. If the line is wrong, you correct it. - For existing code, optionally run
/egm:egm-bootstrap. It writes a description for each code folder. According to the video, it asks first if there are more than 15 folders. Because agents don’t read such README files on their own, the authors placed aCLAUDE.mdwith a pointer next to each one. /egm:egm-brainstormwith the feature you want: discuss requirements and trade-offs, fresh reviewers challenge the proposal. The agreed direction ends up inconcepts_brief.md./egm:egm-draftturns this intodesign_draft.md, section by section, with a pause for your feedback after each part. Then/egm:egm-review design_draft.md: fresh reviewers check the draft in five stages, its clarity, its fit with the code and the implementation plan. You choose which findings to address.- Only have it built after your approval, ideally in a new session. Later,
/egm:egm-drift-reportcompares the documents with the current code and shows where they diverge.
What the example shows
AI LABS demonstrated the process on a shop app of their own. The bootstrap wrote 28 descriptions for the folders. The drift report after the build found a real bug: sellers could delete products that had already been sold, although it should only have been possible to hide them.
Limits
- According to the README, a review does not replace tests or human judgment. If your agent cannot start fresh subagents, EGM aborts the review.
- The goldfish deliver many comments. You decide which of them count. That is intentional.
- Nested subagents use many tokens. The video gives no figures.
- According to the README, “Thousands of Google engineers use EGM”. That is the project’s own statement. That it is more thorough than other methods is claimed by AI LABS without a comparison; a single demo project is shown.
- According to the README, EGM is “not an officially supported Google product”.
- AI LABS offers a “simpler version” in its own community. The card does not need it.
Links
- Separate building and checking: the same principle after the build. This card moves the check before the build.
- Project start with rules and plan files: how the plan comes about. The goldfish review it afterwards.
- “Done” only with evidence: The drift report shows deviations. Whether the feature works is only shown by a check command.
- Keeping context clean: building in a new session, with the plan as the handoff file.
Sources
- AI LABS: EGM: Google’s New Way To Use Claude Code Is Insane, 25 October 2026, 1:37–4:19, 5:56–6:59, 7:33–9:10, 13:28–14:33. Sponsored by Hedra, plus self-promotion for AI Labs Pro
- Google: elephant-goldfish-model, README (Apache 2.0 license), retrieved 30 October 2026
- Claude Code docs: Subagents (subagents that start subagents of their own), retrieved 30 October 2026
Status
Checked 30 October 2026 · Maturity new (plugin available since 13 September 2026; effect only shown in a demo by the authors)
You can try this with your team in the AI Lab. See the AI Lab