cache-ttl-compact
by buddypia · ★ 0 · updated 28 days ago
0
Shows a countdown to prompt-cache expiry in the status line and runs /compact while the cache is still warm, where Claude Code's idle compaction does not
Install
/plugin marketplace add buddypia/cache-ttl-compact/plugin install cache-ttl-compact@cache-ttl-compactThen 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
turn.startturn.stepturn.completesession.compactsession.end- API calls
$.clock.every$.clock.now$.env.get$.session.compact$.session.usage$.session.version$.settings.read$.ui.log$.ui.status$.ui.toast- Can see
compaction- Reach
- level 2 of 3 drives Claudereads env varsreads settingsdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/buddypia/cache-ttl-compact
- Path in repo
- repository root
- Source commit
190edc5the exact code the scan read- Author
- @buddypia
- 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.