Write agent lessons for a goldfish

4 min read · For developers running Claude Code and other coding agents

TL;DR: Google's Elephant-Goldfish Model checks a design by handing it to a fresh session with zero context. If that "Goldfish" can't explain it back, the writing leaned on context the reader never had. An agent's saved lessons have exactly this reader: the next session, which never saw the chat that wrote them. We ran that test on a real store of 700 lessons and 6% failed it. npx thumbgate lesson-goldfish now runs it on yours, and every new thumbs-down is checked as it is saved, while the session that wrote it can still fix it.

What Google shipped

In October 2026 Google's open source blog introduced the Elephant-Goldfish Model plugin (Apache-2.0). It splits AI-assisted work in two:

The point of a Goldfish is that it shares none of the author's blind spots. ThumbGate already uses this for its own risky changes: a design doc must pass three fresh reviews before CI lets gate, release or billing code merge.

Your agent's memory is a hand-off to a goldfish

When you give a coding agent a thumbs-down, ThumbGate saves a lesson. The session that wrote it knows exactly what "this" and "your last message" meant. The session that reads it next week does not. That reader is a Goldfish by construction, so the same three checks apply:

What we found in a real lesson store

We ran the check, read-only, on one developer's working ThumbGate store: 700 active lessons, written over three months by several agents.

Words like "again" or "before" are deliberately not flagged: "do not email that vendor again" is a fine rule.

Checking the checker with a real Goldfish

A text check is cheap but it is not a fresh reader. So we gave 80 lessons from the same store (30 the text check flagged, 50 it passed) to a fresh model session with nothing but the lessons and the question "could you act on this next time?". At first they agreed on 59 of 80. Most disagreements were copied fixes where the mistake already read as a rule, which the model rightly called usable. We narrowed that check, and agreement rose to 68 of 80 (85%). The model also caught 5 lessons the text check passed, mostly vague praise and a failure report with no rule. That second opinion now ships as an opt-in flag (below).

Fix it while the Elephant still remembers

In the Elephant-Goldfish loop, critique goes back to the session that holds the context. For a lesson, that window is short: once the chat ends, nobody can say what "this" meant. So capture now runs the same check on each new lesson and, when it fails, says so in the capture result (a goldfish field, its own line in the MCP reply and in thumbgate capture). The agent that just made the mistake can rewrite it on the spot. The lesson is saved either way; nothing is blocked.

Try it

  1. Install or update ThumbGate: npx thumbgate init.
  2. Check every lesson in this project: npx thumbgate lesson-goldfish (--all lists every flag, --all-projects checks every lesson on the machine, --json for scripts).
  3. Want a real Goldfish? npx thumbgate lesson-goldfish --fresh-model --send has a fresh model with no context read each lesson cold (opt-in; uses the same provider setup as thumbgate rule-audit, redacts secrets first, and without --send only shows what it would send).
  4. Rewrite what it flags, or retire it with npx thumbgate lesson-consolidate.

What this does not do

Sources

ThumbGate is an independent project and is not affiliated with or endorsed by Google.

Lessons the next session can use

Pre-action gates built from your own thumbs-down, checked before every tool call.

npx thumbgate init
Lessons that outlive the chat npx thumbgate init Setup guide