cc-strategic-compaction
by Sergio Palacio · ★ 3 · updated 4 days ago
0
Compacts the conversation when the rules say the moment is right, judged against the conversation itself at the end of a turn.
Install
/plugin marketplace add sergiopalacio/cc-strategic-compaction/plugin install cc-strategic-compaction@cc-strategic-compactionThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.callcommand.runturn.completeui.messageui.render- API calls
$.agent.list$.clock.every$.clock.now$.command.register$.config.list$.config.set$.env.get$.fs.read$.fs.write$.model.fork$.session.compact$.session.id$.session.messages$.session.turns$.session.usage$.state.get$.state.set$.tool.register$.ui.log$.ui.open$.ui.resolve$.ui.toast- Draws
Pane- Can see
mcp__cc-strategic-compaction__compact callsevery tool call- Reach
- level 2 of 3 other: $.state.getother: $.state.setwrites fileschanges configdrives Claudereads filesreads env varsreads the transcriptdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/sergiopalacio/cc-strategic-compaction
- Path in repo
- repository root
- Source commit
5a24567the exact code the scan read- Author
- Sergio Palacio @sergiopalacio
- License
- No license declared — ask the author before reusing code.
- 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.