When a Claude Code chat fills up, Claude squashes the whole thing into one summary. Small details get lost: a colour code, a deadline, a rule you set an hour ago.
billion-context is a free, open-source plugin that fixes this. It folds old messages away a little at a time, and Claude can unfold them again when you ask about something old. The project says it uses about 5x fewer tokens and can keep one session going for a month.
1. Install it inside Claude Code
Paste these two lines into Claude Code, one at a time:
/plugin marketplace add ranxianglei/billion-context
/plugin install billion-context@billion-context
Or install it from the terminal
npm install -g billion-context
Then start Claude Code through it:
bili claude
2. Work as normal
You don't need to do anything else. Keep chatting. Old parts of the chat get folded into short notes on their own.
3. Ask about old things
What did we decide about the button colour earlier?
It looks back through the folded notes and pulls up the exact answer.
When it helps most
- One long project in a single chat
- Lots of small rules and decisions you don't want to repeat
- You keep hitting "conversation compacted"
Tips
- It is a new, fast-changing project. Review it before using it on client work.
- It also works with Codex and other coding agents.
- Repo: github.com/ranxianglei/billion-context
Some links are affiliate links: I may earn a commission at no cost to you. Not affiliated with Anthropic.
