Elephant-Goldfish Model: A New Approach to Design-Driven AI Software Development

Jump to

Key Summary

The Elephant-Goldfish Model (EGM) introduces a structured approach to AI-assisted software development by separating long-term design thinking from independent specification reviews. Its open-source plugin, originally developed for Google engineers, brings this methodology to Antigravity through three phases: brainstorming, drafting and review. By combining persistent architectural context with stateless AI validation sessions, the framework aims to improve software quality, reduce errors and keep human judgment central to development.

Why AI-Assisted Development Needs a Design-First Approach

AI coding tools have significantly increased the speed at which developers can build software. However, faster code generation can also accelerate the creation of bugs, poorly structured code and implementation mistakes. When AI sessions lose context or lack clear instructions, developers may find themselves spending more time correcting outputs than building reliable solutions.

The Elephant-Goldfish Model (EGM) addresses this challenge by placing structured design and validation before implementation. Instead of treating coding speed as the primary measure of productivity, the approach emphasises system understanding, clear specifications and deliberate human involvement.

As Dave Rensin explains in Elephants, Goldfish, and the New Golden Age of Software Engineering, “Design is the new code.” The underlying idea is to ensure that AI systems understand what needs to be built before they begin generating code.

What Is the Elephant-Goldfish Model?

The EGM framework uses two types of AI sessions, represented by an elephant and a goldfish. Each has a distinct role in the software development process.

The Elephant: Maintaining Long-Term Context

The Elephant represents a context-rich, long-running AI session that maintains the project’s architectural vision, requirements and accumulated decisions. This session is dedicated to design rather than code generation. It helps developers explore ideas, discuss technical trade-offs, challenge assumptions and document smaller decisions that influence the overall system. The Elephant also interviews the developer and supports discussions around the intended solution. Its purpose is to maintain a consistent understanding of the project throughout the design process.

The Goldfish: Providing Independent Validation

Goldfish sessions operate without the context retained by the Elephant. These stateless sessions are used to review specifications independently and identify potential gaps. Because they do not share the designer’s accumulated context, Goldfish instances can assess whether a design document communicates the intended architecture clearly. They examine assumptions, edge cases and missing implementation details that may otherwise go unnoticed. Together, the two sessions create a workflow in which one AI session develops the design while independent sessions challenge and validate it before coding begins.

Introducing the Open-Source Elephant-Goldfish Model Plugin

To make the methodology easier to adopt, the EGM team has introduced an open-source plugin available on GitHub. The plugin was initially developed internally for Google software engineers and is now released under the Apache 2.0 licence.

According to the announcement, thousands of Google engineers use the plugin in their production development workflows. The repository includes resources such as customisable Markdown rules, defined subagent personas and structured review processes.

The plugin is designed to bring the EGM workflow directly into Antigravity, with support for additional development environments planned. It helps manage the transfer of context between Elephant and Goldfish sessions, coordinate validation cycles and generate design documents.

This allows developers to focus more on reviewing decisions and ensuring the design is sound, rather than manually managing every step of the AI workflow.

How the EGM Plugin Works: Three Key Phases

The plugin organises the development process into three phases, each with a dedicated command.

Phase 1: Brainstorming with the Elephant (egm-brainstorm)

The first phase focuses on understanding the project and designing the proposed feature. Developers provide the relevant system context and collaborate with the Elephant session to explore requirements, discuss alternatives and examine technical trade-offs.

A key rule in this phase is “No Code”. The session concentrates on defining the problem and reaching a shared understanding of the intended solution before implementation begins.

Phase 2: Drafting the Design (egm-draft)

Once the initial design direction is established, developers move to the drafting phase. The Elephant session helps create a structured Markdown design document.

The document covers:

  • Problem definition: The issue or requirement the proposed feature is intended to address.
  • Technical plan: The architecture and approach for implementing the solution.
  • Alternatives considered: Other approaches evaluated during the design process.
  • Implementation plan: The specific steps and files that need to be changed.

This document becomes the central specification that independent Goldfish sessions will evaluate.

Phase 3: Reviewing with the Goldfish Protocol (egm-review)

The final phase uses stateless Goldfish sessions to challenge the design before implementation. The plugin automates a three-step validation process.

1. Comprehension Check

A Goldfish session reads the complete design document and explains the architecture and intended implementation back to the Elephant. If it cannot accurately describe the plan, the specification may contain unclear or incomplete information and needs further refinement.

2. Antagonistic Review

Multiple Goldfish instances act as critical technical reviewers. They examine the design for edge cases, hidden dependencies and logical gaps. Their feedback is returned to the Elephant session, where the issues can be discussed and resolved.

3. Implementation Readiness Check

A final Goldfish session performs a go/no-go assessment of the specification. It checks whether essential implementation details, including file paths, data structures and function signatures, are sufficiently clear.

The objective is to ensure that the design document contains the information required for implementation without leaving important decisions open to interpretation.

Why Human Judgment Remains Central to AI Development

The Elephant-Goldfish Model is built around the idea that AI can support execution, but human understanding and judgment must guide the process.

By separating design from implementation and introducing independent validation, the framework aims to make AI-assisted development more predictable. Developers can spend more time evaluating architecture, reviewing trade-offs and confirming requirements before code is generated.

The team hopes the open-source plugin will help developers, software architects and AI enthusiasts adopt this approach, customise its validation rules and contribute to the evolution of collaborative software engineering.

The Talent500 Takeaway

As AI coding tools become more capable, the ability to define, communicate and validate software requirements is becoming increasingly important. The Elephant-Goldfish Model offers a structured way to combine AI execution with human-led design and independent review.

For software developers, the approach highlights the value of architectural thinking, clear documentation and critical evaluation alongside coding skills. In an AI-assisted development environment, building the right solution starts with understanding the problem and validating the plan before implementation.

Frequently Asked Questions

1. What is the Elephant-Goldfish Model?

The Elephant-Goldfish Model is a framework for AI-assisted software development. It uses a context-rich Elephant session for design and long-term project understanding, alongside stateless Goldfish sessions for independent specification reviews.

2. What is the purpose of the Elephant session?

The Elephant maintains the project’s architectural vision, requirements and design decisions. It supports brainstorming and specification development, but does not write code during the design phases described in the framework.

3. What do Goldfish sessions do?

Goldfish sessions independently review design specifications without relying on the Elephant’s accumulated context. They identify ambiguities, edge cases, hidden dependencies and missing implementation details.

4. What is the Elephant-Goldfish Model plugin?

It is an open-source plugin that automates the EGM workflow. Released under the Apache 2.0 licence, it includes Markdown rules, subagent personas and structured review workflows.

5. What are the three phases of the EGM workflow?

The three phases are brainstorming with the Elephant (egm-brainstorm), drafting the design document (egm-draft) and validating the specification through the Goldfish Protocol (egm-review).

Read more such articles from our Newsletter here.  

Leave a Comment

Your email address will not be published. Required fields are marked *

You may also like

AI & Cyber security hiring in GCCs

AI, Data and Cybersecurity Drive 30% of GCC Tech Hiring Demand in India

Explore how AI and cybersecurity hiring in GCCs is evolving as global companies expand their technology capabilities in India. Discover emerging job roles, in-demand skills, hiring trends, and the growing need for professionals who can secure AI-driven systems and digital infrastructure.

Categories
Interested in working with Artificial Intelligence, Newsletters, Technology ?

These roles are hiring now.

Loading jobs...
Scroll to Top