idle-compact

by David Roberts · ★ 0 · updated 2 days ago

Status linevalidates

0

Compacts an idle interactive session shortly before its prompt cache expires, so coming back later doesn't re-read the whole context uncached.

install idle-compact

Install

/plugin marketplace add davidar/claude-idle-compact
/plugin install idle-compact@idle-compact

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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.completesession.end
API calls
$.clock.after$.clock.now$.session.compact$.session.usage$.ui.log$.ui.status
Reach
level 2 of 3 drives 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/davidar/claude-idle-compact
Path in repo
repository root
Author
David Roberts @davidar
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.