← Market Pulse · Nov 9
billion-context: a context compression plugin that lets one AI session run for a month and saves tokensGitHub · created Aug 4 (97 days ago) · original page ↗
Stars / day ×3.4149 → 500

Others charge $20 for long-session compression; this one plugs into 20+ assistants for free

What it isA local proxy that sits between coding assistants and model APIs and lets the model compress old conversation into summaries it can expand again.

Why it grewHit the GitHub overall daily trending list for the first time on Nov 8; Chinese and English X posts passed it along, and the star count doubled.

What to takeIt wrote its selling points as three numbers that can be repeated verbatim, and connects to every major coding assistant with one command.

Who built itA Chinese solo developer, ranxianglei, with the user group on QQHow it makes moneyFree, MIT license plus an attribution clause, no path to chargingStaying powerHas staying power: the next two days added 650 and 497 stars a day, and it stayed on the daily list
Official architecture diagram: it sits between the coding assistant and the model API, injects four tools including compress into the model, and the model decides which segment to compress

Positioning and edge

Who it's forDevelopers who run long tasks with coding assistants and often hit usage limitsThe job it doesOne session runs for days without blowing the context window, and each turn resends hundreds of thousands fewer tokensWhat people did beforeWaiting for the assistant's built-in compression to summarize everything in one cut at a threshold, or starting a new session and explaining it all againThe wedgeChinese users on cheap models with a 128K window, reaching it through dsh and the Pi plugin marketplace

How it differs from the rest

  1. The model picks which segment to compress, and can decompress it afterwardInjects 4 tools including compress; an X reply: "Letting the model manage its own context beats one-cut summaries"
  2. One npm package connects 20+ assistants, closed-source ones includedThe README lists 22, including Claude Code and Codex; closed-source ones go through a certificate proxy
  3. Cache hits are steadier in very long tasksA linux.do user: "Cache hit rate is a bit better on billion, and it works better on very long tasks"
  4. Free and runs locally; conversations don't pass through anyone else's serverContext Mode's full-session compression is a hosted service; the Pro plan is $20/month

Who else is in the space

Similar productHow it differs from this one
Built-in compression in Claude Code / CodexShips with the host, and everyone uses it by defaultThe built-in one summarizes the whole session only when it's nearly full; this one compresses in small increments and can decompress
cortexkit/magic-contextThe most direct rival, 2,507 starsIt only supports OpenCode/Pi but has cross-session memory; this one only remembers a single session
Context ModeA 34K-star plugin plus a hosted gatewayIts full-session compression is paid and goes through a gateway ($20/month); this one is free and local
headroomlabs-ai/headroom79K stars, compresses tool output and logsIt compresses large chunks within a single request and doesn't touch conversation history; the two can be used together

Can it hold?Can't be defended: the idea is public and copyable, and Context Mode has already made a paid version; all it has left is its community and iteration speed.

Last two weeks · Stars / day
10-2810-3111-0311-0650011-09

How it happened

  1. First built opencode-acp, a context-trimming plugin for OpenCode (now 281 stars) ↗

  2. Created the billion-context repo, turning a single plugin into a proxy that works with every assistant ↗

  3. DeepSeek Harness's open-source release brought a plugin marketplace, and it was in the first batch listed; about 216 stars in Sep ↗

  4. Made the GitHub weekly list (3rd highest among TypeScript) with 698 stars, and stayed on the list every day for the next month ↗

  5. Rose to No. 8 on the GitHub overall monthly list, with about 3,800 stars in total ↗

  6. Hit the GitHub overall daily list for the first time (No. 14); 铁锤人's Chinese post got about 8,900 views ↗

    GitHub overall daily list (Nov 10 screenshot): it ranks 11th with 374 stars that day, on the same screen as repos from meta and vercel-labs; it was 14th when it first appeared on Nov 8
    铁锤人's Chinese post from Nov 8: explains how it works, and also relays a friend's hands-on test — after repeated multi-round compression it's still not very stable
  7. Climbed to No. 9 on the daily list; RoundtableSpace's English post got nearly 60K views; gained 500 stars that day ↗

    RoundtableSpace's English retelling on Nov 9: the three selling-point lines are copied straight from the repo description, with a note that "these numbers are the repo's own claims, untested"
  8. chuplung's English tutorial post got 540 likes and 49K views; a record 650 stars in a single day ↗

    The post that gained the most on Nov 10: packaged it as "an indie developer who cured Claude Code's usage limits", with an install tutorial

In detail

What it's like to use

Install one npm package and you get a bili command. bili claude, bili codex and bili pi each start the proxy and your original assistant together in one command, with no config files to touch; seven assistants, including Pi, OpenCode and Kimi, can also be installed as native plugins. The proxy gives the model four extra tools: compress folds a finished stretch of conversation into a summary, decompress expands it when the original is needed, search_context searches within summaries, and acp_status shows remaining headroom. When to compress and which segment is up to the model. There's also a web dashboard showing each fold, cache hits and tokens saved.

Why people choose it

The built-in compression in each assistant summarizes the whole conversation in one go when it's nearly full, and loses detail all at once. The most common line in X replies is "Letting the model manage its own context beats one-cut summaries." magic-context did this earlier, but only supports OpenCode and Pi; Context Mode's hosted gateway can also compress a whole session, but you have to sign up, conversations go through its servers, and it costs $20 a month. This one is free, local, and one package connects 20+ assistants, which is the easiest thing to repeat.

The doubts are concentrated too: some say "after enough compression it starts inventing its own jargon, and all the saved tokens go to decoding it"; others worry that rewriting requests invalidates the prompt cache and makes the bill higher.

Details of this surge and the discounts to apply

From October it was on the weekly and monthly lists every day, gaining 60–240 stars a day, driven by the Chinese community and the plugin marketplace. Only after it squeezed onto the overall daily list on Nov 8 did English X accounts notice it, and the next two days added 650 and 497 stars.

Money and how to follow

It doesn't charge, and only requires attribution in the product UI. What you can copy is the three numbers that can be repeated verbatim and "one command connects every assistant." What to avoid: relying on a proxy to rewrite requests means chasing every assistant upgrade, and hosts could build good compression themselves at any time. Context Mode proves some people will pay $20 a month for this, but that's a paid tier added onto an old 34K-star project; a small team is better off building what it lacks: cross-session project memory, and showing people the before-and-after difference of compression.

Its built-in session dashboard: when context grows to a certain point the model folds it back (a sawtooth); only 5% of the 869K window is used, with a 96% cache hit rate (the author's own session)
The closest paid rival, Context Mode: it sells full-session compression through a hosted gateway, Pro is $20/month for 10,000 requests; billion-context is free and runs locally