Claude Context Pruner
ProductivityAdvanced
Claude Context Pruner analyzes the current conversation context before each tool use and identifies low-value segments that can be safely summarized or removed. It preserves recent changes, active file contents, and user instructions while compressing older outputs, repeated patterns, and verbose tool results. This keeps long sessions productive without hitting context window limits.
contextoptimizationtokenslong-sessionshooks
Installation
claude config add hooks.pre-tool-use "npx claude-context-pruner"
Terminal Preview
Claude Context Pruner
About Claude Context Pruner
Claude Code plugins extend the built-in capabilities of Claude Code by adding new integrations, productivity features, and development tools. As a Productivity plugin suitable for Advanced-level users, Claude Context Pruner integrates seamlessly into your existing Claude Code workflow to help you get more done with less effort.