4 min read · For developers running Claude Code and other coding agents
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.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.
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.
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.
thumbgate log is read-only and local: the logs load into an in-memory database for each call, only single read-only statements run, and text is secret-redacted. Nothing is sent anywhere.npx thumbgate init.npx thumbgate log describe.npx thumbgate wiki to see contested entries, if any.ThumbGate is an independent project and is not affiliated with or endorsed by Hatchery.
Pre-action gates built from your own thumbs-down, with the raw log one command away.