Skip to content

AI Compass / Knowledge cards

Checking the plan before building

elephant and goldfish

Checked Automation Prompting

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

  1. Only use it for features that need design decisions. For a small, clear fix, the README advises the normal workflow.
  2. Install according to the README: claude plugin marketplace add google/elephant-goldfish-model, then claude plugin install egm@egm and start a new session. The commands have the prefix /egm:.
  3. 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.
  4. 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 a CLAUDE.md with a pointer next to each one.
  5. /egm:egm-brainstorm with the feature you want: discuss requirements and trade-offs, fresh reviewers challenge the proposal. The agreed direction ends up in concepts_brief.md.
  6. /egm:egm-draft turns this into design_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.
  7. Only have it built after your approval, ideally in a new session. Later, /egm:egm-drift-report compares 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

Sources

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