idle-compact

by Michael McKnight · ★ 0 · updated 26 days ago

Status lineGuardsCommandsPromptvalidates

0

Runs /compact while the session sits idle waiting on background work, right before the prompt cache expires.

install idle-compact

Install

/plugin marketplace add ShadowDog007/claude-mods
/plugin install idle-compact@shadow-claude-mods

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
session.startcommand.runsession.endsession.measureturn.startturn.stepturn.completetool.callprompt.submit
API calls
$.agent.list$.clock.after$.clock.now$.command.register$.env.get$.session.compact$.settings.read$.state.get$.state.set$.ui.log$.ui.status$.ui.toast
Can see
every tool callevery prompt
Reach
level 2 of 3 drives Claudereads env varsreads settingsreads 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/ShadowDog007/claude-mods
Path in repo
plugins/idle-compact
Source commit
8c437ab the exact code the scan read
Author
Michael McKnight @ShadowDog007
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.

More from ShadowDog007/claude-mods

context-bar

ShadowDog007/claude-mods

A coloured bar above the prompt showing what fills the context window, by category, and how much the last turn and its steps added.

★ 0PanesBandsCommands