ClaudeCodeMod

All shelves / Mods / Usage

budget-guard

By VedantAndhale

budget-guard is a Claude Code usage mod by VedantAndhale.

Keeps a prompt from being sent while the 5-hour or weekly usage is at or over your limit, until you send it again, and shows the limit with /budget.

Draws

Install

The marketplace name is claude-pro-kit.

In Claude Code
/plugin marketplace add VedantAndhale/claude-pro-kit
/plugin install budget-guard@claude-pro-kit
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.0
License
MIT
Repo stars
10
Last change
2026-10-03

What it can reach

  • Draws in the session
  • Reads usage or context figures

Before a prompt starts a turn, it checks the 5-hour and weekly usage readings Claude Code reports. If either is at or over your limit, 90 percent by default, that prompt is not sent, and you are told why. Sending the same message again goes through. Until Claude Code has reported a reading in this session, nothing is stopped. /budget shows the limit and the current readings. /budget 80 sets the limit, kept across sessions. /budget on or off switches it. The README does not name a file for that limit.

One plugin from VedantAndhale/claude-pro-kit. The root README says prompt-polish is the only mod in that kit that makes a model call, and budget-guard makes none. The plugin folder has no README. These lines are the repository README. context-budget draws context by category and asks before a settings file is written. This one watches the 5-hour and weekly readings and stops the prompt when either is at or over your limit.

Demo

The budget-guard section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.measureWhen usage is measured
  • command.runWhen you run its slash command/budget
  • prompt.submitWhen you send a prompt

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /budgetBudget guard: /budget shows it · /budget <1-100> sets the limit · /budget on|off

Files

The author's source, 3 files. They load when you open them.

Facts

Author
VedantAndhale
Category
Usage
Marketplace
claude-pro-kit
Repo
VedantAndhale/claude-pro-kit
Folder
plugins/budget-guard
Version
0.1.0
License
MIT
Repo stars
10
Last change
2026-10-03
Language
TypeScript
Files
5

Other mods in Usage

context-xrayVedantAndhaleDraws a pane with the exact breakdown of what fills the context window, opened with /xray.output-dietVedantAndhaleTrims what Claude reads from a long shell, search, or subagent result, saves the full text, and counts the savings on the status line.pro-hudVedantAndhaleDraws the 5-hour session, the week, and context above the prompt in the desktop app, plus this turn and finished tool calls as one line.session-receiptVedantAndhaleOpens a pane of every turn's tokens, with the five that spent the most, and toasts after a turn that used 3 or more session points.skill-dietVedantAndhaleLists skills unused lately in this project by name only, so their descriptions leave the prompt, and counts those characters on the status line.turn-budgetVedantAndhaleStops a turn that passes the limit you set, writes a handoff, and copies it for a new session, leaving the old one in place. It can ask first instead.context-lensArunjay4213Pins how full the context window is and what the last turn added, and /context-lens opens the breakdown by category.quota-meterArunjay4213Pins the 5-hour and 7-day plan limits when they are reported, with the reset and whether the current pace fills them first.token-ledgerArunjay4213Pins this session's cost and the last turn's tokens and cache hit, and /ledger lists each turn.mod-packaz9713Holds a commandSeven mods in one install: a context forecast, a cache countdown, a follow-up queue, a plain retell, two holds on risky commands, and Snake.taxi-meterdevbrother2024Draws this session's cost as a taxi fare, in won at API list price, with context fill and the plan limits.agent-routeralexandernicholsonHolds a commandAssigns a model and effort to each subagent role from your endpoint's catalog, and draws that model beside the prompt.
All 183 in Usage