From budget-guard
Stops a session before it runs past a budget. Three figures are guarded, each with a limit you set: the session cost in dollars, the 5-hour plan window and the 7-day plan window. It says nothing until a figure nears its limit, then pins a status line and warns once; past the limit it refuses tool calls and asks before sending another prompt. /guard shows the state and changes the limits.
6 events · 10 calls
Ships in budget-guard. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callconfig.setprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startturn.completetool.callturn.startprompt.submitcommand.run{command=guard}Every mods API method its source calls, by namespace
afterregistersetusagegetsetabortaskstatustoastWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub arunjay4213/claude-mods --plugin budget-guard