claudemods

All Claude Code modsAgulhas-Labs/claude-plugins

cache-guard

A Claude Code mod in Agulhas-Labs/claude-plugins In Anthropic directory

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 cost, and offers a handoff file written by a cheap model in the background so you can /clear instead. While background work runs, it wakes an idle session just before its cache expires, so the result lands on a warm cache.

cache-guard reaches L2 (writes or runs) and passed claude plugin validate with warnings.

Install hint

/plugin install cache-guard@anthropic-plugin-directory

From Anthropic's plugin directory. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsruns processes, writes the prompt box, reads files, persists state, draws

Validation

Passed with warnings

Listed under Prompt cache mods for Claude Code.

View the source on GitHub Back to the list

What the scan recorded

Anthropic directory
Listed as cache-guard@anthropic-plugin-directory
Observed events
classic hooks, every tool call, every prompt
Hooks
session.end, classic.SessionStart, classic.UserPromptSubmit, turn.complete, tool.call, ui.render {component=AbovePrompt}, session.start {cwd=/"."/}, session.start, session.end {reason=clear|resume}, prompt.submit, ui.render {component=AbovePrompt}
API calls
$.clock.after, $.clock.every, $.clock.now, $.fs.read, $.process.run, $.prompt.fill, $.session.cwd, $.session.id, $.session.usage, $.store.get, $.store.set, $.ui.invalidate, $.ui.resolve, $.ui.toast
Validation
Passed with warnings
Scanned revision
efaa5c703207
Marketplace passed
agulhas-labs

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

Badge for your README

Reach badge for cache-guard Validation badge for cache-guard

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/Agulhas-Labs--claude-plugins--cache-guard-reach.svg)](https://mods.aidojo.si/mods/Agulhas-Labs--claude-plugins--cache-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/Agulhas-Labs--claude-plugins--cache-guard-validates.svg)](https://mods.aidojo.si/mods/Agulhas-Labs--claude-plugins--cache-guard/)