idle-compactor
by intenex · ★ 1 · updated 2 days ago
0
Compacts an idle Claude Code session shortly before its 1-hour prompt cache expires, so coming back later re-sends a short summary instead of the whole conversation uncached.
Install
git clone https://github.com/ymnao/dotfilesclaude --plugin-dir ./dotfiles/claude/plugins/idle-compactor/pluginThen 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.runturn.startturn.completesession.compact- API calls
$.clock.every$.clock.now$.command.register$.command.run$.env.get$.session.compact$.session.id$.session.usage$.settings.read$.store.get$.store.set$.ui.log- Can see
compaction- Reach
- level 2 of 3 drives Claudereads env varsreads settingspersists 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/ymnao/dotfiles
- Path in repo
claude/plugins/idle-compactor/plugin- Author
- intenex @ymnao
- 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.