claudemods

All Claude Code modskurushiba/claude-mods

budget-guard

A Claude Code mod in kurushiba/claude-mods

予算の70%を超えたらサブエージェントを Haiku に、90%を超えたらメインを1段下のモデルに切り替える

budget-guard reaches L1 (reads) and passed claude plugin validate on Claude Code 2.1.304.

To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.

Access

L1 Readsreads mod state, persists state, draws

Validation

Passed on Claude Code 2.1.304

View the source on GitHub Back to the list

What the scan recorded

Observed events
subagent spawns
Hooks
session.start, command.run {command=budget}, prompt.compose, agent.spawn, turn.step, ui.render {component=AbovePrompt}
API calls
$.command.register, $.session.usage, $.state.get, $.state.set, $.store.delete, $.store.get, $.store.set, $.ui.invalidate, $.ui.log, $.ui.resolve, $.ui.toast
Validation on 2.1.304
Passed
Scanned revision
74f32868e6c6

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 kurushiba/claude-mods

Badge for your README

Reach badge for budget-guard Validation badge for budget-guard

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/kurushiba--claude-mods--budget-guard-reach.svg)](https://mods.aidojo.si/mods/kurushiba--claude-mods--budget-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/kurushiba--claude-mods--budget-guard-validates.svg)](https://mods.aidojo.si/mods/kurushiba--claude-mods--budget-guard/)