cskwork

Billion Context — Development skill for Claude Code

Development community

基本稳定可用 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上下文足矣)省.

How to install Billion Context

This entry records only its repository, not the path inside it, so there is no exact command to give. Open cskwork/billion-context and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Billion Context 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

Alternatives in Development

  • Semble — Fast and Accurate Code Search for Agents 6.1k ★
  • Code Review Graph — Local knowledge graph for Claude Code 3.7k ★
  • Openwolf — Sharper context 699 ★

README

billion-context

[English](./README.md) | [中文](./README.zh-CN.md)

Universal context-compression proxy for AI coding agents
Any agent that can set a base URL — zero per-agent adapter code.


📄 Paper / Preprint

📝 **The paper itself is open-sourced under the MIT License as part of the codebase (`paper/`). It is a living document — anyone may edit it; improvements are welcome via pull request.**

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.


npm license GitHub

npm install -g billion-context


`billion-context` sits between **any** agent and its model API, rewriting Anthropic/OpenAI streams with [acp-kernel](https://github.com/ranxianglei/acp-kernel) compression. The model decides **when** and **what** to compress into high-fidelity summaries — not a hard truncation limit.

Community

Discussion, help, and updates on QQ — one group covers all three projects (`billi