agent-context-pruner

by 9Tech Solutions · ★ 0 · updated 28 days ago

Toastsvalidates

0

Replaces Claude Code's compaction summary with decision-model pruning: stale tool calls and results are dropped or truncated, everything kept stays verbatim.

install agent-context-pruner

Install

/plugin marketplace add 9Tech-Solutions/agent-context-pruner
/plugin install agent-context-pruner@agent-context-pruner

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.compactturn.complete
API calls
$.env.get$.http.fetch$.session.compact$.session.usage$.ui.log$.ui.toast
Can see
compaction
Reach
level 3 of 3 networkdrives Claudereads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/9Tech-Solutions/agent-context-pruner
Path in repo
apps/claude-code-plugin/plugin
Source commit
b63d53f the exact code the scan read
Author
9Tech Solutions @9Tech-Solutions
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.