---
title: "How to Install Google's Elephant-Goldfish Model in Claude Code"
url: "https://goremy.ai/blog/articles/elephant-goldfish-model-claude-code-install"
author: Luis Chavez-Mattos
editor: Luis Chavez-Mattos
editor_title: Director, Product
published: "2026-11-22T23:00:22.717Z"
updated: "2026-11-22T23:00:22.717Z"
topic: AI Coding Tools
description: "Install Google's open-source Elephant-Goldfish Model plugin in Claude Code and run its design-first flow: brainstorm, concept brief, draft, goldfish review."
---

# How to Install Google's Elephant-Goldfish Model in Claude Code

> Install Google's open-source Elephant-Goldfish Model plugin in Claude Code and run its design-first flow: brainstorm, concept brief, draft, goldfish review.

Edited by Luis Chavez-Mattos, Director, Product · Published 2026-11-22

## What is the Elephant-Goldfish Model?

The Elephant-Goldfish Model (EGM) is an open-source plugin from Google that makes an AI coding assistant write a design before it writes code. You describe a feature, the assistant discusses it with you, and the plan gets saved to a file. Fresh AI reviewers with no memory of your conversation then challenge that plan. Only after you approve the design does the agent build. It installs into Claude Code from the plugin marketplace.

## TL;DR

- EGM is an **open-source plugin from Google** that forces a design step before any code gets written.
- The name comes from an essay by Dave Rensin, a distinguished engineer at Google: the **elephant is the session that remembers everything**, and the **goldfish is a fresh session that knows only what you show it**.
- Installation takes **two commands in Claude Code** (add the marketplace, install the plugin), then a restart of your session.
- The workflow runs in order: **brainstorm, concept brief, design draft, goldfish review, approval, build**.
- In one public demo, the goldfish reviewers caught a **calculation bug before any code was written**, a divisor error that would have thrown every result off by 100 times.
- It is not magic. **You still make the decisions**, and the plugin mostly makes sure you make them earlier.

## Where does the Elephant-Goldfish idea come from?

The plugin grows out of an essay by Dave Rensin, a distinguished engineer at Google, written in April 2026. He started with a small tool he built with AI help the previous summer. In the essay, he says more than 100,000 Googlers ended up using it. That is his account, and it is the reason the essay got attention: a tool built quickly with AI spread far beyond its author.

The problem he describes will sound familiar if you have used AI to build anything. AI helps you write code fast. If you are careless, it helps you make mistakes just as fast. A quick prototype that grows into something many people depend on needs more than quick prototyping.

The two animals explain the fix:

- **The elephant** is the AI session that holds all your context. It never forgets. It has seen every decision, every dead end, every preference you mentioned.
- **The goldfish** is a brand-new AI session with zero memory. It knows only what you put in front of it.

The elephant is great at building but biased by everything it has absorbed. The goldfish has no such baggage. If a stranger cannot understand your design from the document alone, the goldfish will tell you.

## What do you need before you install it?

You need a coding agent that supports plugins. The walkthrough that prompted this article used Claude Code. The same creator noted that other assistants work too, including Codex, but the supported list is not long. He did not think it works with OpenClaw or the Hermes agent. Check the plugin's own page for the current list before you assume yours is covered.

You also need:

- A working Claude Code install, kept up to date.
- An API key or subscription already set up for Claude Code.
- A project folder with real code in it. The goldfish reviewers read your code, so a populated project gives them something to catch.

The demo used a smaller, cheaper model to save money. That works for trying the flow. Design review is a place where a stronger model may pay off, so test both if cost is not a concern.

## How do you install EGM in Claude Code?

The steps are short. Use the exact command text from the EGM project's page rather than retyping it from memory, because I can't verify the marketplace and plugin names here.

1. **Open Claude Code** in a terminal.
2. **Add the EGM marketplace.** Claude Code's plugin system uses a `/plugin marketplace add` command, and you pass it the marketplace name from the EGM instructions. In the demo, Claude Code already knew where to find it, and it confirmed the marketplace had been added.
3. **Install the plugin** with the install command from the same instructions (this uses `/plugin install`).
4. **Close any existing session.** Plugins load at startup, so an old session will not see EGM.
5. **Start a new session** and type `EGM`. If the plugin loaded, its commands show up as active. From there you can brainstorm, draft, review, and more.

If nothing appears, the usual cause is a session that was open during installation. Quit completely and relaunch.

## How does the EGM workflow run?

The documentation says the first step is always brainstorm. After that the stages follow a fixed order:

| Stage | What happens | What you get |
|---|---|---|
| Brainstorm | You describe a feature and the agent discusses it with you | An agreed direction |
| Concept brief | Fresh reviewers challenge the idea; the result is saved | A concept brief file |
| Design draft | The agent drafts a design document from the brief | A design draft in Markdown |
| Goldfish review | Reviewers read the document in five rounds | Report files, not chat messages |
| Approval | A teammate approves the design as a pull request | A signed-off design |
| Build | The coding agent builds the feature, following the document | Code and tests |

The five review rounds check four things: whether the design is simple, whether a stranger could understand it, what mistakes it contains, and whether it has everything needed to start building. Findings go into report files so nothing gets lost in a long chat. You decide which findings matter.

## What does a real run look like?

The creator of the walkthrough tested EGM on a full-stack app he already had running in Docker: a retirement calculator called Atlas of Enough, which estimates how much money you need to retire in one of 20 countries. The calculator showed today's prices. He wanted it to account for rising prices until retirement, so he asked for an inflation feature.

Here is how it went:

1. **Brainstorm.** He pasted a short feature description. The agent read the code and noticed the calculator had no sense of time, so it could not handle inflation yet. It then asked three design questions. He answered them and the agent reduced his idea to one sentence, listing what was still open.
2. **Review of the idea.** The goldfish reviewers read his code and came back with six questions. Question three caught that the calculation divided by four instead of 0.04. Fixing that changes every result by 100 times. He had never mentioned the bug.
3. **Concept brief.** The agent wrote a brief covering goals, scope, out-of-scope items, key architectural decisions and staging.
4. **Draft.** He ran the EGM draft step and got a design document with all the expected sections.
5. **Build.** After a few more architecture questions, he told the agent to build the backend and frontend. The result: the design saved in the project's docs folder, 22 tests passing, and the live app returning corrected numbers, with a new current-age input.

Two details matter. The bug was found before any code was written. And the design document lives in your own project, so it stays available to your team later.

## What should you type to get a good brainstorm?

Describe the current behavior, the change you want, and why. Keep it to a few sentences and let the agent ask the rest. A template:

```
Feature: [name]
Right now: [what the app does today]
I want: [what should change, in plain words]
Why it matters: [who benefits or what breaks without it]
Don't touch: [anything off limits]
```

The inflation example followed this shape: the calculator gives today's prices, and the user wants it to account for rising prices over the years until retirement.

If the agent keeps asking permission for small things, you can tell it to proceed on routine questions. Save your attention for the design questions, because those are the decisions that shape the feature.

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

**Non-developers who build with AI.** If you are a marketer or analyst building internal tools with a coding assistant, the biggest risk is a tool that looks right and calculates wrong. A review step by a reader with no stake in your assumptions is worth more than a faster build. Try EGM on something with math in it.

**Managers of small technical teams.** The design document and review reports give you something to read and approve without reading code. Approval as a pull request means a human signs off before the agent builds.

**Developers.** The value is the fresh-eyes review. A long session accumulates assumptions, and the goldfish is the cheapest way to test them.

**Practical advice for all three:**

- Start with a feature on an app you already understand, so you can judge the questions the reviewers raise.
- Read the review reports yourself. The plugin surfaces findings, but you decide which ones matter.
- Keep the design files in version control with the code.
- Expect it to be slower than "just build it." That is the point.

## Can you turn a design-first habit into a small tool of your own?

If your team ends up with a pile of concept briefs, design drafts and review findings, you will want somewhere to track which are approved and which are still open. Instead of a shared spreadsheet, you could describe a simple tracker to [Remy](https://goremy.ai), which builds and deploys full-stack business apps from a plain-English description. A feature-request form, a status board for designs awaiting approval, and a log of review findings with owners would all be reasonable first versions. It sits alongside a coding agent like Claude Code rather than replacing it.

## Frequently Asked Questions

### Is the Elephant-Goldfish Model free?

The plugin is open source and comes from Google. You still pay for the AI model usage behind your coding agent, so the review rounds and builds cost tokens or use your subscription.

### Does EGM only work with Claude Code?

No. Codex and a few other assistants are supported, but the list is short. In the walkthrough, the creator did not expect it to work with OpenClaw or the Hermes agent. Check the project page for current support.

### Why does the goldfish need to have no memory?

A session that has seen all your context shares your assumptions. A fresh session sees only the document and the code, so it catches gaps and unclear passages the way a new teammate would. That is how it found the divisor bug in the demo.

### Does EGM replace human code review?

No. It adds an AI review before coding starts, and its workflow still includes a teammate approving the design as a pull request. You decide which findings matter.
