From agent-cost
Check current spend against budgets defined in config/budgets.yml. Emits an alert ladder (info / warning / critical / hard_stop) and exits non-zero when hard_stop is tripped. Use when investigating a cost spike, before launching a parallel-fanout dispatch, or as a cron / pre-commit gate.
npx claudepluginhub laran/claude-agent-costThis skill uses the workspace's default tool permissions.
Reads `config/budgets.yml` (or `$AGENT_BUDGETS_FILE`), queries
Prevents silent decimal mismatch bugs in EVM ERC-20 tokens via runtime decimals lookup, chain-aware caching, bridged-token handling, and normalization. For DeFi bots, dashboards using Python/Web3, TypeScript/ethers, Solidity.
Share bugs, ideas, or general feedback.
Reads config/budgets.yml (or $AGENT_BUDGETS_FILE), queries
Prometheus for spend in each budget's window, and prints the alert
ladder.
/cost-budget-check # all configured budgets
/cost-budget-check --budget daily # single budget
/cost-budget-check --format json # JSON for programmatic use
| Level | Threshold default | Caller behavior |
|---|---|---|
info | 50% | Log only |
warning | 75% | Surface to user; continue |
critical | 90% | Surface loudly; continue |
hard_stop | 100% | Exit 1. Caller halts dispatches |
hard_stop exit-1 lets you wire the script into:
PreToolUse hook on the Agent tool — block sub-agent spawns
while over budget.Edit config/budgets.yml (no budgets enforced by default — opt-in).
budgets:
- name: daily
period: 24h
limit_usd: 50.00
alerts:
- { level: info, threshold: 0.50 }
- { level: warning, threshold: 0.75 }
- { level: critical, threshold: 0.90 }
- { level: hard_stop, threshold: 1.00 }
filters:
query_source: subagent # only count sub-agent spend, not main
Multiple budgets coexist (e.g. daily + monthly); all are checked, worst-tripped level wins per budget.
Optional filters: narrows which spend counts toward the budget. v1.0
supports:
query_source — main / subagent / auxiliaryv1.1 will add tier, branch_pattern, model.