ranxianglei/billion-context

A context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).上下文压缩插件,兼顾小窗口(100k上下文足矣)省token(省5倍token)和超长会话(数月级别几十亿token单会话)。billion-context is all you need

Open original source ↗

Older snapshot: check the original source for current information.

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

English | 中文 Context-compression plugin — billion-context is all you need. small context windows (100K is enough) · 5× fewer tokens · month-long single sessions (billions of tokens) · high compression quality npm install -g billion-context --prefix=/.local                                             QQ Group: 1056132097 (full) 1108730198 (full) 1129868472 (open) A production-scale longitudinal study: 4.5 months, three hosts, 174,327 model calls, 18.76B cumulative input tokens (24.7B across all hosts), zero window violations on 204,800-token models, marathon sessions of 8,584–12,049 calls. billion-context sits between any agent and its model API, rewriting Anthropic/OpenAI streams with acp-kernel compression. The model decides when and what to compress into high-fidelity summaries — not a hard truncation limit. Long coding sessions blow up context. Each provider charges per token, and once you pass the context window the session degrades…

ranxianglei/billion-context on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-10-29T17:47:33.731Z

Inside the original README — Document outline
  1. billion-context
  2. Community
  3. 📄 Paper / Preprint
  4. Why
  5. How it works
  6. Context-management tools
  7. Which do I need?
  8. Install
  9. Quickstart
  10. Option 1 — Native plugin (bili plugin install pi / omp / opencode / dsh / kimi / hermes / zcode)
  11. Option 2 — Launcher (bili pi / bili codex / bili claude / bili omp / bili opencode / bili hermes / b
  12. Option 3 — URL change (/bili/ prefix)

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Links from the README

References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.

Documentation belongs to its respective authors. Reported project/model license: Other. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

A context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).上下文压缩插件,兼顾小窗口(100k上下文足矣)省token(省5倍token)和超长会话(数月级别几十亿token单会话)。billion-context is all you need

Repository facts

Owner
ranxianglei
Primary language
TypeScript
Stars
1,616
Forks
131
Open issues + pull requests
176
License
Other
Archived
No
Default branch
master
Created
2026-08-06T08:27:34.000Z
Last push
2026-10-10T12:00:03.000Z

Topics and intended use

Owner-supplied topics: dsh-plugin

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-10-17T12:08:02.445Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

freeCodeCamp/freeCodeCamp

morluto/rea

openclaw/openclaw

nilbuild/developer-roadmap

deepseek-ai/deepseek-harness

anomalyco/opencode