Home / Claude Code mods / Security / cache-guard

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.

Updated 2026-10-17

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.

TypeClaude code mod
AuthorAgulhas-Labs
RepositoryAgulhas-Labs/claude-plugins
Popularity2 GitHub stars
CategorySecurity
SecurityReview before installing (76/100)
Rank#1,075 of 5,272 Claude Code mods; #128 in Security
LicenseApache-2.0
Last commit2026-10-17
Hooks8 events
Seesclassic hooks, every prompt, every tool call
Draws onAbovePrompt

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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.fs.readreads files
$.process.runruns processes
$.prompt.fillwrites the prompt box
$.session.cwd
$.session.id
$.session.usage
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.invalidatedraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install cache-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)