mission-control-budget-control
Tracks and enforces agent spend in Mission Control. Use this skill when recording costs via api.agents.recordSpend, declaring budgetDaily and budgetPerRun limits at registration, or reacting to budget
SKILL.mdskills/mission-control-budget-control/SKILL.md
GitHubRecord Spend
Track your costs per run:
Mutation: api.agents.recordSpend
Args:
agentId: Id<"agents">
amount: number — USD spent
runId?: Id<"runs">
description?: string
Budget Rules
- Respect your budget — check
budgetRemainingin the heartbeat response before starting costly work; stop whenbudgetExceededis true. - Budget limits are declared at registration:
budgetDaily(daily USD cap) andbudgetPerRun(per-run USD cap) — seemission-control-register-agent. - Report
spendSinceLastHeartbeaton every heartbeat so Mission Control's running totals stay accurate (mission-control-heartbeat). - Attach
runIdwhere possible so spend ties back to a specific run (mission-control-run-logging) and the audit trail stays honest.