usage-guard
by Marnel8 · ★ 0 · updated 11 days ago
0
Asks before a large or token-heavy prompt is sent, showing your 5-hour and weekly usage and an estimate of what it may cost
Install
/plugin marketplace add Marnel8/claude-mods-/plugin install usage-guard@local-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startsession.measureprompt.submitturn.startturn.completecommand.runui.render- API calls
$.clock.now$.command.register$.prompt.fill$.prompt.submit$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.resolve- Draws
CommandOutputAbovePrompt- Can see
every prompt- Reach
- level 2 of 3 drives Claudewrites the prompt boxreads mod statepersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/Marnel8/claude-mods-
- Path in repo
mods/usage-guard- Source commit
7e3812cthe exact code the scan read- Author
- @Marnel8
- License
- No license declared — ask the author before reusing code.
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.