Google open-sources Elephant-Goldfish Model plugin for design-driven AI coding
Google released its internal Elephant-Goldfish Model plugin under Apache 2.0, automating a structured AI-assisted development workflow that separates architectural design sessions from adversarial validation to reduce bugs and context collapse.
Summary
Google has released the Elephant-Goldfish Model (EGM) plugin as open source under the Apache 2.0 license, making available a methodology previously used internally by thousands of Google engineers for production code. The plugin implements a structured framework where long-context "Elephant" sessions handle architectural design and intent capture without writing code, while stateless "Goldfish" sessions perform adversarial validation of the resulting specifications. The tool automates three phases: brainstorming with a "No Code" rule, iterative drafting of Markdown design documents, and a multi-step Goldfish Protocol involving comprehension checks, antagonistic reviews, and implementation readiness verification.
The plugin currently targets Antigravity, Google's development environment, with support for other environments described as upcoming. The repository includes customizable Markdown rules, defined subagent personas, and structured review workflows that developers can adapt to their own tooling. By managing context transfer between design and validation sessions, the plugin aims to shift developers from micromanaging AI-generated code to reviewing well-specified implementations.
How the EGM plugin structures AI-assisted development
- Apache 2.0 licensing: The complete plugin source, rules, and workflows are released under Apache 2.0, permitting commercial and derivative use without vendor lock-in to Google's infrastructure.
- Three-phase lifecycle automation: The plugin provides explicit commands (
egm-brainstorm,egm-draft,egm-review) that enforce separation between design, specification, and validation phases. - Context isolation architecture: Elephant sessions maintain long-horizon project memory and architectural vision, while Goldfish sessions are deliberately stateless to eliminate shared blind spots with the designer.
- Adversarial validation protocol: The Goldfish Protocol implements comprehension checks, multi-instance antagonistic review for edge cases and hidden dependencies, and a strict go/no-go implementation readiness check.
- Antigravity integration with extensibility: Initial release targets Antigravity with other environments planned; the repository provides Markdown rules and subagent personas for customization.
Why it matters
The EGM plugin offers a concrete, production-tested alternative to unconstrained AI code generation that has proliferated bugs and technical debt across open-source and commercial projects. For Linux and open-source developers, the Apache 2.0 release provides a framework to integrate structured design validation into existing toolchains rather than depending on proprietary AI coding platforms. The explicit "No Code" design phase and adversarial review protocol could particularly benefit maintainers of complex systems software where context collapse in AI assistants has led to subtle, far-reaching regressions.
Original reference: opensource.googleblog.com →