cache-keeper

by oioi555 · ★ 0 · updated yesterday

PanesBandsStatus lineCommandsPromptvalidates

0

Context, quota and prompt-cache meters above the prompt; while the session is idle on a 1-hour cache, keeps it alive and compacts before it lapses, holding off system sleep meanwhile (Linux, Windows, macOS).

install cache-keeper

Install

/plugin marketplace add oioi555/claude-code-mods
/plugin install cache-keeper@oioi555

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.startsession.endprompt.submitturn.startturn.completeturn.stepsession.measuresession.compactcommand.runui.render
API calls
$.clock.after$.clock.every$.clock.now$.command.register$.env.get$.model.fork$.process.run$.process.spawn$.session.compact$.session.usage$.settings.read$.state.get$.state.set$.store.get$.store.set$.ui.close$.ui.log$.ui.open$.ui.resolve$.ui.status
Draws
AbovePromptPane
Can see
every promptcompaction
Reach
level 2 of 3 other: $.process.spawnother: $.state.getother: $.state.setruns processesdrives Claudereads env varsreads settingspersists 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/oioi555/claude-code-mods
Path in repo
plugins/cache-keeper
Source commit
1dc533a the exact code the scan read
Author
@oioi555
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.