What is agent-context-pruner?
agent-context-pruner is a Claude Code mod by 9Tech-Solutions that replaces Claude Code's compaction summary with decision-model pruning: stale tool calls and results are dropped or truncated, everything kept stays verbatim. It is listed under Context & memory and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | 9Tech-Solutions |
| Repository | 9Tech-Solutions/agent-context-pruner |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | Review before installing (76/100) |
| Rank | #4,617 of 9,397 Claude Code mods; #409 in Context & memory |
| License | MIT |
| Last commit | 2026-10-24 |
| Hooks | 2 events |
| Sees | compaction |
| Draws on | nothing |
Is agent-context-pruner safe to install?
agent-context-pruner scores 76/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; reads environment variables. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.env.get | reads env vars |
$.http.fetch | network requests |
$.session.compact | drives Claude |
$.session.usage | |
$.ui.log | draws interface |
$.ui.toast | draws interface |
How do I install agent-context-pruner?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/9Tech-Solutions/agent-context-pruner claude plugin validate ./agent-context-pruner/apps/claude-code-plugin/plugin
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add 9Tech-Solutions/agent-context-pruner && claude plugin install agent-context-pruner@agent-context-pruner
Or ask Claude to set it up
Paste this into Claude Code and it installs agent-context-pruner for you:
Install the "agent-context-pruner" Claude Code mod from https://github.com/9Tech-Solutions/agent-context-pruner/tree/main/apps/claude-code-plugin/plugin. Run claude plugin validate on it first and show me what it can access before you enable it.