Google Open‑Sources the Elephant‑Goldfish Model Plugin to Guard AI‑Generated Code
What Happened — Google announced that it has open‑sourced the Elephant‑Goldfish Model (EGM) plugin, an internal tool that forces an AI‑assisted coding agent to produce a full design document and defend it before any code is written. The plugin orchestrates a three‑phase workflow:
- egm‑brainstorm – the developer and a long‑memory “Elephant” AI discuss architecture, alternatives, and assumptions without writing code.
- egm‑draft – the same Elephant helps produce a Markdown design document that enumerates the problem, technical plan, alternatives considered, and the exact files to be changed.
- egm‑review – a series of stateless “Goldfish” reviewers each read the document, explain it back, and hunt for edge‑case failures, hidden dependencies, or logical gaps. The final Goldfish issues a go/no‑go decision on whether the design is unambiguous enough to proceed to implementation.
The design‑first approach is intended to counter the “velocity of slop” that generative AI can introduce when developers let an LLM write code directly. By separating design from execution and forcing multiple independent AI reviewers to critique the same document, the plugin aims to surface bugs, architectural mismatches, and security blind spots early in the development lifecycle.
Google reports that thousands of its engineers already use the plugin daily inside the internal Antigravity development environment, and the open‑source repository includes Markdown templates, configurable reviewer personas, and example workflows. While the current release targets Google’s own tooling, the team says support for other IDEs and CI/CD pipelines is forthcoming.
Security‑specific reviewers are not enabled by default; teams that need a threat model or security review must add a custom “Goldfish” persona with the appropriate prompts. The plugin’s architecture—long‑memory Elephant paired with stateless Goldfish—means that each review session starts with a clean slate, preventing context‑collapse errors that can arise when a single AI session carries forward hidden assumptions.
The source code, documentation, and example configurations are available on GitHub under an Apache 2.0 license. Google encourages external contributors to add new reviewer personas (e.g., compliance, performance, security) and to integrate the plugin with other development environments.
Why It Matters for Trust & Control Assurance — The EGM plugin gives organizations a repeatable, auditable control for AI model governance, helping to satisfy AI‑focused assurance requirements.
Who Is Affected — Software development teams, enterprises adopting generative AI for code, and any organization that builds AI‑assisted tooling.
Recommended Actions —
- Integrate the EGM plugin into your CI/CD pipeline and capture review artifacts as evidence of design‑review controls.
- Map the three‑phase workflow to your AI governance framework (e.g., NIST AI RMF) and document how each phase satisfies design‑validation and risk‑mitigation objectives.
Technical Notes — The plugin runs as a set of command‑line tools (egm‑brainstorm, egm‑draft, egm‑review) that interact with the Antigravity IDE. The “Elephant” maintains a persistent session state (project‑wide architecture, intent, decisions) while each “Goldfish” is stateless, ensuring fresh perspectives on each review. Custom reviewer personas are defined via prompt templates; security reviewers can be added by supplying threat‑modeling prompts. The repository includes sample Dockerfiles for containerised execution and CI integration scripts. Source: https://www.helpnetsecurity.com/2026/10/26/google-elephant-goldfish-model-plugin/