Context-compression plugin for month-long agent sessions
billion-context sits between an agent and its model API, rewriting Anthropic/OpenAI streams. It targets small context windows (100K is enough) and 5x fewer tokens.
- The README cites a healthy prefix-cache hit rate of 95-97%, with compression costing at most 2%.
- Its 1,500-item third-party evaluation ranks it #1 on ContextBench, and
79.20%vs62.60%for the best RAG on LongMemEval-S. - The paper and benchmark code are in the repo, with the paper under the MIT License.
try
npm install -g billion-context --prefix=~/.local