All Claude Code modssfrodilla/claude-code-mods
cost-guard
Watches session and daily spend, warns when the context grows large, and holds a prompt once when the prompt cache has expired on a big context.
cost-guard reaches L1 (reads) and passed claude plugin validate.
- Events hooked: 4
- API methods referenced: 13
- Access from classified calls: L1, reads: writes the prompt box, persists state, draws
- Static scan, not a runtime test
Install hint
/plugin install cost-guard --marketplace sfrodilla/claude-code-modsFrom the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.
Access
L1 Readswrites the prompt box, persists state, drawsValidation
PassedListed under Prompt cache mods for Claude Code, Context and usage meters for Claude Code.
View the source on GitHub Back to the list
What the scan recorded
- Observed events
- every prompt
- Hooks
session.start, turn.complete, prompt.submit, command.run {command=cost-guard}- API calls
$.clock.after, $.clock.every, $.clock.now, $.command.register, $.prompt.fill, $.session.model, $.session.usage, $.store.delete, $.store.get, $.store.keys, $.store.set, $.ui.status, $.ui.toast- Validation
- Passed
- Scanned revision
ff2bad623623- Marketplace passed
- sfrodilla-mods
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.
More from sfrodilla/claude-code-mods
- pre-push-reviewReviews unpushed commits against REVIEW_GUIDELINES.md before Claude runs git push
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/sfrodilla--claude-code-mods--cost-guard/)
[](https://mods.aidojo.si/mods/sfrodilla--claude-code-mods--cost-guard/)