Blog
elephant gold fishelephant goldfish modelelephant-goldfish model plugin

Elephant Goldfish Model: What It Is and How to Use It

The Elephant-Goldfish Model is an open-source Google plugin: one AI session designs, fresh sessions review. What it is, how the loop works, how to start.

Portrait of Luis Chavez-Mattos
Edited by Luis Chavez-Mattos, Director, Product··RSS

For Engineering

Three comic panels: a young woman engineer studies a toy elephant, hands a stack of blank pages to a colleague, and the pages sit beside the elephant with one small red circle.

What is the Elephant-Goldfish Model?

The Elephant-Goldfish Model (EGM) is a way of working with an AI coding agent that splits the job into two kinds of sessions. The "Elephant" is a long-running session with lots of context. It holds your project's design and remembers every decision, but it writes no code. The "Goldfish" is a brand-new session with no memory of the project. It reads only the written specification and looks for gaps and edge cases. Google announced an open-source plugin for this method on October 22, 2026.

TL;DR

  • The model is a metaphor for two roles: a long-memory "elephant" session that designs, and stateless "goldfish" sessions that review.
  • The elephant session is for design only. The AI interviews you, you debate choices, and the decisions get captured. No code is written there.
  • Goldfish sessions work as objective critics because they share none of the designer's blind spots.
  • The stated goal is for the AI to produce the code you wanted the first time after you press Enter.
  • Google's open-source blog says the plugin was originally built for Google's own software engineers and is now public on GitHub at google/elephant-goldfish-model.
  • The idea comes with a slogan from co-author Dave Rensin: "Design is the new code."

Why did Google build it?

The announcement names a specific problem. AI coding tools make developers faster, but they also make "slop," bugs and lost session context arrive faster. The authors put it this way: without structure, you end up "auto-scaling our mistakes" rather than just writing code faster.

Anyone who has used an AI assistant on a long task has seen a version of this. You explain the project, the chat gets long, and the assistant starts forgetting early decisions or contradicting itself. Meanwhile the code piles up faster than you can read it, so you lose track of how the system works.

EGM answers this by moving the human's attention upstream. Instead of reviewing a mountain of generated code, you spend your effort on the design, where mistakes are cheapest to fix. The announcement describes this as aligning "the human need for system comprehension with AI's capacity for execution."

How does the design-then-review loop work?

The loop has two roles, and they stay separate on purpose.

The Elephant (design). This is a context-rich session that lasts for the whole project. According to Google's post, it holds the architectural vision and project memory, and it captures "micro-decisions" as you make them. This is where the AI interviews you and you argue about the merits of your choices.

The Goldfish (review). These are stateless sessions with zero context. You hand one the specification and nothing else. Because it has not been part of the conversation, it cannot fill gaps with assumptions the way the designer might. It reads what is written, and anything unclear shows up as a question or a flaw.

Dave Rensin's longer article on the method, "Elephants, Goldfish, and the New Golden Age of Software Engineering," lays out the first phase of growing the elephant in four steps:

  1. Context loading. Give the session what it needs to know about the project.
  2. The "No Code" rule. The elephant does design, not implementation.
  3. The sycophant challenge. AI assistants tend to agree with you, so you deliberately push the model to disagree and defend its choices.
  4. The first draft technical proposal. The conversation produces a written proposal.

The article's outline shows a second phase called "Teaching the Elephant." The portion of the article I had access to is cut off before the details, so I won't describe it. Read the full piece for that part.

What does the loop look like with a real example?

Here is a hypothetical, written to show the shape of the workflow. It is not taken from Google's materials.

Say you work in HR operations and your team wants an internal tool that tracks equipment requests for new hires: laptops, badges, monitor requests. You are working with an engineer and an AI coding agent.

In the Elephant session, you describe the goal. The AI asks questions. Who approves a request? What happens if a manager cancels after the laptop ships? Can a request be split across two warehouses? You answer, disagree with one suggestion, and the decisions get written down. At the end you have a proposal that says what the tool does and what it does not do. No code exists yet.

In a Goldfish session, you open a fresh chat and paste in only the proposal. You ask it to find gaps. It comes back with things like: the proposal never says what happens to a request when an employee's start date moves, and it does not say who can see equipment costs. Those were obvious to you in the elephant conversation, but they were never written down.

You take those findings back to the elephant, fix the spec, and run another goldfish pass. Only when the reviews come back clean do you tell the agent to build. That is the "correct the first time" payoff the authors are aiming for.

How do I install the Elephant-Goldfish Model plugin?

The plugin lives at github.com/google/elephant-goldfish-model. The pages I had access to did not include the install commands or the list of supported agents, so I won't guess at either. Those details belong in the repository's README, which is the source of truth for setup.

A sensible path:

  1. Open the GitHub repository and read the README top to bottom before installing anything.
  2. Check which AI coding agents and versions the plugin supports.
  3. Follow the repository's install instructions for your agent.
  4. Start a new session for your elephant. Give it your project context and tell it not to write code.
  5. When the design is written down, open a separate new session for each goldfish review.

Step 5 is the part people skip. If you review inside the same chat that produced the design, the reviewer already knows what you meant, and the whole point is lost.

What should I ask a goldfish to do?

The plugin's own prompts may differ, so check the repository. If you want to try the idea by hand first, here is a template of my own for a goldfish session. Paste it into a fresh chat, followed by your spec.

You are reviewing a software specification. You have no other context
about this project and must not assume any. Read only what is written below.

1. List every place where the spec is ambiguous or could be read two ways.
2. List edge cases and failure scenarios the spec does not address.
3. List any requirements that contradict each other.
4. List questions you would need answered before building this.

Do not write code. Do not suggest implementations. Be critical.

SPEC:
[paste your specification here]

Who does this change things for, and what can you do about it?

Developers using AI agents get the most direct benefit. If your sessions drift, or you spend your afternoons untangling generated code, try separating design from building. Start small: one feature, one elephant conversation, one goldfish review.

Managers and team leads can see the method as a review habit. A written spec that survives a cold read is easier to approve than a pull request of unknown size. You can ask for the spec and the goldfish findings before work begins.

Non-developers who work with technical teams (product, operations, finance, HR) are the people the elephant interviews. Your answers become the spec. Be ready to explain edge cases, because the goldfish will find the ones you skipped.

The cost is up-front time. The model asks you to slow down at the start in exchange for fewer surprises later. For a quick one-off script, that trade may not be worth it. For anything others will depend on, it likely is.

Can I use this approach without writing code myself?

The design-first idea works even if you never touch code, because the spec is what matters. If you want to turn a written description into a working internal tool, such as that equipment request tracker, Remy is built around the same principle: you describe what you need in plain English, Remy works it into a spec, builds the full-stack app, tests it, and deploys it to a live URL. The spec stays the source of truth, and you can read and correct it. A goldfish-style review of that spec before you build is a cheap way to catch gaps early.

Frequently Asked Questions

5 questions

What is the elephant goldfish model in one sentence?

It is a workflow for AI-assisted software development where a long-memory "elephant" session designs the system without writing code, and fresh "goldfish" sessions with no context review the specification for gaps and edge cases.

Is the Elephant-Goldfish Model plugin from Google?

Yes. It was announced on the Google Open Source Blog on October 22, 2026, and the code is at github.com/google/elephant-goldfish-model. Google says it was originally developed internally for its software engineers before being released as open source.

Why does the goldfish need to have no memory?

Memory creates blind spots. A reviewer that took part in the design conversation will fill in missing details from what it remembers. A reviewer that sees only the written spec will flag anything the spec does not actually say.

Do I need the plugin to use the idea?

No. You can try the pattern with any AI assistant by keeping design and review in separate sessions and telling the design session not to write code. The plugin is meant to put the method into practice at scale, so check the repository for what it adds.

Does this guarantee correct code on the first try?

No. The stated goal is for the AI to produce the code you wanted the first time, but that is an aim of the method, not a promise. Review the output as you would any other.

How we source, write, and correct our articles. Editorial standards

Related articles

Straight to your inbox.
New pieces as they publish. No noise.