Elephant-Goldfish Spec-Driven Development (SDD-EGM)
Disclaimer: This is not an officially supported Google product. This project is an experimental prototype provided on an "as-is" basis without dedicated staffing or support.
SDD-EGM is a spec-driven development plugin for AI coding agents, available for Google Antigravity, Claude Code, and Codex. It is built for Forward Deployed Engineers (FDEs), solo engineers, and small teams shipping 0-to-1 software and AI projects. When you are starting from a rough problem or empty repo—without an existing platform architecture, test harness, or a bench of human reviewers—SDD-EGM takes your project from initial scoping to tested, reviewed code while keeping design decisions, tests, and implementation separated so a single chat session never grades its own work.
Why SDD-EGM?
AI coding agents optimize heavily for completing the goal in front of them. When you give a single session one broad goal—"build this feature"—it will often resolve ambiguous requirements with silent assumptions, take risky workarounds to get past blockers, rationalize its own shortcuts when asked to self-review, or bend tests to match whatever it happened to build.
SDD-EGM counters this by breaking development into a sequence of narrow goals—and pairing every authoring step with separate AI conversations whose sole goal is to find fault in what is being built:
- 🐘 The elephant (surface decisions, don't rush to code): Your main conversation's goal is to interview you one question at a time, expose trade-offs upfront, and write agreed decisions into files on disk (
architecture_brief.md and each subsystem's design.md) before any code exists.
- 🐟 The goldfish (goal: find fault, not ship): Isolated critic subagents start in fresh conversations with only the written documents or code—never the drafting chat—and are tasked strictly with hunting down hidden assumptions, dangerous workarounds, security gaps, and weak tests.
- 🔴🟢 Red, then green (separate the test author from the code author): One agent writes failing tests from the approved requirements, and test-auditor goldfish verify those tests would catch broken code. Once you approve, the tests are locked against edits and a separate coding agent must make the implementation pass them—after which code-auditor goldfish inspect the implementation to make sure the coder didn't take shortcuts just to satisfy the tests (catching hardcoded returns, hollow stubs, ignored inputs, swallowed errors, or security gaps).

Design Philosophy
Dave Rensin's original Elephant & Goldfish essay highlighted the value of using independent, short-session auditors in separate conversations (the Goldfish) to stress-test ideas and overcome the sycophancy of a long-running chat.
The view that motivated SDD-EGM is that while many developers using AI tools were already doing a manual version of that with a second chat tab, spinning up half a dozen narrow reviewers by hand and reconciling their feedback is too tedious to do regularly. What stood out in google/elephant-goldfish-model (EGM) was its synthesizer—making it easy to run many independent, single-lens goldfish in parallel and address their combined findings in one place without bloating the main conversation's context window.
SDD-EGM extends that synthesizer pattern from design review to the entire 0-to-1 build lifecycle—the workflow FDEs, solo engineers, and small teams run when taking a project from an ambiguous idea to tested code. Instead of stopping once a design doc is reviewed, it pairs every stage of the build with its own synthesizer-coordinated critic swarm.
Because many 0-to-1 builds today are AI agents and LLM-powered apps, SDD-EGM also includes four goldfish for AI-specific mistakes (skipped automatically on non-AI projects):