From budget-fence
Pause a prompt or background agent before it runs too long, uses too many tokens, or uses too much of your usage limit.
13 events · 15 calls
Ships in budget-fence. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.checktool.callprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startcommand.run{command=fence}prompt.submitturn.startturn.stepsession.measureagent.spawnturn.completetool.checktool.callui.render{component=AbovePrompt}ui.focus{component=Pane, requestId=budget-fence}ui.messageui.render{component=Pane, requestId=budget-fence}ui.render{component=Pane, requestId=budget-fence-history}Every mods API method its source calls, by namespace
nowsleepregistersurfacesusagegetsetdeletegetsetaskinvalidateopenresolvetoastWhere 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 ishuagrawal/claude-code-mods --plugin budget-fence