All Claude Code modsAgulhas-Labs/claude-plugins
cache-guard
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.
- Events hooked: 8
- API methods referenced: 14
- Access from classified calls: L2, writes or runs: runs processes, writes the prompt box, reads files, persists state, draws
- Static scan, not a runtime test
Install hint
/plugin install cache-guard@anthropic-plugin-directoryFrom 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, drawsValidation
Passed with warningsListed 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
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/Agulhas-Labs--claude-plugins--cache-guard/)
[](https://mods.aidojo.si/mods/Agulhas-Labs--claude-plugins--cache-guard/)