Skip to main content

Overview

Budget controls prevent runaway agent costs. Every agent and squad has defined spending limits that trigger alerts, require approval, or halt execution. Three levels of budget control:

Agent Budget Configuration

Each agent’s .md file includes budget limits:

Required Fields


Squad Budget Configuration

Squads have aggregate limits in SQUAD.md:

Alert Thresholds


How Budget Tracking Works

1. Pre-Execution Check

2. During Execution

3. Post-Execution


Monitoring Costs

CLI Commands

Dashboard Output


Cost-Based Routing

Route to cheaper models for appropriate tasks:

Routing Guidelines


Smart Triggers and Budget

Triggers can be budget-aware:
This trigger only fires if the squad has budget remaining.

Budget Alerts

Slack Alert Format

Email Alerts (Enterprise)

Monthly budget reports sent to configured addresses with:
  • Spend by squad
  • Spend by agent
  • Cost per goal achieved
  • Recommendations

Overriding Budget Limits

Temporary Override

For urgent work, use --use-api flag:
This uses API credits instead of subscription quota, bypassing subscription limits but still tracking costs.

Permanent Adjustment

Edit the agent’s .md file:
Requires PR and human review (policy ORG-005).

Best Practices

1. Set Conservative Defaults

Start with low limits. It’s easier to increase than recover from overspend.

2. Use Per-Run Limits

Prevent individual execution explosions. A bug in a loop can burn budget fast.

3. Monitor Efficiency

Track tokens per goal, not just total spend:

4. Review Weekly

Identify patterns, adjust budgets accordingly.

5. Alert Before Limit

Set alert_threshold: 0.8 to get warnings before hitting hard limits.

Subscription vs API

Most organizations should use subscription for predictable costs. API mode for burst capacity.