budget

budget is a command for Claude Code from atuljha23/holocron. It costs 35 tokens per session (370 once invoked), scanned A, original, MIT.

A command for setting and checking limits on the money spent on coding-agent token use. It supports separate limits for one session, one day, and one month, with notices as usage approaches or passes them.

In plain words
What is it for?
Setting session or daily spending caps, checking the configured budget, clearing all caps, and receiving usage reminders near the limits.
Why use it?
It helps you notice and control agent costs without stopping your work automatically. You can inspect the current limits or remove them.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the holocron plugin — 11 skills, 24 commands, 14 agents, 6 hooks shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add atuljha23/holocron
Claude Code
/plugin install holocron

Made for: Claude Code.

Or install holocron, the plugin that ships this one along with the rest of its 11 skills, 24 commands, 14 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for budget

README.md
[![agentmods](https://agentmods.dev/badge/commands/atuljha23/holocron/budget.svg)](https://agentmods.dev/commands/atuljha23/holocron/budget)
Your own site
<a href="https://agentmods.dev/commands/atuljha23/holocron/budget"><img src="https://agentmods.dev/badge/commands/atuljha23/holocron/budget.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00370
Opus 5 $0.00017 $0.00185
Sonnet 5 $0.00007 $0.00074
Haiku 4.5 $0.00003 $0.00037

Measured 6d ago against content hash 4c696bf3fbcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

budget scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/budget.md · 39 lines

What it actually says

/holocron:budget

Set a budget and get nudged when you're approaching it.

Examples

# Set per-session cap at $2 and daily cap at $10
node "${CLAUDE_PLUGIN_ROOT}/scripts/holocron-cli.js" budget --session 2.00 --daily 10.00

# Just see the current budget
node "${CLAUDE_PLUGIN_ROOT}/scripts/holocron-cli.js" budget

# Clear all budgets
node "${CLAUDE_PLUGIN_ROOT}/scripts/holocron-cli.js" budget --clear

With $ARGUMENTS provided, pass them through:

node "${CLAUDE_PLUGIN_ROOT}/scripts/holocron-cli.js" budget $ARGUMENTS

How it fires

Budget lives at ~/.holocron/budget.json. On each Stop event, the usage logger checks your current session vs. the cap, and today's aggregate vs. the daily cap. If you're past 80% session or 100% daily, you get an advisory additionalContext message — never blocking.

Sensible starting values

  • Per-session: $1.00–$3.00 for routine dev; higher for exploratory research.
  • Daily: $5.00–$20.00 for a working day of Claude Code usage.
  • Monthly: use only if you're billing to a budget owner.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 39 lines · 0 tokens per session scan A 4c696bf3fbcf

Subscribe to this mod's changes

budget is a command published in the GitHub repository atuljha23/holocron (2 stars, last pushed 4mo ago), licensed MIT. It adds 35 tokens to every session and 370 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.