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.
npx skills add JeremyDev87/codingbuddy --skill cost-budgetgit clone --depth 1 https://github.com/JeremyDev87/codingbuddyWrote 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.
[](https://agentmods.dev/skills/jeremydev87/codingbuddy/cost-budget)<a href="https://agentmods.dev/skills/jeremydev87/codingbuddy/cost-budget"><img src="https://agentmods.dev/badge/skills/jeremydev87/codingbuddy/cost-budget/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jeremydev87/codingbuddy/cost-budget"><img src="https://agentmods.dev/badge/skills/jeremydev87/codingbuddy/cost-budget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00053 | $0.02624 |
| Opus 5.5 | $0.00021 | $0.01050 |
| Sonnet 5.5 | $0.00011 | $0.00525 |
| Haiku 4.5 | $0.00005 | $0.00262 |
Grade A, and why
cost-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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 349 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cost Budget Management
Overview
Autonomous AI workflows can consume unbounded resources without guardrails. A single runaway loop — autopilot, ralph, or a multi-wave taskMaestro session — can burn through API credits before anyone notices.
Core principle: Every autonomous workflow must have a cost ceiling. No budget means unlimited spend.
Iron Law:
NO AUTONOMOUS EXECUTION WITHOUT A DECLARED BUDGET
If no budget is set, warn before starting. If budget is exceeded, pause and require override.
When to Use
- Starting any autonomous workflow (autopilot, ralph, ultrawork, taskMaestro)
- Running parallel agents across multiple panes or worktrees
- Multi-session tasks expected to exceed a few dollars
- Any workflow where cost visibility matters to the user
- Setting up per-project or per-team cost guardrails
When NOT to Use
- Single interactive conversations (cost is negligible)
- Quick one-off questions or file reads
- Workflows where the user explicitly opts out of budget tracking
Cost Tracking Protocol
Data Collection Points
Cost data is collected at three levels:
| Level | Scope | Data Source | Granularity |
|---|---|---|---|
| Session | Single Claude Code session | Token usage from API responses | Per-request |
| Wave | One taskMaestro wave (N parallel panes) | Aggregated session costs per pane | Per-wave |
| Project | All sessions in a project directory | Cumulative across sessions | Running total |
Cost Estimation
Cost = (input_tokens × input_price) + (output_tokens × output_price)
Model pricing (per 1M tokens):
opus: input=$15.00 output=$75.00
sonnet: input=$3.00 output=$15.00
haiku: input=$0.25 output=$1.25
Note: Prices are approximate and should be updated when model pricing changes. The skill defines the protocol, not hardcoded prices.
Collection Methods
- Environment variables (preferred):
export COST_BUDGET_USD=10.00 # Total budget in USD export COST_BUDGET_TOKENS=5000000 # Alternative: token-based budget export COST_BUDGET_SCOPE=project # session | wave | project
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.
- 3mo ago First seen · 349 lines · 53 tokens per session scan A be5cd8b4b8bc
cost-budget is a skill published in the GitHub repository JeremyDev87/codingbuddy (30 stars, last pushed 7mo ago), licensed MIT. It adds 53 tokens to every session and 2,624 once invoked, about $0.0002 per session on Opus 5.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-30.
cost-budget compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cost-budgetJeremyDev87/codingbuddy | Skill | 30 | 7mo ago | MIT | A | 53 | Claude Code, Codex |
| energy-procurementhashgraph-online/awesome-codex-plugins | Skill | 1.6k | 2d ago | Apache-2.0 | A | 93 | Claude Code, Codex |
| cost-trackingericrisco/rsc-harness | Skill | 682 | 5d ago | MIT | A | 91 | Claude Code, Codex |
| swapper-depositswapperfinance/swapper-toolkit | Skill | 850 | 14d ago | MIT | A | 158 | Claude Code |
| financetravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 48 | Claude Code |
| investment-memo-generatortravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 37 | Claude Code |
| ascend-webhookshookdeck/webhook-skills | Skill | 104 | 3d ago | MIT | A | 61 | Claude Code, Codex |