Claude Code mod
idle-compact
Compacts an idle interactive session shortly before its prompt cache expires, so coming back later doesn't re-read the whole context uncached.
Install
/plugin marketplace add davidar/claude-idle-compact
/plugin install idle-compact@idle-compactMods install like plugins. Run /reload-plugins or start a new session to load it.
What it can access
- Reach
- L2Writes or runs: drives Claude, reads mod state, draws
- Hooks
turn.startturn.completesession.endsession.start
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- davidar/claude-idle-compact
- Folder
.- Marketplace
idle-compact- Author
- David Roberts
- License
- MIT
- Last updated
- 9 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is idle-compact?
Compacts an idle interactive session shortly before its prompt cache expires, so coming back later doesn't re-read the whole context uncached. It is a mod for Claude Code, from davidar/claude-idle-compact on GitHub.
What can the idle-compact mod access?
Its widest reach is "writes or runs" (drives Claude, reads mod state, draws). Like any mod, it runs with your permissions.
How do I install idle-compact?
Inside Claude Code (v2.1.287 or later), run /plugin marketplace add davidar/claude-idle-compact and then /plugin install idle-compact@idle-compact.
Is idle-compact popular?
davidar/claude-idle-compact has 3 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 9 October 2026.
More context & usage mods
cache-ttl-timer
3WQGGSEY/cache-ttl-timer
A prompt-cache countdown in the prompt footer, beside the model and effort: how long until your next message has to re-cache the whole conversation.
usage-bars
3pepperonas/usage-bars
Your Claude Code 5-hour and 7-day usage limits as animated bars under the prompt: percent, reset countdown, pace mark, projection, per-answer delta, styles (Pac-Man, beer, tank, battery, hourglass)
taxi-meter
9devbrother2024/devbrothers-mods
프롬프트 위 택시 미터기 패널: 세션 요금(API 정가 환산)과 방금 요청 요금, 모델 이름·차종·할증 키, 5시간·주간 한도와 리셋 시각, /meter·/receipt
autotel
8jagreehal/autotel
OpenTelemetry for Claude Code plugins: adds $.autotel in the engine.create fold so a plugin records spans, traces every hook dispatch with the chain beneath it, and shows each tool call's settled duration on its row. Exports OTLP/HTTP to OTEL_EXPORTER_OTLP_ENDPOINT (autotel-devtools claude sets it).
rich-terminal
9xiaolai/claude-rich-terminal
Mermaid diagrams drawn inside Claude Code replies, and a truecolor status line under the prompt with a Token Weather forecast of the context window.
cache-maxxer
8vayaan-labs/cache-maxxer
Shows the prompt cache's countdown and hit rate above the input box, explains every cache break and cache expiry, and can keep the cache warm to cut Claude Code cost
Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.