cost-guard

by Santiago Fernandez · ★ 1 · updated 5 days ago

Status lineCommandsPromptvalidates

0

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.

install cost-guard

Install

/plugin marketplace add sfrodilla/claude-code-mods
/plugin install cost-guard@sfrodilla-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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.startturn.completeprompt.submitcommand.run
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
Can see
every prompt
Reach
level 1 of 3 writes the prompt boxpersists 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/sfrodilla/claude-code-mods
Path in repo
cost-guard
Source commit
ff2bad6 the exact code the scan read
Author
Santiago Fernandez @sfrodilla
License
Apache-2.0
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.

More from sfrodilla/claude-code-mods

pre-push-review

sfrodilla/claude-code-mods

Reviews unpushed commits against REVIEW_GUIDELINES.md before Claude runs git push

★ 1Status lineGuardsCommands