Claude Code plugin

Claude Rolling Context

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.

Install

Inside Claude Code
/plugin marketplace add https://github.com/NodeNestor/nestor-plugins

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/NodeNestor/claude-rolling-context.git

From the README

Rolling Context for Claude Code

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.

It's also a cost story: every token you carry in context gets re-billed on every turn (at cache-read rates), so an unmanaged session's input cost grows with the *square* of its length. Capping the prefix makes it linear — the math works in relative units and holds for every model, and it matters more the bigger the context window, not less.

/compact vs Rolling Context

The economics: why capping the prefix matters

No price cards needed — the argument works in relative units that hold for every Claude model. Take the model's fresh-input-token rate as 1×. The API bills:

Claude Code re-sends the entire conversation on every turn. Even with caching working perfectly, each turn costs prefix size × 0.1. So a session's total input cost is the sum of the prefix over all turns:

- Unmanaged context (big window, auto-compact only near the limit): the prefix grows every turn, so total cost grows with the *square* of session length. A 1M window doesn't fix this — it just lets the prefix run to 900K+ before anything stops it, and every one of those tokens costs 0.1× again on every single turn.
- Rolling context: the prefix is capped between TARGET and TRIGGER, so total cost grows *linearly*.

The…
Read the full README on GitHub

How plugins work

  • A plugin bundles slash commands, subagents, skills, hooks, MCP servers and status lines so they install together.
  • Add the marketplace inside Claude Code with /plugin marketplace add NodeNestor/claude-rolling-context, then run /plugin to pick what to install.
  • You can turn a plugin off again from /plugin without deleting anything.
Claude Code docs

Details

Language
Python
License
MIT
Last updated
4 September 2026
Topics
ai-agentai-codinganthropicclaudeclaude-codeclaude-code-extensionclaude-code-plugincontext-compressioncontext-managementcontext-windowllm-contextprompt-compression

FAQ

What is Claude Rolling Context?

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. It is a plugin for Claude Code, from NodeNestor/claude-rolling-context on GitHub.

How do I install Claude Rolling Context?

Run /plugin marketplace add https://github.com/NodeNestor/nestor-plugins inside Claude Code, then follow the setup in the README.

Is Claude Rolling Context popular?

NodeNestor/claude-rolling-context has 33 GitHub stars and 10 forks. It was last updated on 4 September 2026.

More plugins & marketplaces

Browse the most popular Claude Code mods, all plugins & marketplaces, or the skills and MCP server directories.