Claude Code mod
proactive-compact-mod
Lets the agent prepare and choose its own compaction instead of suffering auto-compact: asks it to save its memories at a context threshold, and gives it tools to read its context and compact itself.
Install
/plugin marketplace add Apemb/proactive-compact-mod
/plugin install proactive-compact-mod@proactive-compact-modMods install like plugins. Run /reload-plugins or start a new session to load it.
What it can access
- Reach
- L2Writes or runs: changes config, drives Claude, reads settings, reads mod state, draws
- Sees
- mcp__proactive-compact-mod__context_usage calls, mcp__proactive-compact-mod__compact_session calls, compaction
- Hooks
session.starttool.callturn.completesession.compactcommand.run
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- Apemb/proactive-compact-mod
- Folder
.- Marketplace
proactive-compact-mod- Author
- Antoine Boileau
- License
- MIT
- Last updated
- 16 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is proactive-compact-mod?
Lets the agent prepare and choose its own compaction instead of suffering auto-compact: asks it to save its memories at a context threshold, and gives it tools to read its context and compact itself. It is a mod for Claude Code, from Apemb/proactive-compact-mod on GitHub.
What can the proactive-compact-mod mod access?
Its widest reach is "writes or runs" (changes config, drives Claude, reads settings, reads mod state, draws). It sees mcp__proactive-compact-mod__context_usage calls, mcp__proactive-compact-mod__compact_session calls, compaction. Like any mod, it runs with your permissions.
How do I install proactive-compact-mod?
Inside Claude Code (v2.1.287 or later), run /plugin marketplace add Apemb/proactive-compact-mod and then /plugin install proactive-compact-mod@proactive-compact-mod.
More context & usage mods
pro-limits
rodbegbie/rod-claude-mods
Gauges for the 5-hour and weekly Claude usage limits above the prompt, toggled with /pro-limits
productivity-hud
AceleraTalent/Mods-Claude
HUD de productividad: contexto, costo, burn-rate y presupuesto de la sesión, sobre el prompt y en un panel.
prime-ctbar
settanun-prime/prime-studio-mods
Context window breakdown and prompt-cache countdown above the prompt with interactive compact button; /prime-ctbar (or /ctbar) toggles it.
progress-bar
DamianoSrb/Mods
Always-visible animated progress band above the prompt: flow progress, turn activity, RAM in use and per-agent progress with tokens.
powerup
betobetico/powerup
/powerups: las lecciones de Claude Code en un panel con botones, en el terminal y en la app de escritorio. Sin tokens: el plugin responde a cada clic sin pasar por el modelo. Las lecciones se descargan con tu clave de acceso y se renuevan cada semana. Mod (function hooks); Claude Code 2.1.284 o posterior.
prompt-cache-control
jakerains/claudemods
Prompt-cache meter above the Claude Code prompt: how many tokens each request read from, wrote to and sent past the cache, a live countdown to the cache's expiry, and what to do about it (keep going, compact or clear). The TTL follows Claude Code's own rules for your account (1 hour on a Claude subscription, 5 minutes on an API key, cloud provider or usage credits, plus the TTL variables and setting) and corrects itself from request timing. /cache opens a per-turn table.
Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.