What if Claude Code had an entire team of AI reviewers helping it make better software engineering decisions before it even started writing code?
Not another AI coding assistant. Not another LLM. But an open-source framework that fundamentally changes how you approach AI-assisted software development.
Google's Elephant and Goldfish Model (EGM) plugin introduces independent AI reviewers, structured brainstorming, design documentation, and spec-driven development directly into Claude Code.
I decided to put it to the test by building a functional application from scratch.
Here's what happened. 👇
🎥Full video walkthrough
The Biggest Problem With Vibe Coding
AI coding assistants like Claude Code have made building applications incredibly accessible. You describe what you want, and the AI handles the implementation.
However, a familiar pattern starts emerging as your application grows:
- Describe an application idea.
- Let AI generate the code.
- Add more features.
- Something breaks.
- Ask AI to fix it.
- The fix introduces another problem.
- Repeat.
Eventually, you're spending more time fixing problems than building features.
But what if the underlying problem isn't the AI-generated code?
What if the problem is that we never properly defined how the application should work in the first place?
That's where Google's EGM plugin comes in.
🧠 What Is Google's Elephant and Goldfish Model (EGM)?
The Elephant and Goldfish Model (EGM) is an open-source framework from Google that introduces structured software design, independent AI reviews, and implementation planning into AI-assisted software development.
Despite its name, EGM is not a new large language model.
Instead, it introduces a workflow that separates contextual understanding from independent evaluation using two types of AI agents.
🐘 The Elephant — Your Primary AI Agent
The Elephant maintains the context of your project and understands the conversations you've had throughout the development process.
Its responsibilities include:
- Understanding application requirements.
- Exploring ideas and identifying gaps.
- Asking clarifying questions.
- Creating structured design documents.
- Refining the application blueprint.
Think of it as a software architect who has been involved in your project from the beginning.
🐠 The Goldfish — Independent AI Reviewers
The Goldfish approach the application design with fresh eyes.
Rather than being influenced by your entire conversation history, they evaluate the written design and relevant project information independently.
Their responsibilities include:
- Challenging assumptions.
- Identifying missing requirements.
- Discovering edge cases.
- Uncovering potential design problems.
- Evaluating implementation readiness.
Imagine bringing independent software engineers into a design review after your team has spent hours discussing an application.
They might identify problems everyone else overlooked.
That's the idea behind EGM.
Traditional Vibe Coding vs. EGM-Powered Development
| Traditional Vibe Coding | EGM-Powered Development |
|---|---|
| Start with a prompt | Start with structured brainstorming |
| AI makes implicit assumptions | Requirements are explicitly discussed |
| Generate code immediately | Create a formal design document |
| Discover issues during development | Identify potential issues before implementation |
| Rely heavily on conversation history | Maintain structured design documentation |
| Reactive problem-solving | Proactive design reviews |
| Continuous prompt-based refinement | Reviewed, spec-driven implementation |
EGM doesn't replace Claude Code's coding capabilities.
It improves the development process surrounding them.
⚙️ How Does Google EGM Work With Claude Code?
The EGM-powered software development workflow looks like this:
Application Idea
↓
Structured Brainstorming
↓
Requirements Discovery
↓
Design Document
↓
Independent AI Reviews
↓
Design Refinement
↓
Human Approval
↓
Claude Code Implementation
↓
Working Application
Instead of asking Claude Code to immediately build an application, you first collaborate with it to understand what should be built.
Independent AI reviewers then evaluate the design before implementation begins.
This brings some of the established practices used by professional software engineering teams into the vibe coding workflow.
Installing Google EGM in Claude Code
Getting started is straightforward.
Open your terminal and add Google's EGM plugin marketplace:
claude plugin marketplace add google/elephant-goldfish-model
Then install the EGM plugin:
claude plugin install egm@egm
The plugin works directly within Claude Code.
You don't need to configure a separate LLM provider or API key when using your existing Claude Code subscription.
One thing to keep in mind: running additional AI reviewers consumes your existing usage quota faster.
🧪 The Experiment: Building an Application From Scratch
Rather than testing EGM with another generic to-do application, I wanted to build something that involved interconnected features and meaningful business logic.
I decided to build Weekender, a group trip planning application.
Imagine planning a weekend trip with friends.
Your itinerary is buried in a group chat, expenses are tracked in a spreadsheet, and different people are participating in different activities.
Things get complicated surprisingly quickly.
Weekender brings everything together through:
- Group member management.
- Day-wise itinerary planning.
- Activity management.
- Trip budget management.
- Expense tracking.
- Automatic expense splitting.
- Settlement calculations.
The challenge wasn't simply generating an attractive user interface.
It was making sure the application behaved correctly when all these features interacted.
Step 1: Brainstorming Before Writing Code
I started by invoking EGM's brainstorming workflow inside Claude Code.
/egm:egm-brainstorm
I described the application idea, core features, expected behavior, and the scope of the initial version.
Instead of immediately generating code, Claude started identifying gaps and asking clarifying questions.
For example:
- What happens when an activity is cancelled after someone has already paid for it?
- How should expenses be split when only some friends participate in an activity?
- How should the application handle shared expenses?
- Who manages the trip information?
These are the kinds of questions that can significantly influence an application's architecture and data model.
And they're easy to overlook when your initial goal is simply getting something working.
Step 2: Creating a Formal Design Document
Once the brainstorming phase was completed, I moved to the design phase.
/egm:egm-draft
Claude generated a structured design document based on the requirements and decisions from our brainstorming session.
The document captured the application scope, expected behavior, feature interactions, and implementation considerations.
Instead of relying entirely on a long conversation with an AI agent, I now had a persistent blueprint describing how the application should work.
🔍 Step 3: Putting the Design Through Independent AI Reviews
This was the most interesting part of the experiment.
Rather than immediately implementing the design, I asked EGM's independent AI reviewers to evaluate it.
I deliberately chose not to provide the reviewers with our previous conversation context.
I wanted them to examine the design with fresh eyes.
The reviewers analyzed the document, challenged assumptions, identified missing requirements, and generated review reports.
They also produced an implementation readiness assessment.
The verdict?
The application was not ready for implementation.
The reviewers had identified blockers and major issues that needed to be addressed.
And Claude hadn't even started writing the application code yet.
This is what makes the approach particularly interesting.
Instead of discovering these design problems after implementation, I had an opportunity to address them beforehand.
Step 4: Refining the Design and Building the Application
After reviewing the feedback and incorporating the recommended changes, I moved on to implementation.
Claude Code now had a reviewed design document containing:
- Defined application requirements.
- Agreed feature behavior.
- Important design decisions.
- Considerations for edge cases.
- A clearer implementation blueprint.
Claude Code was still responsible for writing the code, building the interface, and implementing the functionality.
EGM helped structure the process leading up to that implementation.
🎯 The Final Result
The experiment produced a working version of Weekender with the core features I wanted.
| Feature | Result |
|---|---|
| Group member management | Implemented |
| Day-wise itinerary | Implemented |
| Activity management | Implemented |
| Budget management | Implemented |
| Expense tracking | Implemented |
| Expense splitting | Implemented |
| Settlement calculations | Implemented |
| Structured design documentation | Generated |
| Independent AI design reviews | Completed |
The most valuable outcome wasn't simply getting a working application.
It was having a documented understanding of how the application was supposed to work.
As the application grows, those design documents can be maintained and updated instead of relying entirely on an increasingly long AI conversation.
Is Google EGM the Future of Vibe Coding?
I think EGM represents an interesting direction for AI-assisted software development.
The industry has spent considerable effort improving how quickly AI can generate code.
But generating more code isn't necessarily the same as building better software.
EGM shifts some of the attention toward:
- Requirements engineering.
- Software architecture.
- Independent design reviews.
- Context management.
- Spec-driven development.
- Human-in-the-loop decision-making.
These aren't new software engineering concepts.
What's interesting is making them accessible through an AI-powered development workflow.
⚖️ Advantages and Limitations
EGM isn't necessarily the right tool for every project.
| Advantages | Limitations |
|---|---|
| Identifies potential design issues early | Additional token and usage consumption |
| Encourages clearer requirements | More upfront planning time |
| Introduces independent perspectives | AI reviewers can still make mistakes |
| Maintains structured design documents | May be excessive for simple prototypes |
| Integrates directly with Claude Code | Human judgment remains necessary |
For a quick landing page or a disposable prototype, the additional review process might be unnecessary.
However, for applications involving complex business logic, interconnected features, or evolving requirements, structured design reviews could be particularly valuable.
My experiment demonstrates the workflow and its potential, rather than proving that EGM universally produces better code or reduces development time.
Who Should Use Google EGM?
Non-technical builders: EGM can help uncover requirements and technical questions you might not know to ask.
Software engineers: It introduces structured design reviews and spec-driven development into an existing AI coding workflow.
Startup founders: It can help clarify product requirements before committing to implementation.
AI agent developers: It demonstrates an interesting multi-agent architecture where contextual understanding and independent evaluation are separated.
Frequently Asked Questions
Is Google's Elephant and Goldfish Model a new AI model?
No. EGM is an open-source framework that introduces structured design and independent AI reviews into AI-assisted software development. It is not a standalone large language model.
Does Google EGM work with Claude Code?
Yes. Google EGM provides a plugin that integrates directly with Claude Code, enabling brainstorming, design documentation, independent reviews, and implementation planning.
Is Google EGM free?
The EGM plugin is open-source. However, the underlying AI model usage is subject to your Claude Code subscription limits or API billing.
Does Google EGM require a separate API key?
No separate API key is required when using the plugin with an existing Claude Code subscription.
What is the difference between the Elephant and Goldfish agents?
The Elephant retains project and conversation context to help understand requirements and create designs. The Goldfish independently evaluate those designs using fresh context to identify potential issues and challenge assumptions.
Can EGM replace software engineers?
No. EGM assists with software design, requirements discovery, and independent reviews. Human judgment, code reviews, testing, and security validation remain important.
What is the difference between vibe coding and spec-driven development?
Vibe coding typically emphasizes conversational prompting and iterative code generation. Spec-driven development emphasizes defining requirements and expected behavior through structured specifications before implementation. EGM helps combine these approaches.
Final Thoughts
The next evolution of AI coding might not be about giving developers more powerful models.
It might be about giving those models better development workflows.
Google's Elephant and Goldfish Model is an interesting example of how multi-agent systems can bring established software engineering practices into modern AI-assisted development.
Instead of asking AI to write more code, perhaps we should start asking AI to help us make better decisions before writing it.
Build smarter, not just faster.
Top comments (1)
💬 What do you think? Would you introduce independent AI reviewers into your vibe coding workflow, or would you prefer the speed and simplicity of direct code generation?
I'd love to hear how others are approaching AI-assisted software development.