Billion Context — Development skill for Claude Code
基本稳定可用 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
- Model-Driven Incremental Hierarchical Compression: Training-Free Multi-Generational Context Management for Long-Lived Coding Agents (English, v0.2)
📝 **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 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
Related Skills
Token Saver Stats
Show token-saver compression statistics and savings
Tokens
Show the Monomind token usage dashboard — reports spend and call counts for today, week, 30days, or month
Claude Code Token Usage
Where your Claude Code tokens and dollars go — per project, then inside a single session. Local-only, stdlib P
Token Sipping Mode
Claude Code skill: delegate the legwork, own the verdict. Budget discipline for long agent sessions.
Decant
Local-first analysis of Claude Code and Codex sessions: token spend, context windows, files touched, and cost.
Sanduhr F R Claude
Native Windows 11 + macOS glass widget that projects when you'll hit your Claude usage cap — burn-rate, pace m
Related Agents
Conversation Compacter
Compacts long conversations into ~300 token summaries preserving critical context, todos, file paths, and deci
Context Optimizer
Meta utility agent for token and context optimization. Spawn when needing to compress agent prompts, optimize
Part 19: Repowise — Codebase Intelligence For Coding Agents
60% fewer tokens. 4x faster. Your coding agents stop guessing and start knowing. ---