[GitHub Trending] ranxianglei/billion-context
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Context compression for long sessions, novel and relevant to AI agent memory.
billion-context is an open-source context-compression proxy that sits between any agent and its model API, rewriting Anthropic/OpenAI streams to enable month-long coding sessions with billions of tokens. In a 4.5-month production study across three hosts with 174,327 model calls and 18.76B cumulative input tokens, it achieved zero window violations on 204,800-token models and maintained a 95–97% prefix-cache hit rate. Independent benchmarks show it ranked #1 on ContextBench (0.3097 Utilized F1, -58.3% cost vs full context) and achieved 100% survival on 1.48M-token MemoryAgentBench TTL where full context failed 199/199 tests.