proactive-compact-mod

by Antoine Boileau · ★ 0 · updated 16 Oct 2026

Status lineGuardsCommandsTools & agentsvalidates

0

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 proactive-compact-mod

Install

/plugin marketplace add Apemb/proactive-compact-mod
/plugin install proactive-compact-mod@proactive-compact-mod

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.starttool.callturn.completesession.compactcommand.run
API calls
$.clock.after$.command.register$.config.list$.config.set$.prompt.submit$.session.compact$.session.usage$.settings.read$.state.get$.state.set$.tool.register$.ui.status$.ui.toast
Can see
mcp__proactive-compact-mod__context_usage callsmcp__proactive-compact-mod__compact_session callscompaction
Reach
level 2 of 3 changes configdrives Claudereads settingsreads mod statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/Apemb/proactive-compact-mod
Path in repo
repository root
Source commit
de90f83 the exact code the scan read
Author
Antoine Boileau @Apemb
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.