idle-compact
by Michael McKnight · ★ 0 · updated 26 days ago
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.startcommand.runsession.endsession.measureturn.startturn.stepturn.completetool.callprompt.submit- API calls
$.agent.list$.clock.after$.clock.now$.command.register$.env.get$.session.compact$.settings.read$.state.get$.state.set$.ui.log$.ui.status$.ui.toast- Can see
every tool callevery prompt- Reach
- level 2 of 3 drives Claudereads env varsreads 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/ShadowDog007/claude-mods
- Path in repo
plugins/idle-compact- Source commit
8c437abthe exact code the scan read- 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.