budget-guard

by kurushiba · ★ 0 · updated today

BandsCommandsPromptvalidates

0

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

install budget-guard

Install

git clone https://github.com/kurushiba/claude-mods
claude --plugin-dir ./claude-mods/final/budget-guard

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.startcommand.runprompt.composeagent.spawnturn.stepui.render
API calls
$.command.register$.session.usage$.state.get$.state.set$.store.delete$.store.get$.store.set$.ui.invalidate$.ui.log$.ui.resolve$.ui.toast
Draws
AbovePrompt
Can see
subagent spawns
Reach
level 1 of 3 reads 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/kurushiba/claude-mods
Path in repo
final/budget-guard
Source commit
74f3286 the exact code the scan read
Author
@kurushiba
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.

More from kurushiba/claude-mods

model-router

kurushiba/claude-mods

調査系のサブエージェントだけ Haiku で動かし、メインのモデルを固定する

★ 0BandsCommandsPrompt

test-pilot

kurushiba/claude-mods

コードが変わっていなければ npm test を実行せずに前回の結果を返す

★ 0PanesBandsGuards