ClaudeCodeMod

All shelves / Mods / Usage

turn-budget

By VedantAndhale

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

Stops 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.

Draws

Install

The marketplace name is claude-pro-kit.

In Claude Code
/plugin marketplace add VedantAndhale/claude-pro-kit
/plugin install turn-budget@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.4.0
License
MIT
Repo stars
10
Last change
2026-10-09

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Reads this turn's file edits
  • Sees tool calls
  • Calls another program on this machine

budget-guard looks before a turn starts. This one watches one turn while it runs, because a long turn can use a big share of the session between two of your messages. It checks before each model request in a turn, subagents included. The default limits, whichever comes first, are 5 more points of the 5-hour session, or 500,000 uncached input tokens. Cache reads are not counted. Without a subscription there is no session reading, so only the token limit applies. At the limit, by default, the turn stops before the next request. A running command is never cut off. It writes a handoff from exact session data, with no model call: your last prompts, the todo list, the files Claude edited, and the last thing Claude said. It is saved under ~/.claude/handoffs/, and copied to the clipboard as the first message for a new session. The old session is never cleared. A toast tells you the handoff is copied and where it is saved. The handoff never touches the repository. git is only read, git status --short and git diff --stat, never written to. /handoff does the same at any time. /turn-budget ask shows a question at the limit instead. Stop here ends the turn. Anything but a clear Continue counts as Stop. A question nobody can answer, such as a -p run, never stops a turn. /turn-budget shows the settings. /turn-budget 8 sets the points. /turn-budget tokens 1000000 sets the token limit. /turn-budget handoff or ask chooses what happens at the limit. off and on switch it. Answers are toasts. While a turn runs, the status line reads like turn budget 3/5 pts. The README does not name a file for the limits, and it does not say how to delete the handoff files.

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 turn-budget makes none. The plugin folder has no README. These lines are the repository README. budget-guard keeps a prompt from being sent before the turn, once the 5-hour or weekly reading is at your limit. compact-handoff writes a handoff and replaces the conversation with it. This one watches the turn, and the old session stays as it was. git status and git diff are the local programs.

Demo

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

What it hooks into

  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold one
  • command.runWhen you run its slash command/handoff/turn-budget
  • session.measureWhen usage is measured
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • turn.stepAt each step of a turn

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

Slash commands 2

  • /turn-budgetTurn budget: /turn-budget · <points> · tokens <n> · handoff|ask · off|on
  • /handoffWrite a handoff from this session (no model call) and copy it for a new session; this one is kept

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/turn-budget
Version
0.4.0
License
MIT
Repo stars
10
Last change
2026-10-09
Language
TypeScript
Files
6

Other mods in Usage

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.keepalivealexandernicholsonDraws a prompt-cache bar for each conversation, and can keep an idle cache warm or compact it before it expires.hudhoobnnDraws model, context, and plan-usage gauges above the prompt, with git, the running tools, and a one-line task summary.limits-meterice-lfernandesDraws plan limits and context above the prompt, in tokens and percent, with the model, effort, and a toast on a costly switch.elizabeth-progressYaxin9LuoDraws Elizabeth from Gintama walking a context-window bar above the prompt, with the usage split, turns left, and rate limits.spending-effort-with-jevYaxin9LuoAsks TypeSafe's Jev which /effort level a message needs, sends that message to api.typesafe.ai, and switches on your OK.cache-paneldanyuchnAfter 50 idle minutes, draws a prompt-cache line and a panel to keep it warm, ping it once, or compact, with a cost for each.
All 183 in Usage