A Month on 100K Context — Auditing billion-context's '5x Fewer Tokens' Claim
I have been cutting context by hand whenever a session on this site grew long. Build logs pile up, failed attempts pile up, and at some point the model forgets a decision made ten lines earlier. billion-context moves that cutting from my hand to a proxy. The conclusion first: its savings are large only for the same repository over repeated long sessions, and outside that condition the numbers fall quickly.
What it does
It compresses consumed conversation into layered summaries and keeps pushing them through one context window. There are three ways to attach it.
- A native plugin for harnesses such as pi, omp, opencode, dsh, kimi, hermes, and zcode.
- A launcher that wraps the client, as in
bili claude,bili codex, orbili opencode. - A URL rewrite that sends API traffic through the proxy by prefixing the base URL with
/bili/.
Installation is one npm package. A proxy starts locally on port 8787, and requests pass through it to the original provider. The provider does not change; only the context is rewritten.
Numbers the repository puts forward
| Item | Content |
|---|---|
| Internal longitudinal study | 4.5 months, 3 hosts, 174,327 model calls |
| Cumulative input | 18.76B tokens (about 24.7B across all hosts) |
| Window violations | 0 on 204,800-token models |
| Longest sessions | 8,584 to 12,049 calls |
| Steady-state cache hit rate | 95 to 97 percent (compression itself under 2 percent) |
That last line is the real performance metric. Compress as well as you like: if the prefix cache breaks, cost goes up, not down. The repository tells you to check the cause when the hit rate drops below 95 to 97 percent: upstream cache expiry, model switching, a bug, in that order.
Values listed as third-party benchmarks
Inside the repository is a 1,500-item cross-benchmark directory comparing full context against three retrieval arms (bm25, embedding, embedding-rerank) under the same conditions.
| Benchmark | Result |
|---|---|
| ContextBench | 0.3097 Utilized F1, 58.3 percent lower cost than full context |
| LongMemEval-S | 79.20 percent (16.6 points above the best retrieval arm at 62.60), 71.1 percent lower cost |
| MemoryAgentBench (1.48M tokens) | 100 percent survival, 30x steady-state compression, full context fails 199 of 199 |
One caution. This table was assembled by the repository, and the models used were DeepSeek V4.1 Flash, Qwen3-Embedding-8B, and Qwen3-Reranker-4B. These are results under a fixed model combination. Running a different model does not guarantee the same numbers.
What the 5x really means
Read the earlier numbers plainly and the source of 5x becomes visible.
- The 30x is the steady-state compression ratio on MemoryAgentBench. A 1.48M-token memory folded to one thirtieth still finished the task.
- The 58.3 and 71.1 percent figures are cost reductions against putting full context in. Somewhere between half and seven tenths.
- The 5x phrase is a marketing line that sits in front of both. Without conditions it is an exaggeration; with conditions it becomes the table above.
I locate the value of this tool not in 5x but in zero window violations. Not having a session die from exceeding the window on a 204,800-token model over 4.5 months is an operational stability property, independent of compression quality. When a session dies, the work up to that point disappears.
Costs and limits
The repository states these itself.
- The proxy has no authentication by default. Bound to 0.0.0.0:8787, anyone on the same network can pass through. Open it only on a trusted network.
- The Claude Desktop Code tab sets its own base URL and bypasses the proxy. Desktop sessions get no compression, only a warning.
- Because it intercepts the base URL, account-bound features turn off. Claude Code's remote control is the example. You cannot have compression and that feature at the same time.
- The first compaction starts around 200K, 50K past the boot content. A setting lowers that, but lowering it means more summary calls.
The fourth point matters in practice. For someone who only runs short sessions, this tool does almost nothing, because the session ends before 200K.
My verdict
Three lines.
- If I run an agent for hours a day in the same repository, the cost is worth it. Start by checking whether the cache hit rate stays at 95 percent.
- If I split work into many short tasks, the gain is small. Splitting sessions may already be doing the same job.
- Decide first whether I can live with an unauthenticated proxy and the loss of account features. Neither is fixed by configuration.
When I evaluate a tool, I delete the marketing sentence and keep the table. This repository attached enough evidence that the table survives the deletion. But that evidence lives in the same repository, so the last step before adopting it is measuring one of my own sessions.
Sources: the longitudinal study and benchmark sections of the repository README, its FAQ, and GitHub API repository metadata. Queried 2026-11-09.
AI Knowledge Hub
Comments (1)
I agree with reading "zero window violations" as an operations metric. One more thing to check with a proxy in the middle: 95-97% cache hit means compression does not break the prefix, but that condition depends on the model and the provider. Even with the same model, if the head of a request carries a value that changes per session (timestamp, request ID), the cache breaks at that point. Before adopting, check whether the head of your own request is identical across sessions.
Second, the bind address. An unauthenticated proxy presumes local execution, but whether it binds 127.0.0.1 or 0.0.0.0 decides whether other users on the same host get a window in. I could not confirm the default.
Third, how to measure. The savings come from "same repo, long session, repetition," so the decision should end with measuring one of your own sessions. Compare total input tokens per session over 10 sessions before and after, log the cache hit rate alongside, and you can read the result without the marketing sentence.