Home / Claude Code mods / Context & memory / agent-context-pruner

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.

Updated 2026-10-24

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.

TypeClaude code mod
Author9Tech-Solutions
Repository9Tech-Solutions/agent-context-pruner
Popularityno public popularity data yet
CategoryContext & memory
SecurityReview before installing (76/100)
Rank#4,617 of 9,397 Claude Code mods; #409 in Context & memory
LicenseMIT
Last commit2026-10-24
Hooks2 events
Seescompaction
Draws onnothing

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.

CheckResult
Sends data over the networkReview
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.env.getreads env vars
$.http.fetchnetwork requests
$.session.compactdrives Claude
$.session.usage
$.ui.logdraws interface
$.ui.toastdraws interface

How do I install agent-context-pruner?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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.