{"slug": "what-is-the-elephant-goldfish-model-for-ai-coding", "title": "What Is the Elephant-Goldfish Model for AI Coding?", "summary": "Google distinguished engineer Dave Rensen published an April 2026 essay describing the elephant-goldfish model, an open source workflow that separates design from implementation in AI coding assistants and reportedly spread to more than 100,000 Googlers after he built it the previous summer. The workflow runs as a plugin inside agents such as Claude Code: an \"elephant\" session retains full feature context and produces a concept brief and design document, then fresh zero-memory \"goldfish\" reviewer sessions critique the document cold across multiple rounds before any code is written. In a demo, the review step caught a calculation that divided by 4 instead of 0.04, a mistake that would have thrown every result off by 100x.", "body_md": "# What Is the Elephant-Goldfish Model for AI Coding?\n\nGoogle's elephant-goldfish method forces AI to design before coding, catching bugs with fresh-context review before anything gets built.\n\n## What is the elephant-goldfish model in AI coding?\n\nThe elephant-goldfish model (EGM) is an open source workflow for AI coding assistants that separates design from implementation. An “elephant” session holds the full context of a feature idea and never forgets it, while fresh “goldfish” sessions with zero memory review the resulting design document cold, catching gaps a context-heavy session would miss. Only after that review passes does an agent write any code. The idea comes from an essay by Dave Rensen, a distinguished engineer at Google, published in April 2026, describing a tool he built the previous summer that reportedly spread to more than 100,000 Googlers.\n\n## TL;DR\n\n- **EGM is a structured workflow** , not a new model: it wraps existing AI coding agents like Claude Code in a process of brainstorm, design, review, and only then build.\n- **The elephant and goldfish are just two kinds of AI sessions** : one keeps all the context from your conversation, the other starts fresh and only knows what’s written in the design document.\n- **Fresh-context review is the core trick** : because the goldfish session never saw the original brainstorm, it judges the design document purely on whether it’s clear, complete, and correct, the way a new engineer joining a project would.\n- **The process produces real artifacts** : a concept brief and a design document get saved as files in your project, not buried in chat history, so decisions are traceable and reviewable later.\n- **It caught a real bug before any code existed** : in a demo, the review step flagged a calculation that divided by 4 instead of 0.04, a mistake that would have thrown every result off by 100x.\n- **Coding happens last, not first** : the agent only starts writing implementation code after the design document has been drafted, reviewed across multiple rounds, and effectively approved.\n- **It’s plugin-based and works with select coding agents** , with Claude Code confirmed as supported and a narrower list of others, rather than being universally compatible with every AI coding tool.\n\n**›** Build a loan-approval app for 2,000 bankers.\n\n*already included:*✓ SOC 2✓ role-based access✓ audit log✓ self-hosted\n\n## How does the elephant-goldfish workflow actually work?\n\nEGM runs as a plugin inside an AI coding agent’s session. The process has a fixed sequence of steps rather than letting the agent jump straight to writing code.\n\nFirst comes brainstorming. You describe a feature in plain language and the agent (the “elephant,” because it retains everything from this conversation) discusses it with you, asking clarifying questions about scope and edge cases. That back-and-forth gets distilled into a concept brief, a file saved in your project that captures the agreed direction, what’s in scope, what’s out of scope, and the key decisions made along the way.\n\nFrom that brief, the agent drafts a design document. This is where the workflow stops looking like a chatbot and starts looking like a real engineering process: the document lays out architecture, goals, and staging, the kind of writeup a team would produce before anyone touches an IDE.\n\nThen comes the goldfish step. Multiple reviewer sessions, each with no memory of the original brainstorm, read the design document cold across several rounds. They check whether the document is simple enough, whether a stranger could understand it, what mistakes or gaps it has, and whether it contains everything needed to actually start building. Their findings go into report files rather than disappearing into chat history, so nothing gets lost and you can decide which findings are worth acting on.\n\nOnly after a design is effectively approved, conceptually treated like a pull request a teammate signs off on, does the coding agent begin writing the actual implementation.\n\n## Why does using a fresh AI session for review matter?\n\nThe core insight behind EGM is that an AI session with full context can become too invested in its own plan. If the same session that brainstormed a feature also reviews its own design, it tends to rationalize its earlier choices rather than scrutinize them. A goldfish session sidesteps this. It has no stake in the original conversation, no memory of why a decision was made, and only the written document to judge. That constraint forces the document itself to be complete and self-explanatory, because the reviewer can’t fill gaps with assumed context.\n\nThis mirrors a known pattern in human software teams: a design document that only makes sense to the person who wrote it is a bad design document. Fresh-eyes review exists precisely to surface the parts that got skipped because they felt “obvious” to the author. EGM applies the same discipline to an AI workflow, except the fresh eyes are another AI session instead of a human colleague.\n\n## What problem is EGM actually trying to solve?\n\nAI coding agents are fast at producing working-looking code, but speed cuts both ways. A mistake introduced early, like a wrong unit conversion or a misunderstood requirement, gets built on top of just as fast as a correct decision would. By the time a bug surfaces in testing, there may already be a large amount of code depending on the flawed assumption.\n\n### Built like a system. Not vibe-coded.\n\nRemy manages the project — every layer architected, not stitched together at the last second.\n\nEGM’s bet is that most costly bugs are actually design bugs, not implementation bugs, and that catching them before any code exists is far cheaper than catching them after. In a demonstrated example, a retirement calculator app had a bug where a calculation divided a value by 4 instead of by 0.04, a decimal point error that silently inflated every result by a factor of 100. The goldfish review step flagged this as one of several open questions before a single line of new feature code was written, even though the person running the demo never mentioned the bug existed.\n\n## What gets produced besides code?\n\nTwo durable artifacts come out of the process: the concept brief and the design document. Both are saved as files inside the project repository rather than living only in a chat transcript. The design document in particular reads like a standard software engineering document, with sections covering goals, out-of-scope items, architectural decisions, and staging notes.\n\nThis matters for teams because chat-based AI interactions are usually ephemeral and hard to audit later. A saved design document can be reviewed, revised, versioned alongside the code, and referenced by anyone joining the project afterward, which is closer to how design decisions are normally documented in engineering organizations.\n\n## Is the elephant-goldfish model worth trying?\n\nFor anyone already using an AI coding agent for anything beyond trivial scripts, the appeal is catching expensive mistakes before they’re expensive. The workflow adds upfront time (brainstorming, drafting, multiple review rounds) in exchange for reducing the risk of building a feature on a flawed foundation. Since the design document and concept brief are plain files saved in the project, the overhead is inspectable rather than hidden in extra chat turns.\n\nThe tradeoff is that it’s slower than just asking an agent to “build this feature” directly, and it still requires the human to review open questions and approve decisions rather than rubber-stamping the AI’s conclusions. EGM is a process that structures a conversation. It doesn’t replace judgment, it front-loads it into the design phase instead of discovering the gaps during debugging.\n\n## Frequently Asked Questions\n\n### What does “elephant” and “goldfish” refer to in EGM?\n\nThe elephant is the AI session that retains the full context of your brainstorming conversation. The goldfish is a separate, fresh AI session with no memory of that conversation, used specifically to review the resulting design document without any prior bias.\n\n### Who created the elephant-goldfish model?\n\nThe underlying idea comes from an essay by Dave Rensen, a distinguished engineer at Google, published in April 2026, describing a tool he originally built the previous summer.\n\n### Which AI coding tools work with EGM?\n\nIt’s confirmed to work with [Claude Code as a plugin installed through a marketplace command](https://goremy.ai/blog/articles/google-egm-elephant-goldfish-model-plugin). Support for other agents is more limited; broader coding assistants may not yet be officially compatible.\n\n### Does EGM replace writing code with AI, or just delay it?\n\nIt delays it. The workflow still ends with an AI agent writing the implementation, but only after a concept brief and design document have been drafted and reviewed across multiple rounds by fresh-context sessions.\n\n### What kind of bugs does the review step catch?\n\nIt’s aimed at catching design-level and logic errors before implementation, such as incorrect formulas or unit conversions, rather than catching syntax errors or runtime crashes, which typically show up during testing regardless of the workflow used.", "url": "https://wpnews.pro/news/what-is-the-elephant-goldfish-model-for-ai-coding", "canonical_source": "https://www.mindstudio.ai/blog/egm-design-first-coding-workflow-explained/", "published_at": "2026-11-24 00:00:00+00:00", "updated_at": "2026-11-24 09:45:39.832927+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "developer-tools", "generative-ai"], "entities": ["Google", "Dave Rensen", "elephant-goldfish model", "Claude Code"], "also_reported_by": [], "takeaway": "Run a zero-context reviewer session over a saved design document before coding: in Rensen's demo it caught a divide-by-4-instead-of-0.04 error that would have skewed every result 100x.", "recommendation": {"advice": "Save the concept brief and design document as project files, then have fresh-context reviewer sessions critique the design across multiple rounds before letting the coding agent write any implementation code.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/what-is-the-elephant-goldfish-model-for-ai-coding", "markdown": "https://wpnews.pro/news/what-is-the-elephant-goldfish-model-for-ai-coding.md", "text": "https://wpnews.pro/news/what-is-the-elephant-goldfish-model-for-ai-coding.txt", "jsonld": "https://wpnews.pro/news/what-is-the-elephant-goldfish-model-for-ai-coding.jsonld"}}