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 agentmods add skills/jeremydev87/codingbuddy/cost-budgetnpx 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.svg" alt="Measured on agentmods" 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 | $0.00053 | $0.02624 |
| Opus 5 | $0.00026 | $0.01312 |
| Sonnet 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 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.
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.
- 3d ago First seen · 349 lines · 53 tokens per session scan A be5cd8b4b8bc
cost-budget is a skill published in the GitHub repository JeremyDev87/codingbuddy (31 stars, last pushed 4mo ago), licensed MIT. It adds 53 tokens to every session and 2,624 once invoked, about $0.0003 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-30.
Other skills, from other repositories
bzdesignprompt
为前端或网页设计任务选择并下载合适的 DESIGN.md 模板。当用户需要网页设计模板、UI 风格参考、设计系统、落地页或前端界面设计时,浏览长亭百智云 UI 设计模板库,根据产品场景和视觉偏好匹配模板,并将完整 DESIGN.md 保存到项目中。.
ai-agent-rules
This skill covers development patterns for the ai-agent-rules repository, a comprehensive collection of structured rules and guidelines for AI agent behavior. The repository focuses on maintaining consistent documentation standards, systematic rule organization, and automated synchronization workflows. It uses…
se-dev-server-code
Allows reading the decompiled C# code of the Space Engineers Dedicated Server.
se-dev-game-code
Allows reading the decompiled C# code of Space Engineers version 1.
se-dev-plugin
Plugin development for Space Engineers version 1. Search plugin code from PluginHub (client) and MagnetarHub (server) for examples and patterns.
se-dev-script
In-game (programmable block, aka PB) script development for Space Engineers version 1. Search script code for examples and patterns.