turn-budget

turn-budget is a Claude Code mod by VedantAndhale that when one turn uses more than +5 session points or 500,000 uncached input tokens, writes a handoff from exact session data and copies it for a new session; the old session is never cleared.

Updated 2026-10-09

What is turn-budget?

turn-budget is a Claude Code mod by VedantAndhale that when one turn uses more than +5 session points or 500,000 uncached input tokens, writes a handoff from exact session data and copies it for a new session; the old session is never cleared. It is listed under Cost & usage and has 10 GitHub stars.

TypeClaude code mod
AuthorVedantAndhale
RepositoryVedantAndhale/claude-pro-kit
Popularity10 GitHub stars
CategoryCost & usage
SecurityReview before installing (64/100)
Rank#532 of 5,272 Claude Code mods; #95 in Cost & usage
LicenseMIT
Last commit2026-10-09
Stars this week+4
Hooks7 events
Seesevery tool call
Draws onnothing

Is turn-budget safe to install?

turn-budget scores 64/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.writewrites files
$.process.runruns processes
$.session.append
$.session.cwd
$.session.messagesreads the transcript
$.store.getkeeps its own state
$.store.setkeeps its own state
$.turn.abortdrives Claude
$.ui.askdraws interface
$.ui.copydraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install turn-budget?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/VedantAndhale/claude-pro-kit
    claude plugin validate ./claude-pro-kit/plugins/turn-budget
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add VedantAndhale/claude-pro-kit && claude plugin install turn-budget@claude-pro-kit

Or ask Claude to set it up

Paste this into Claude Code and it installs turn-budget for you:

Install the "turn-budget" Claude Code mod from https://github.com/VedantAndhale/claude-pro-kit/tree/main/plugins/turn-budget. Run claude plugin validate on it first and show me what it can access before you enable it.

More from VedantAndhale/claude-pro-kit

This repository has at least 9 Claude Code mods on MCPMods.

  • agent-diet: Runs search-only subagents (Explore by default) on Haiku instead of your main model; a model Claude asks for still wins, (Low risk)
  • answer-pane: Explain, plan and ELI5 pages drawn natively in a side pane: diagrams in place, plan decisions as buttons, Respond fills (Review before installing)
  • budget-guard: Holds a prompt back once your 5-hour or weekly usage is at or over a limit you set (90% by default); sending it again go (Low risk)
  • cache-clock: Shows how long the prompt cache stays warm, and when it expires, exactly how many tokens your next message will re-send (Low risk)
  • cmd-diet: Adds quiet flags to noisy shell commands before they run (git status, pytest, cargo, npm install, mvn, curl, wget, docke (Low risk)
  • collision-guard: Asks before Claude edits a file another chat on this machine changed in the last 30 minutes. Each chat keeps its own sma (Review before installing)
  • compact-keeper: After a compaction, adds one message with exact facts from before it: your latest prompt in full, up to 4 earlier ones, (Low risk)
  • context-xray: A pane with the exact breakdown of what fills Claude's context: system prompt, tools, memory files, skills, messages, an (Low risk)