cache-keeper
by bStyler · ★ 0 · updated 16 days ago
Keeps a big chat's prompt cache warm, warns before an expensive cold restart, shows every local chat on one board (/board), and hands a chat off to a fresh one (/handoff). Based on Nate Herk's cache-keeper (MIT).
Install
/plugin marketplace add bStyler/claude-mods/plugin install cache-keeper@claude-super-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.startclassic.SessionStartsession.endprompt.submitturn.startturn.stepturn.completesession.compactsession.measuretool.checktool.callcommand.runui.closeui.render- API calls
$.agent.list$.clock.after$.clock.every$.clock.now$.clock.sleep$.command.list$.command.register$.command.run$.env.get$.fs.exists$.fs.read$.fs.write$.model.fork$.prompt.fill$.prompt.submit$.session.compact$.session.cwd$.session.id$.session.model$.session.surface$.session.usage$.store.delete$.store.get$.store.keys$.store.set$.ui.ask$.ui.invalidate$.ui.open$.ui.resolve$.ui.toast- Draws
AbovePromptPaneSessionMode- Can see
classic hooksevery promptcompactionevery tool call- Reach
- level 2 of 3 writes filesdrives Claudewrites the prompt boxreads filesreads env varspersists 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/bStyler/claude-mods
- Path in repo
cache-keeper- Source commit
b5b64a2the exact code the scan read- Author
- @bStyler
- 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 bStyler/claude-mods
goal-meter
bStyler/claude-mods
A progress bar for /goal built from Claude's own task plan: tasks done out of the plan, elapsed time, an ETA at the goal's own pace, and every chat's goal in /goals. Fork of Nate Herk's goal-meter (MIT).
lean-explore
bStyler/claude-mods
Replaces the built-in Explore subagent with a lean one on Haiku (Read/Grep/Glob only, short answers) and counts what it actually did: searches, reads, tokens delegated to Haiku, file text kept out of the main chat. /lean-explore on|off|stats|rescan.
memory-guard
bStyler/claude-mods
Spots sessions worth remembering, nudges once to run /memorize, and queues the ones that ended without it for the next session. Files into your wiki if you have one, else Claude Code's own auto-memory.
mods-bar
bStyler/claude-mods
One shared row above the prompt where the Copy chat, TL;DR, Explore and Memory guard parts sit side by side
tldr
bStyler/claude-mods
Highlights in yellow the few paragraphs of a long reply worth reading, says the reply in one sentence, and puts an on/off button above the prompt
Related mods
Other mods in Panes, close to this one by stars.