All Claude Code modstgralex/claude-mods
cost-guard
Holds a message that would cost more than your token or dollar limit (cold prompt cache or a very large message), explains why, and asks before sending. Can also keep the cache warm during a break.
cost-guard reaches L2 (writes or runs) and passed claude plugin validate.
- Events hooked: 7
- API methods referenced: 20
- Access from classified calls: L2, writes or runs: drives Claude, writes the prompt box, reads env vars, reads settings, reads mod state, persists state, draws
- Reads mod state: the scan does not record whose state, so this does not show that it reads another mod’s values
- Static scan, not a runtime test
Install hint
/plugin install cost-guard --marketplace tgralex/claude-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
L2 Writes or runsdrives Claude, writes the prompt box, reads env vars, reads settings, reads mod state, 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, session.measure, turn.start, turn.complete, prompt.submit, command.run {command=cost-guard}, ui.render {component=AbovePrompt}- API calls
$.clock.every, $.clock.now, $.command.register, $.env.get, $.model.fork, $.prompt.fill, $.prompt.submit, $.session.id, $.session.model, $.session.usage, $.settings.read, $.state.get, $.state.set, $.store.delete, $.store.get, $.store.set, $.ui.log, $.ui.resolve, $.ui.status, $.ui.toast- Validation
- Passed
- Scanned revision
b15c24012c73- Marketplace passed
- claude-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 tgralex/claude-mods
- read-aloudReads Claude's replies and plans aloud, whole or just the text you selected, with a Stop button while it read…
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/tgralex--claude-mods--cost-guard/)
[](https://mods.aidojo.si/mods/tgralex--claude-mods--cost-guard/)