Google 开源 EGM 插件 让编码智能体先写规格再写代码
Google 开源了 Apache 2.0 许可的 Elephant-Goldfish Model(EGM)插件,要求编码智能体在写代码前先撰写并接受评审的设计规格。其核心是上下文分离:长会话“大象”维护项目历史并起草设计文档,全新子智能体“金鱼”只读取该文档及其引用文件,从而避免继承主会话的盲区。评审分五阶段,实测 Codex 0.163.0 与 Antigravity CLI 可端到端跑完 15-16 个评审者,但会消耗用户自有模型配额,且存在 AGENTS.md 泄漏到部分 CLI 评审者的问题。
报道正文
▲ Marktechpost AI · 2026-11-08 10
▲ Google just open-sourced the Elephant-Goldfish Model (EGM) plugin, which makes your coding agent write and defend a spec before it writes any code.
The key idea is splitting context. The "Elephant" is a long session that holds your project history and drafts the design doc. The "Goldfish" are fresh subagents that read only that doc and the files it references, so they do not inherit the conversation's blind spots.
The review runs 5 stages: zoom out, a comprehension test where a Goldfish paraphrases the design, a critic review, a second zoom out, and an implementation-readiness check. In Google's own test record, Codex 0.163.0 completed 15 fresh-context reviewers end to end and Antigravity CLI ran 16. It is a trade-off though: the Claude Cowork run stopped after stages 5 to 7 on usage limits, and issue #237 reports AGENTS.md leaking into some CLI reviewers.
It ships as an Apache 2.0 plugin with 7 skills and 9 reviewer personas. It works in Antigravity, Claude Code 2.1.271+, Codex and ChatGPT. The plugin is free, but every review burns your own model quota......
Full analysis:
