cache-guard

by Rohitp · ★ 0 · updated 7 days ago

PanesBandsStatus lineCommandsPromptwarnings

0

Counts down the prompt cache, warns before it goes stale, and can keep it warm with cheap cache-read pings.

install cache-guard

Install

/plugin marketplace add Rohitp/claude-mods
/plugin install cache-guard@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.startsession.endprompt.submitprompt.editturn.completesession.measuresession.compactturn.stepcommand.runui.render
API calls
$.clock.every$.clock.now$.command.register$.model.fork$.session.compact$.state.get$.state.set$.store.get$.store.set$.ui.log$.ui.open$.ui.resolve$.ui.status$.ui.toast
Draws
PaneAbovePrompt
Can see
every promptcompaction
Reach
level 2 of 3 drives Claudereads mod statepersists 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/Rohitp/claude-mods
Path in repo
cache-guard
Source commit
50cd428 the exact code the scan read
Author
@Rohitp
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 Rohitp/claude-mods

context-lens

Rohitp/claude-mods

A pane and a one-line band showing what fills the context window, by category and by biggest item.

★ 0PanesBandsCommands

lessons

Rohitp/claude-mods

Spots repeated failures and re-fetch loops as they happen, nudges the model, and turns them into small priced rules you approve.

★ 0PanesBandsGuards