█

AI/TLDR

Buy me a coffee
Buy me a coffee

Elephant-Goldfish Model (EGM)

Draft designs with a deep-context agent, review them with zero-context subagents

Agent Skills & PluginsOpen source
Language
Python
License
Apache-2.0
IN SHORT

What is Elephant-Goldfish Model (EGM)?

Elephant-Goldfish Model (EGM) is Draft designs with a deep-context agent, review them with zero-context subagents. Its README says thousands of Google engineers use it, and it is marked as not an officially supported Google product. It sits in the Agent Skills & Plugins category of the Agents & Automation tools and is open-source, written in Python and licensed Apache-2.0.

Overview

The Elephant-Goldfish Model (EGM) is an open-source plugin from Google, published under Apache-2.0, for designing software with coding agents before any code is written. Its README says thousands of Google engineers use it, and it is marked as not an officially supported Google product. It installs into Antigravity, Claude Code and Codex, with setup notes for Claude Cowork and ChatGPT Work.

The name describes the split. The Elephant is the agent you are working with: it holds your project context, requirements and earlier decisions, explores the problem and drafts the specification. The Goldfish are reviewer subagents started fresh, with only the document and the source material it references and none of the earlier conversation, so they catch the assumptions and blind spots the drafting agent can no longer see. You stay in the loop: you resolve the trade-offs, choose which findings to address and approve the design before asking the agent to implement it.

In practice EGM is a set of skills — brainstorm, draft, resolve, bootstrap, review, review loop and drift report — that can be used in sequence or one at a time. Brainstorming saves the agreed direction to `concepts_brief.md`, drafting turns it into `design_draft.md` section by section, and review runs fresh reviewers across five stages covering the design, its clarity, its fit with the code and its implementation plan. Reviews need a harness that can create fresh subagents; if it cannot, EGM stops the review rather than faking one. The approach comes from an essay by Dave Rensin, which the README links.

What it does

  • Elephant drafting: the agent with full project context explores the problem and writes the design document, pausing after each section for your feedback
  • Goldfish review: fresh subagents that see only the document and its referenced sources, without the drafting conversation, check the design, clarity, fit with the code and implementation plan
  • Seven skills — Brainstorm, Draft, Resolve, Bootstrap, Review, Review loop and Drift report — usable as a full workflow or individually
  • Drift report compares checked-in design documents with the current source code; Bootstrap writes or updates documentation for an existing codebase
  • One plugin for Antigravity, Claude Code and Codex, with setup guidance for Claude Cowork and ChatGPT Work
  • Stops a review when the harness cannot create fresh subagent contexts, instead of reviewing with a contaminated context

Getting started

Install the complete plugin (not individual skill files) so the skills can read the reviewer prompts and document standards, then start a new agent session.

Install in Claude Code

bashbash
claude plugin marketplace add google/elephant-goldfish-model
claude plugin install egm@egm

Or install in Codex or Antigravity

bashbash
# Codex
codex plugin marketplace add google/elephant-goldfish-model
codex plugin add egm@egm

# Antigravity
agy plugin install https://github.com/google/elephant-goldfish-model

Brainstorm a feature that needs design decisions

Discuss requirements and trade-offs with the agent while fresh reviewers challenge the proposal; the agreed direction is saved to concepts_brief.md. In Claude Code the commands take the /egm: prefix; in Codex pick the matching skill from the skill picker.

texttext
/egm:egm-brainstorm Add webhook delivery to this project.

Draft the specification

The agent turns the brief into design_draft.md, pausing after each section for your feedback in chat.

texttext
/egm:egm-draft

Review the draft with fresh subagents

Use the draft path the agent returned. Choose which findings to address, approve the design, then ask your coding agent to implement it.

texttext
/egm:egm-review design_draft.md

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Designing a feature with real trade-offs — retries, idempotency, data migrations — before letting an agent write the code
  • Getting an unbiased second read of a design document from reviewers that never saw the conversation that produced it
  • Writing documentation for an existing codebase and later checking whether the code has drifted from it
  • Standardising how a team turns ideas into approved specs across Claude Code, Codex and Antigravity

How Elephant-Goldfish Model (EGM) compares

Elephant-Goldfish Model (EGM) alongside other open-source agent skills & plugins tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Skills for Real Engineers★ 336kMatt Pocock's everyday agent skills for coding agents, covering alignment grilling, planning, code review and research — small, composable and meant to be edited.
Superpowers★ 331kA composable skills plugin that installs a spec-first, TDD, subagent-driven development methodology into Claude Code, Codex, Cursor, Gemini CLI and other coding harnesses.
ECC★ 313kAn installable plugin that adds 68 agents, 286 skills, hooks, rules, memory and an agent-config security scanner to Claude Code, Codex and other coding harnesses.
Karpathy Coding Guidelines★ 237kA Claude Code plugin and CLAUDE.md rule set built from Andrej Karpathy's observations on LLM coding pitfalls: think before coding, keep it simple, make surgical changes, and work to verifiable success criteria.
Ponytail★ 202kA skill and plugin that makes a coding agent take the laziest correct route — a seven-rung ladder from "does this need to exist?" to "the minimum that works" — while keeping validation, security and accessibility off the chopping block.
Caveman★ 124kA skill plus local proxy that shortens an AI coding agent's prose while leaving code, commands and paths untouched — the rule file cuts what the agent writes, the proxy compresses what it reads.
Taste Skill★ 124kA collection of portable Agent Skills for frontend work: design direction, layout, typography, motion and density dials, plus image-generation skills that produce reference boards for a coding agent to implement.
Elephant-Goldfish Model (EGM)★ 24.2kDraft designs with a deep-context agent, review them with zero-context subagents