idle-compact

by David Roberts · ★ 1 · updated 4 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

git clone https://github.com/StartupBros-com/hov-stack
claude --plugin-dir ./hov-stack/mods/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.endsession.start
API calls
$.clock.after$.clock.now$.session.compact$.session.id$.session.usage$.state.get$.state.set$.ui.log$.ui.status
Reach
level 2 of 3 drives Claudereads 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/StartupBros-com/hov-stack
Path in repo
mods/idle-compact
Source commit
b48670d the exact code the scan read
Author
David Roberts @StartupBros-com
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.

More from StartupBros-com/hov-stack

agent-radar

StartupBros-com/hov-stack

One live line above the prompt per running subagent: time, tool count and what it's doing. /radar shows every agent and its messages.

★ 1PanesBandsGuards

install-preflight

StartupBros-com/hov-stack

/preflight shows, in plain language, what a plugin or mod can do before you install it, with the raw hooks: and calls: lines as the authority.

★ 1PanesCommands

loop-breaker

StartupBros-com/hov-stack

Stops Claude repeating the same failing tool call. Counts identical calls that error or are refused, hints after the second, refuses the next after the threshold with a reason Claude can act on, and shows a worsening face above the prompt with a one-key Stop and rethink.

★ 1BandsGuards

read-ceiling-pager

StartupBros-com/hov-stack

A Read whose window would exceed Claude Code's token cap is clamped to the lines that fit, and the result says where to continue. Turns a failed round into a successful partial read with an explicit continuation.

★ 1Guards

x-mcp-budget

StartupBros-com/hov-stack

Caps what Claude's X (Twitter) MCP reads cost. List, search and timeline calls ask for at most 10 results, every post and user returned is priced and counted once per UTC day, and once the day's estimate reaches the budget further X MCP calls are refused until midnight UTC.

★ 1GuardsAutomation