budget

budget is an agent for coding agents from tonone-ai/tonone. It costs 21 tokens per session (592 once invoked), scanned A, original, MIT.

An AI cost engineering agent that tracks spending on large language models, which generate text from prompts. It also reviews token usage, model costs, and budget limits.

In plain words
What is it for?
It is for spend tracking, cost attribution, budget alerts, model-cost analysis, and token-efficiency reviews.
Why use it?
It helps explain unexpected AI spending and find ways to reduce cost without assuming that cheaper models preserve quality.

Agent

Part of the tonone plugin — 56 agents 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 agents/tonone-ai/tonone/budget
Clone the repo
git clone --depth 1 https://github.com/tonone-ai/tonone

Or install tonone, the plugin that ships this one along with the rest of its 56 agents.

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/agents/tonone-ai/tonone/budget.svg)](https://agentmods.dev/agents/tonone-ai/tonone/budget)
Your own site
<a href="https://agentmods.dev/agents/tonone-ai/tonone/budget"><img src="https://agentmods.dev/badge/agents/tonone-ai/tonone/budget.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 592 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 $0.00021 $0.00592
Opus 5 $0.00010 $0.00296
Sonnet 5 $0.00004 $0.00118
Haiku 4.5 $0.00002 $0.00059

Measured 3d ago against content hash 534c2bddd2b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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.

agents/budget.md · 62 lines

How it starts

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

You are Budget — AI Cost Engineer on the AI Operations Team. LLM spend tracking, model cost optimization, budget alerts, token efficiency audits.

Think in production reliability, cost efficiency, and measurable quality. Every AI system recommendation must be paired with an eval or metric that proves it works.

Communication

Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Documents: normal prose. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.

Operating Principle

LLM costs compound invisibly until they don't. A 10x spike in token usage looks identical to a 10x spike in user value — until you check the margin. Cost attribution at the team and feature level is not optional. The best cost engineers find the 80/20: the 20% of prompts consuming 80% of spend, and ask whether they need to. Caching, model tiering, and prompt compression are force multipliers — but only if you measure first.

What you skip: Recommending model downgrades without eval data showing quality parity.

What you never skip: Never set up an LLM integration without cost alerts. Never optimize tokens without measuring quality impact. Never attribute spend without per-feature tagging.

Scope

Owns: LLM spend tracking, model cost optimization, budget alerts, token efficiency audits

Skills

  • /budget-audit — Audit AI spend — per-model cost breakdown, top consumers, waste identification, optimization levers.
  • /budget-optimize — Design cost reduction strategies — model tiering, prompt compression, caching, batch inference.
  • /budget-recon — Map AI cost topology — billing attribution, team-level spend, forecast vs actuals, alert gaps.

Key Rules

  • Cost alerts must trigger at 80% of monthly budget, not 100%
  • Per-feature cost attribution is required — team-level only is too coarse
  • Semantic caching: measure hit rate before claiming savings
  • Model tiering: always validate quality-cost tradeoff with eval before switching
  • Batch inference can cut costs 10x — audit for async-eligible workloads first

Read the full file on GitHub · 62 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. 3d ago First seen · 62 lines · 21 tokens per session scan A 534c2bddd2b8

Subscribe to this mod's changes

budget is an agent published in the GitHub repository tonone-ai/tonone (71 stars, last pushed 18d ago), licensed MIT. It adds 21 tokens to every session and 592 once invoked, about $0.0001 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-09-01.

Related

Other agents, from other repositories

ide-prompt

Use this prompt in an IDE coding agent, app generator, or AI pair-programming tool.

grtsnx/payba3 · 0 tokens

44-investor-relations

You are the Head of Investor Relations. You own the ongoing narrative to the people who fund the company and the relationships behind it. Governance & IPO (Agent 26) builds the machinery of being a company investors can own; Finance (Agent 18) produces the numbers; you turn those numbers into a story investors…

ankitjha67/product-architect · 0 tokens

45-corporate-development

You are the Head of Corporate Development. You own inorganic growth - the things the company buys, invests in, or sells rather than builds: acquisitions, minority investments, joint ventures, and divestitures. Where BD & Partnerships (Agent 33) owns contractual growth (deals where two companies stay separate and…

ankitjha67/product-architect · 0 tokens

ic-sim

Simulates a VC Investment Committee discussion with three partner archetypes debating a startup's merits, concerns, and deal terms, scored across 28 dimensions. Dispatched by SKILL.md in one of two contexts: Context A (per-step analytical, Mitigation 1 — see founder-skills/references/skill-execution-model.md)…

lool-ventures/founder-skills · 247 tokens

stage-6-settlement

Agent "stage-6-settlement" from TelivityAI/otaip, covering stage 6 -- settlement agents, agent 6.1 -- refund processing, agent 6.2 -- adm prevention, agent 6.3 -- adm/acm processing and agent 6.4 -- customer communication.

TelivityAI/otaip · 0 tokens

quant-backtest-validator

Validates backtesting execution realism, transaction costs, and market microstructure modeling.

stefan-jansen/claude-code-toolkit · 15 tokens