How many lessons should your coding agent see?

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

TL;DR: A new paper shows video models learn from examples in the prompt, like language models do, and that the number of examples matters: often one does most of the work, and on harder tasks more examples start to interfere. Your agent's saved lessons are in-context examples too, and nobody measures how many to show. ThumbGate now can: THUMBGATE_LESSON_DOSE=on shows 1, 2 or 3 lessons per session, and npx thumbgate effect tells you which dose cut repeat mistakes. Off by default.

What the paper found

Video models are in-context learners (Hochlehnert, Wiedemer, Hayes, Kipf, Kim, Geirhos; arXiv 2611.40122, November 2026) tested two frontier video models, Gemini Omni 1.1 and Seedance 2.5, with no training at all:

What it does not show: anything about coding agents or text lessons. The headline framing ("for the first time", a "common developmental path" for intelligence) is the authors' question, not a result. We apply the method by analogy.

Your agent's lessons are in-context examples

When you give a coding agent a thumbs-down, ThumbGate saves a lesson. Before the agent's first tool call on a related task, up to three matching lessons are put in its context. Three was a guess. The paper's curve says the right number could be one (less to read, less to interfere) or more, and that it depends on the task. The only way to know for your agent is to measure it.

How the dose experiment works

  1. Set THUMBGATE_LESSON_DOSE=on, or pick doses with a list such as 1,3. Each session is assigned one dose by a hash of its id and keeps it.
  2. Lessons are picked best-first, so the top lesson is the same at every dose. The arms differ only in how many other lessons sit beside it.
  3. ThumbGate watches whether that top lesson's mistake comes back: a later thumbs-down with the same tag, or the same words within a week.
  4. After 20+ prompts per dose, npx thumbgate effect prints the repeat rate per dose and calls the shape only when the difference is clear beyond chance: more helps, flat, or U-shaped. It names the fewest lessons that do as well as the best, and the paper's summary number, the change per doubling.

Example output:

Lesson dose experiment, top lesson's mistake back: 1 40/100 (40 per 100), 2 10/100 (10 per 100), 3 45/100 (45 per 100)
Lesson dose: a middle dose works best; more lessons start to interfere. Best 2; fewest as good 2

Turn on THUMBGATE_LESSON_HOLDOUT=0.1 as well and a held-back session counts as dose 0, the paper's zero-shot baseline.

What this does not do

Try it

  1. Install or update ThumbGate: npx thumbgate init.
  2. Add THUMBGATE_LESSON_DOSE=on to your agent's environment.
  3. Work as usual, give thumbs, and check npx thumbgate effect after a week or two.

Sources

ThumbGate is an independent project and is not affiliated with or endorsed by the paper's authors or their employers.

Lessons, measured

Pre-action gates built from your own thumbs-down, and numbers that say whether the lessons work.

npx thumbgate init
How many lessons? Measure it npx thumbgate init Setup guide