谷歌发布 Elephant-Goldfish 模型插件,面向规格优先编程
Google 已将 Elephant-Goldfish Model(EGM)插件开源,这是一个面向 AI 编码智能体的设计与评审层。Elephant-Goldfish Model 插件会让智能体在写代码之前先写出一份规格说明。随后,不带任何对话历史的全新子智能体会对该规格发起攻击。Google 表示,公司内部有数千名工程师在使用它。它其实很简单:把错误的假设拦在一个 Markdown 文件里,而不是等到 pull request 里才发现。
EGM 是一个采用 Apache 2.0 许可的插件,包含技能、评审者角色设定和文档标准。它并不是一个新语言模型。该方法源自 Dave Rensin 关于大象与金鱼的文章。Google 开源博客将其定位为解决 AI“垃圾内容”(slop)和会话上下文坍缩的方案。README 中说明,它并非 Google 官方支持的产品。
大象是一个长期运行的会话,承载项目上下文和此前的决策。它负责起草规格,不写任何代码。每条金鱼都是一个无状态子智能体。它只读取草稿及其引用的文件。由你来权衡取舍并批准设计。
核心循环包含 3 条命令:
/egm-drift-report 随后会将代码与规格进行对比。文档建议每周运行一次。
评审技能按顺序运行 5 个阶段:
每个阶段最多允许 1 次重新审计。发现的问题按 Blocker、Major 或 Nit 分级。如果宿主没有子智能体工具,EGM 就会停止。同一上下文内的评审不算金鱼评审。
发布时的报道称其仅支持 Antigravity,后续会支持更多。当前的运行框架指南涵盖 Antigravity CLI 和 App、Claude Code、Claude Cowork、Codex、ChatGPT、omp 和 Muse。Antigravity CLI、Claude Code 和 Codex 通过了自动化端到端测试夹具。
Claude Code 需要 2.1.271 或更高版本。其中的审查者只能使用 Read、Grep 和 Glob 工具。CLAUDE.md 文件被排除在它们的上下文之外。
测试记录给出了具体的运行数据:
EGM 的独特做法是用零上下文智能体来审查规格说明。Spec Kit 和 Kiro 则以各阶段之间的人工审查为核心。Superpowers 主要在实现阶段对子智能体进行隔离。
需要与我们合作推广你的 GitHub 仓库、Hugging Face 页面、产品发布或网络研讨会等?欢迎联系我们。
文章《Google AI 发布面向规格优先编码的 Elephant-Goldfish 模型插件》最先出现在 MarkTechPost 上。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Google AI Releases Elephant-Goldfish Model Plugin for Spec-First Coding)
Google has open-sourced the Elephant-Goldfish Model (EGM) plugin, a design-and-review layer for AI coding agents. The Elephant-Goldfish Model plugin makes an agent write a specification before it writes code. Fresh subagents with no conversation history then attack that spec. Google says thousands of its engineers use it. It is quite simple: catch wrong assumptions in a Markdown file, not in a pull request.
TL;DR
- Size: 7 skills, 9 reviewer personas, 6 brainstorm lenses, 5 review stages. No model weights; your agent supplies the LLM.
- Runs on: any harness that can spawn fresh subagents: Antigravity, Claude Code 2.1.271+, Claude Cowork, Codex, ChatGPT. Uses your existing model quota.
- Performance: no accuracy benchmark published. Evidence is adoption and end-to-end harness test runs.
- Best: Codex 0.163.0 completed 15 native fresh-context reviewers in order. 2 live tests passed in 573.13s.
- Worst: the Claude Cowork run stopped after stages 5 to 7 on a usage limit. Issue #237 reports
AGENTS.mdleaking into Codex reviewers. - Bottom line: best thing, forced independent review before code. Worst thing, heavy token use and unverified isolation on some hosts.
What is Google’s Elephant-Goldfish Model plugin?
EGM is an Apache 2.0 plugin of skills, reviewer personas and document standards. It is not a new language model. The method comes from Dave Rensin’s essay on elephants and goldfish. The Google Open Source blog frames it as a fix for AI “slop” and session context collapse. The README states it is not an officially supported Google product.
How does the Elephant-Goldfish workflow work?
The Elephant is a long session holding project context and earlier decisions. It drafts the spec and writes no code. Each Goldfish is a stateless subagent. It reads only the draft and the files it references. You resolve trade-offs and approve the design.
The core loop has 3 commands:
/egm-brainstormclarifies the idea, then runs a 6-lens Goldfish swarm. Lenses cover YAGNI, token cost, UX, migration, observability and tech debt. Output:concepts_brief.md./egm-draftturns the brief into a design doc underdocs/designs/, section by section./egm-reviewruns the Goldfish review.
/egm-drift-report later compares code with the spec. The docs recommend running it weekly.
What happens in the 5-stage Goldfish review?
The review skill runs 5 sequential stages:
- Initial Zoom Out: checks the whole document at a high level.
- Comprehension Test: a Goldfish paraphrases the design. A wrong paraphrase means the doc is ambiguous.
- Critic Review: design, structural and style reviewers hunt gaps and edge cases.
- Intermediate Zoom Out: rechecks architecture after fixes.
- Implementation Readiness: checks file paths, data structures and signatures.
Each stage allows at most 1 re-audit. Findings are ranked Blocker, Major or Nit. If a host has no subagent tool, EGM stops. A same-context review is not a Goldfish review.
Which coding agents does EGM support?
Launch coverage described Antigravity-only support, with more coming. The current harness guide covers Antigravity CLI and App, Claude Code, Claude Cowork, Codex, ChatGPT, omp and Muse. Antigravity CLI, Claude Code and Codex pass automated end-to-end fixtures.
Claude Code needs version 2.1.271 or later. Reviewers there get only Read, Grep and Glob tools. CLAUDE.md files are excluded from their context.
The test record gives concrete run data:
- Antigravity CLI 1.4.5: 16 native reviewers ran, stages in order.
- Codex 0.163.0: 15 native reviewers, 2 live tests in 573.13s.
- Codex CLI with the v0.1.0 ZIP: full suite passed in 482.30s.
How does EGM compare with Spec Kit, Kiro and Superpowers?
| Feature | Google EGM | GitHub Spec Kit | Kiro Specs | Superpowers |
|---|---|---|---|---|
| Type | Plugin (skills + personas) | Toolkit + Specify CLI | Feature of an agentic IDE/CLI/web | Skills plugin |
| License | Apache 2.0 | MIT | Commercial (pricing) | MIT |
| Workflow | Brainstorm, draft, review, drift report | Constitution, specify, plan, tasks, implement, converge | Requirements, design, tasks | Brainstorm, plan, subagent build, TDD, review |
| Spec reviewed by fresh-context subagents | Yes, 5 stages before code | Not disclosed | Not disclosed (Analyze Requirements pass) | No; fresh subagents review code per task |
| Harness | Antigravity, Claude Code, Codex, ChatGPT, more | Copilot and other agents | Kiro only | 16 harnesses listed |
| Setup | Plugin install | Python 3.11+, uv | Kiro account | Plugin install |
| Cost | Free plugin; host model usage | Free toolkit; host model usage | Subscription | Free plugin; host model usage |
EGM’s distinct move is reviewing the spec with zero-context agents. Spec Kit and Kiro center on human review between phases. Superpowers isolates subagents mainly at implementation time.
Key Takeaways
- EGM is a plugin, not a model: Elephant drafts, Goldfish reviews.
- Specs get 5 zero-context review stages before any code.
- Works across Antigravity, Claude Code, Codex and ChatGPT.
- Codex test runs completed 15 fresh-context reviewers end to end.
- Reviewer isolation still leaks host instruction files on some CLIs.
Check out the GitHub repo, the project site and the Google Open Source blog post. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
The post Google AI Releases Elephant-Goldfish Model Plugin for Spec-First Coding appeared first on MarkTechPost.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 MarkTechPost(Google AI Releases Elephant-Goldfish Model Plugin for Spec-First Coding),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。