ClaudeCodeMod

All shelves / Mods / Usage

usage-budget

By erikdarlingdata

usage-budget is a Claude Code usage mod by erikdarlingdata.

Toasts when the 5-hour or 7-day window crosses a percent, and refuses a new subagent past 95% by default.

DrawsHolds a command

Install

The marketplace name is erikdarling.

In Claude Code
/plugin marketplace add erikdarlingdata/claude-plugins
/plugin install usage-budget@erikdarling
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
1.1.1
License
MIT
Repo stars
25
Last change
2026-10-14

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Holds a command

Needs a Claude Code version that loads plugin hook modules. Toasts fire at 70%, 85%, and 95% by default, once each per window. From 85% by default, Claude also gets a one-time note to stop starting optional work and write its handoff. A new subagent is refused when either window reaches 95% by default. It also checks pace: when 7-day usage runs 10 or more points ahead of the share of the week that has passed, you get a toast, Claude gets a note, and new subagents are refused until the week catches up, if usage stays flat. Each of these has an option, and 0 turns it off. The status line shows the percents, and the plugin writes them to usage-budget/latest.json in the Claude config folder so a session can read them.

The install name is usage-budget. This page adds the author's name. The marketplace name is erikdarling. The marketplace also holds open-asks, subagent-wall, and other mods. This one installs on its own. The marketplace source is ./plugins/usage-budget. The toast and the refused subagent are why this page files it under usage. cost-meter draws session cost, context fill, and the 5-hour and 7-day windows on the status line, plus what each turn cost. A budget, off until you set one, asks before the next tool call. This one toasts as a window crosses a percent and refuses a new subagent past 95% by default. The source adds the usage note beside the next tool result.

Demo

The usage-budget section of the README: toasts as the 5-hour and 7-day windows cross a percent, a one-time note to Claude, new subagents refused past the last percent, the pace check, and the figures written to latest.json.
Screenshot of the author's GitHub page.

What it hooks into

  • session.measureWhen usage is measured
  • tool.callAround a tool call, where it can hold one
  • agent.spawnWhen a subagent starts

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

Files

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

Facts

Author
erikdarlingdata
Category
Usage
Marketplace
erikdarling
Repo
erikdarlingdata/claude-plugins
Folder
plugins/usage-budget
Version
1.1.1
License
MIT
Repo stars
25
Last change
2026-10-14
Language
TypeScript
Files
5

Other mods in Usage

leitstanddominikmartnDraws free disk space and context fill above the prompt, and names a hook of yours that just blocked a tool call.working-memoryHangghostDraws the context window as a brain: tool calls light regions, it fills as context grows, and compact plays a sleep sweep.jev-pilotAkramovic1Asks TypeSafe's Jev, through OpenRouter, to set each turn's effort, the subagent model, and the one skill a prompt needs, with a pilot that says what it chose.cmd-dietVedantAndhaleAdds quiet flags to noisy shell commands before they run, so Claude reads the short output, and counts the quieted commands on the status line.read-capVedantAndhaleHolds a commandRefuses a whole-file read over 1,000 lines once, points Claude at an outline of that file, and counts the reads it capped.reread-guardVedantAndhaleHolds a commandSkips a repeat read of a file that has not changed, tells Claude to use the copy it has, and counts the re-reads it skipped.tool-dietVedantAndhaleLists tools unused lately by name only, so their descriptions leave every request, and counts how many are on demand.write-guardVedantAndhaleHolds a commandLets the first full rewrite of an existing file through, holds the next one so Claude uses Edit, and counts the rewrites it held.usage-hudronanworksDraws model, effort, context, and the 5-hour and weekly limits in a panel, and a pixel crab above the prompt that acts out the tool.cache-maxxervayaan-labsDraws the prompt-cache time left and hit rate above the input, says why the cache was rebuilt, and can send a short request to keep it warm.session-hudofeklevy11Draws four cards above the prompt: context left, the 5-hour limit, prompt clocks, and what the session cost.token-pilotDigital-ThreadsHolds a commandFor Token Pilot, which cuts what Claude reads from code, draws tokens saved and the 5-hour and 7-day limits above the prompt, and outlines a big file Read.
All 183 in Usage