czay.dev
Writing

Google Elephant-Goldfish Model (EGM): Spec-Driven Design & Zero-Context Agent Review Guide

In long coding sessions, AI agents agree with your assumptions and miss design flaws. Install commands, the 5-stage Goldfish review protocol, and drift-report usage for Google's 22.8K-star open-source EGM plugin.

Furkan ÖzayNovember 25, 2026 · 2 min read

During long chat sessions, AI coding assistants absorb your conversational bias. They stop questioning unstated assumptions and quietly ratify flawed architecture.

Released by Google under Apache 2.0, Elephant-Goldfish Model (EGM) (22,800+ GitHub stars, egm.dev) splits spec-driven engineering into two distinct context roles: Design with an elephant. Review with a goldfish.

1. Elephant vs. Goldfish

  • Elephant (Full Context): Keeps your project history, requirements, and earlier decisions to brainstorm and draft concepts_brief.md and design_draft.md.
  • Goldfish (Zero Chat History): Runs in fresh subagent contexts that only read the design document and referenced source files. If the host agent cannot spawn isolated subagents, EGM halts the review rather than faking it.
  • Anti-Sycophancy Rule: Reviewer prompts explicitly ban praise words ("brilliant", "great", "smart", "perfect", "excellent") to enforce adversarial technical scrutiny.

2. Installation

Antigravity CLI

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

Claude Code

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

Codex CLI

Bash
codex plugin marketplace add google/elephant-goldfish-model
codex plugin add egm@egm

3. 60-Second Review & Drift Report

text
# Run the 5-stage Goldfish review on an existing design doc or PR plan:
/egm:egm-review docs/designs/webhooks.md
 
# Compare checked-in design docs against live source code:
/egm:egm-drift-report docs/designs/

4. The 5 Review Stages & 8 Skills

/egm:egm-review runs five sequential stages: Initial Zoom Out Review, Comprehension Review (document read alone), Design Critique, Intermediate Zoom Out Review, and Implementation Readiness.

The plugin ships with 8 modular skills: egm-brainstorm, egm-draft, egm-review, egm-resolve, egm-bootstrap, egm-lite, egm-review-loop, and egm-drift-report.

Interactive Roadmap & Tool

Come build with us.

Help when you're stuck, a second pair of eyes on your code, new tools before anyone else.

Join the LabFree · One click and you're in