billion-context on GitHub: billion-token sessions in a 100K window, 5x token savings

aigclink · x · 2026-10-24

The billion-context GitHub repo (2.5k stars, 218 forks) ships a context-compression plugin targeting month-long single sessions of billions of tokens, small windows (100K is enough), and 5x token savings — "billion-context is all you need."

Core mechanism: incremental hierarchical compression plus on-demand recovery — agents fold old messages into summaries, restore originals via decompress, and search compressed history via searchcontext, while keeping the prompt cache prefix stable. The repo includes a paper, devlog, proof, and plugin adapters for Claude, Codex and more. MIT-licensed, installable via npm install -g billion-context.

Related event: billion-context: Run Billion-Token Sessions in a 100K Window(2 posts)→

Original post →

More from coding & agent

coding & agent channel →