[GitHub Trending] ranxianglei/billion-context
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Context compression for billion-token sessions is novel and directly relevant to AI/ML agent orchestration and LLM workflows.
billion-context is an open-source context-compression proxy that sits between any agent and its model API, rewriting Anthropic/OpenAI streams with incremental, reversible, and prefix-cache-friendly compression. A 4.5-month production study across three hosts with 174,327 model calls and 18.76B cumulative input tokens achieved zero window violations on 204,800-token models, with marathon sessions of 8,584–12,049 calls. 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, outperforming RAG arms (bm25, embedding, embedding-rerank) with DeepSeek V4.1 Flash and Qwen3 models.