Keep the raw log

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

TL;DR: Hatchery's post The bitter lesson for agent memory argues that compressing an agent's experience into facts throws away detail a later task needs, and that letting the agent search its verbatim log works as well or better. ThumbGate compresses too: thumbs become lessons, lessons become gates. Two changes follow. npx thumbgate log lets you or your agent search and run read-only SQL over the raw thumbs and every gate decision. And in the lesson wiki, a newer opposite thumb on the same command now invalidates the older lesson instead of both reaching the agent.

What the post argues

The post (Arjun Kumar, Hatchery, 2 December 2026) splits memory into encoding, consolidation and retrieval, and says each step that compresses loses something. Its alternative: append every event verbatim to a log, give the agent tools to describe the log, search it with full-text search, read a window of raw events and query it with read-only SQL, and do the compressing at query time, when the question is known.

Change 1: query the raw thumbs and gate log

ThumbGate already keeps the raw layer on your machine: every thumb as you gave it, the lesson written from it, and every allow, warn or deny a gate made on a tool call. Until now you reached them through the lessons. thumbgate log opens them directly:

npx thumbgate log describe
npx thumbgate log search "db:reset"
npx thumbgate log read decisions 41 --to 45
npx thumbgate log query "SELECT gate_id, decision, count(*) FROM decisions GROUP BY 1, 2 ORDER BY 3 DESC"

Every table also has a json column with the full record, so json_extract() reaches any field. A coding agent can run the same commands when it needs to know what happened last time, instead of relying only on the lessons it was shown.

Change 2: a newer opposite thumb invalidates the older lesson

The lesson wiki consolidates thumbs into one entry per mistake or practice and can export them as a Claude Code skill. Mistakes and practices were separate entries, so a thumbs-down on a command and a later thumbs-up on the same command could both reach the skill: "don't run it" and "do run it". Following the post's cache rule, the older entry is now marked contested, linked to the newer thumb that contradicts it, and left out of the skill until that thumb is retired. Gates are not changed; a contested entry that a gate still enforces is reported so you can review that gate.

What this does not do

Try it

  1. Install or update ThumbGate: npx thumbgate init.
  2. After a few thumbs, run npx thumbgate log describe.
  3. Run npx thumbgate wiki to see contested entries, if any.

Sources

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

Lessons you can check against the record

Pre-action gates built from your own thumbs-down, with the raw log one command away.

npx thumbgate init
Keep the raw log queryable npx thumbgate init Setup guide