NodeNestor/claude-rolling-context
12 stars · Last commit 2026-03-10
Rolling context compression for Claude Code — never hit the context wall. Auto-compresses old messages while keeping recent context verbatim. Zero config, zero latency. Works as a Claude Code plugin.
README preview
# Rolling Context for Claude Code [](LICENSE) [](https://www.python.org)  A transparent proxy that gives Claude Code **rolling context compression** — old messages get automatically summarized while recent messages stay fully verbatim. You never hit the context wall, and you never lose important details. **Zero config.** Uses your existing Claude Code auth. No API key needed. Just install and forget. > Claude Code's built-in `/compact` replaces your **entire** conversation with a lossy summary. After a few compactions, you're summarizing a summary of a summary. This plugin only compresses old messages — recent context stays untouched. ## `/compact` vs Rolling Context | | `/compact` (built-in) | Rolling Context | |---|---|---| | What gets compressed | Everything | Only old messages | | Recent context | Summarized (lossy) | **Kept verbatim** | | When it runs | Manual or at threshold | Automatic, background | | Latency impact | Blocks until done | Zero — async |