Google trains 14M-token contexts by streaming, not storing. ThumbGate now retrieves old lessons the same way

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

TL;DR: Google added context parallelism to MaxText, its open-source JAX training framework, and reports training at up to 14 million tokens on Cloud TPUs. The trick is to stream keys and values between chips instead of holding the whole sequence on each one. ThumbGate had the same kind of wall in a smaller place: its lesson retrieval only looked at the newest slice of memory. With THUMBGATE_RETRIEVAL_SCAN=auto, ThumbGate now streams the whole memory log in blocks and keeps old, strongly matching lessons reachable. It reads 1 MB blocks and keeps only a bounded pool of matches next to the newest slice, never the whole log.

What Google shipped

These points come from InfoQ's report and Google's announcement, linked below.

The same wall, in an agent firewall

ThumbGate turns thumbs-down feedback into lessons and checks them before your agent acts. To stay fast, retrieval read only the newest 5,000 lines or 4 MB of the memory log. That bounds memory, but on a long-lived project the oldest lessons fell outside the window. Those are often the expensive ones, like the force-push that wiped shared history.

What ThumbGate does now

What it does not do

Try it

  1. Install or update ThumbGate: npx thumbgate init.
  2. Set THUMBGATE_RETRIEVAL_SCAN=auto in your shell or agent environment.
  3. Thumbs-down a mistake once. Months and thousands of lessons later, ThumbGate can still find it.

Sources

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

Never forget the lesson that hurt

Pre-action gates built from your own thumbs-down, with bounded memory.

npx thumbgate init
Remember every hard lesson npx thumbgate init Setup guide