idle-compact
by Michael McKnight · ★ 0 · updated yesterday
0
Runs /compact while the session sits idle waiting on background work, right before the prompt cache expires.
Install
/plugin marketplace add ShadowDog007/claude-mods/plugin install idle-compact@shadow-claude-modsThen 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.startsession.endsession.measureturn.startturn.stepclassic.Stop- API calls
$.agent.list$.clock.after$.clock.now$.session.compact$.state.get$.state.set$.ui.log$.ui.status$.ui.toast- Can see
classic hooks- Reach
- level 2 of 3 other: $.state.getother: $.state.setdrives Claudedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/ShadowDog007/claude-mods
- Path in repo
plugins/idle-compact- Author
- Michael McKnight @ShadowDog007
- 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.