ChengRang

EGM (Elephant-Goldfish Model)

AI Coding Open Source

Coding agent plugin Google open-sourced on 2026/10/22 under Apache 2.0: makes the agent write a spec before code, then has Goldfish subagents with no conversation history review it in five stages; ships 7 skills, 9 reviewer personas, 6 brainstorm lenses and drift reports, used by thousands of Google engineers; no model weights, spends host quota

GoogleSpec-FirstCode ReviewSubagentsClaude CodeCodex
Visit EGM (Elephant-Goldfish Model)

Disclaimer: Review content represents our editorial team's views and experience, not commercial recommendation or investment advice. Product info and pricing may change; refer to official sources.

Overview

EGM is a coding agent plugin Google open-sourced on 22 October 2026, short for Elephant-Goldfish Model and licensed Apache 2.0. It trains no model and ships no weights. What it provides is a workflow: make the agent write a specification before it writes code, then send a batch of subagents with no conversation history to attack that spec.

The name comes from its two roles. The elephant is a long session holding project context, interviewing requirements, arguing trade-offs and drafting the design section by section, writing no code along the way. The goldfish is a fresh session spawned for each review that reads only the draft and the files it references, carrying none of the main session's history or assumptions. Because the goldfish does not know what the earlier conversation quietly settled, it asks the questions the main session forgot to ask.

Three commands carry the loop. egm-brainstorm runs six parallel lenses covering YAGNI, token cost, UX, migration, observability and tech debt, producing a concepts brief. egm-draft turns the brief into a design document under docs/designs. egm-review launches the goldfish review. A fourth command, egm-drift-report, compares code against the spec over time. The plugin ships 7 skills, 9 reviewer personas and 6 brainstorm lenses, and runs on hosts that can spawn subagents, including Antigravity, Claude Code 2.1.271 and later, Claude Cowork, Codex and ChatGPT.

Key Features

Use Cases

Pros

Pricing

The plugin is free and open source under Apache 2.0. It ships no model weights; drafting and reviewing spend the host agent's model quota, billed at that host's subscription or API rates.

Summary

EGM suits teams already using Claude Code, Codex or another subagent-capable coding agent who have paid the price of rework. Its value lies not in generating code but in surfacing wrong assumptions while they are still in a Markdown file. The cost is token usage, since a full review runs many subagent rounds, so it fits medium and large changes best.

Version History

Category
AI Coding
Pricing
Open Source
Tags
Google · Spec-First · Code Review
Website

Related Tools