What is cache-guard?
cache-guard is a Claude Code mod by Agulhas-Labs that warns once before a message that will cost far more than usual: a large Claude Code context whose prompt cache has expired, or a model or effort change that resets it. Shows the estimated. It is listed under Security and has 2 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | Agulhas-Labs |
| Repository | Agulhas-Labs/claude-plugins |
| Popularity | 2 GitHub stars |
| Category | Security |
| Security | Review before installing (76/100) |
| Rank | #1,075 of 5,272 Claude Code mods; #128 in Security |
| License | Apache-2.0 |
| Last commit | 2026-10-17 |
| Hooks | 8 events |
| Sees | classic hooks, every prompt, every tool call |
| Draws on | AbovePrompt |
Is cache-guard safe to install?
cache-guard scores 76/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; watches every prompt or event. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.fs.read | reads files |
$.process.run | runs processes |
$.prompt.fill | writes the prompt box |
$.session.cwd | |
$.session.id | |
$.session.usage | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.invalidate | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install cache-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/Agulhas-Labs/claude-plugins claude plugin validate ./claude-plugins/plugins/cache-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Agulhas-Labs/claude-plugins && claude plugin install cache-guard@agulhas-labs
Or ask Claude to set it up
Paste this into Claude Code and it installs cache-guard for you:
Install the "cache-guard" Claude Code mod from https://github.com/Agulhas-Labs/claude-plugins/tree/main/plugins/cache-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Agulhas-Labs/claude-plugins
This repository has 2 Claude Code mods on MCPMods.
- logbook: Keeps a live local page for a long Claude Code task: what needs you, what was built, what was verified, and what was dec (Review before installing)