budget

budget is a command for Claude Code from vladm3105/aidoc-flow-framework. It costs 33 tokens per session (910 once invoked), scanned A, original, MIT.

A setting editor for choosing how much work documentation-related skills should do: maximum, standard, or minimum.

In plain words
What is it for?
It helps configure review passes, checklist depth, and response detail for documentation tasks.
Why use it?
It lets you trade review depth and output length for lower usage. It does not enforce a hard token limit.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the aidoc-flow plugin — 52 skills, 12 commands, 11 agents, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/vladm3105/aidoc-flow-framework/budget
Clone the repo
git clone --depth 1 https://github.com/vladm3105/aidoc-flow-framework

Made for: Claude Code.

Or install aidoc-flow, the plugin that ships this one along with the rest of its 52 skills, 12 commands, 11 agents, 1 hook.

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/vladm3105/aidoc-flow-framework/budget.svg)](https://agentmods.dev/commands/vladm3105/aidoc-flow-framework/budget)
Your own site
<a href="https://agentmods.dev/commands/vladm3105/aidoc-flow-framework/budget"><img src="https://agentmods.dev/badge/commands/vladm3105/aidoc-flow-framework/budget.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 910 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.00033 $0.00910
Opus 5 $0.00016 $0.00455
Sonnet 5 $0.00007 $0.00182
Haiku 4.5 $0.00003 $0.00091

Measured 5d ago against content hash 806f15c15e79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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.

platforms/claude-code-plugin/commands/budget.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Budget

Focused editor for the budget.* keys of .claude/aidoc-flow.config.yaml. For the full schema and every other setting, see ${CLAUDE_PLUGIN_ROOT}/docs/CONFIG.md or run /aidoc-flow:configure.

Honest caveat (read this first)

This is a behavior knob, not a token meter.

The profile tells the doc-* skills how much work to do per artifact — how many review passes, how deep the checklists, how verbose the output. The plugin has no token-budget enforcement hook: nothing stops a Claude Code session from spending tokens, and this command cannot impose a hard cap.

  • max — multi-pass review, deeper checklists, longer outputs
  • standard — default; what every skill does today
  • min — single-pass, terse, skip optional checks

Empirically, min reduces tokens 40–60% on most doc-* skills versus standard, by skipping passes the skill itself owns. That is the real cost lever this command offers. If you need an actual cap, use Claude Code's session-level controls.

This command is advisory in the same way /aidoc-flow:model is advisory: it sets the user's preference so skills can read it and adjust behavior, but the runtime guarantees live with Claude Code, not with the plugin.

Instructions

  1. Read current state — load .claude/aidoc-flow.config.yaml if it exists; otherwise start from the defaults documented in ${CLAUDE_PLUGIN_ROOT}/docs/CONFIG.md.

  2. Print the caveat banner (one paragraph; reuse the language above so the user sees it inside the running command, not only in this file).

  3. Prompt for the default profileAskUserQuestion (single-select):

    • max — multi-pass, deeper, longer
    • standard — default (recommended for production work)
    • min — single-pass, terse (recommended for test/scratch projects)

    Show the current value as the first option.

  4. Offer per-layer overrides — ask AskUserQuestion (yes/no): "Set a different profile for specific layers? (e.g. max for BRD, min for IPLAN scratch.)"

Read the full file on GitHub · 97 lines

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. 5d ago First seen · 97 lines · 33 tokens per session scan A 806f15c15e79

Subscribe to this mod's changes

budget is a command published in the GitHub repository vladm3105/aidoc-flow-framework (17 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 910 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.