Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ishuagrawalv0.1.0MITIn 1 marketplace
Pause a prompt or background agent before it runs too long, uses too many tokens, or uses too much of your usage limit.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it decides whether tool calls may run; sees, changes or blocks tool calls; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.

Pauses work before it costs more than you meant to spend. It only watches and asks: Claude is never told about the budget, so it never cuts corners to fit.
/plugin install budget-fence --marketplace ishuagrawal/claude-code-mods
Other ways to install are in the repository README.
/fence to open its pane, and Turn on the fence (it starts off).| Where | What it shows |
|---|---|
Pane (/fence, or ⋯ above the prompt) | The fence switch, the current prompt's time, tokens and shares, every limit, background agents, and recent prompts |
| Row above the prompt | While work runs: the limit closest to its cap as a bar and used / limit, one row per running prompt or agent |
Each background agent is fenced on its own, from when it starts. Default limits for new agents sets what each starts with; Edit limits on an agent's row changes that agent alone. An agent at its limit asks the same question, naming the agent. Stopped, it reports what it has and does nothing more.
Each prompt is measured on its own, with any helper agents it starts in the foreground. Changes apply at once, including to the prompt that is running. Each session keeps its own limits; a new session starts from the ones you set last.
| Limit | Command | Pauses after |
|---|---|---|
| Working time | /fence time 20m | 20 minutes of work |
| Tokens | /fence tokens 500k | 500k tokens (input, cache writes and output; cache reads are left out) |
| Session share | /fence session 10% | 10% of the 5-hour limit, on plans that have one |
| Weekly share | /fence weekly 2% | 2% of the weekly limit |
/fence on, /fence off and /fence reset switch and clear the fence. Start with background to set the limits for new agents: /fence background time 10m tokens 200k.
Usage limits are reported in whole percents. The fence learns how much each model's work costs from earlier prompts, and estimates finer shares once it has; estimates and rounded readings are marked ~.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub ishuagrawal/claude-code-mods --plugin budget-fence