Home / Claude Code mods / Security / cache-guard

cache-guard

cache-guard is a Claude Code mod by justmytwospence that keeps the prompt cache warm while you are away, asks before a prompt that would re-cache a large conversation, and with Jev (TypeSafe) keeps the context lean: trims large tool output and.

Updated 2026-10-14

What is cache-guard?

cache-guard is a Claude Code mod by justmytwospence that keeps the prompt cache warm while you are away, asks before a prompt that would re-cache a large conversation, and with Jev (TypeSafe) keeps the context lean: trims large tool output and. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorjustmytwospence
Repositoryjustmytwospence/claude-cache-guard
Popularityno public popularity data yet
CategorySecurity
SecurityHigh risk (36/100)
Rank#3,651 of 5,272 Claude Code mods; #394 in Security
LicenseMIT
Last commit2026-10-14
Hooks11 events
Seesclassic hooks, compaction, every prompt, every tool call
Draws onnothing

Is cache-guard safe to install?

cache-guard scores 36/100 on the MCPMods security check: High risk. Things to review: sends data over the network; starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 2 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
Sends data over the networkReview
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.command.register
$.command.rundrives Claude
$.env.getreads env vars
$.fs.readreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.model.forkdrives Claude
$.process.runruns processes
$.prompt.fillwrites the prompt box
$.prompt.submitdrives Claude
$.session.id
$.session.messagesreads the transcript
$.session.model
$.session.root
$.session.usage
$.ui.askdraws interface
$.ui.logdraws 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/justmytwospence/claude-cache-guard
    claude plugin validate ./claude-cache-guard/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/justmytwospence/claude-cache-guard && claude --plugin-dir ./claude-cache-guard/.

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/justmytwospence/claude-cache-guard. Run claude plugin validate on it first and show me what it can access before you enable it.