Budget Scopes
A budget can be scoped to any of these dimensions:- Team — all sessions attributed to members of a given team count against the envelope
- Repository area — sessions that touch a specific directory path or codebase area
- Experiment — a named label you apply to sessions to group exploratory or time-boxed work
Budget Types
Soft Threshold
A soft threshold sends a Slack notification when cumulative spend in the current period reaches a configured percentage of the budget limit (for example, 80% or 90%). Work continues uninterrupted. The notification includes:- Current spend and percentage used
- Estimated pace to end of period
- A direct link to the breakdown for that scope
Hard Cap
A hard cap stops the harness mid-session when the budget is fully exhausted. The session is saved in its current state and can be resumed after the budget period resets. Use a hard cap when you need a strict ceiling — for experiments with fixed budgets, or for teams where runaway spend is a governance concern.Creating a Budget
In the dashboard, navigate to Budgets and click New budget. Configure:- Scope — choose Team, Repository area, or Experiment, then select the target
- Period — Monthly or Weekly; the envelope resets at the start of each period
- Limit — the maximum spend for the period, in your billing currency
- Notification threshold — the percentage of the limit at which a soft Slack alert fires
- Hard cap — toggle on to stop sessions when the limit is reached
Example Budget Configuration
The AI tools & prototyping budget has a soft threshold at 80%; the team lead received a Slack notification but sessions continue. The sandbox/experiments budget has a hard cap and no soft threshold; two sessions were stopped when the weekly €500 limit was reached and will resume when the period resets.
Slack Integration
Connect your Slack workspace to receive budget notifications:- Open Dashboard → Settings → Notifications
- Click Connect Slack and authorize the Terma app in your workspace
- Choose the channel where budget alerts should appear
- Save
Hard Cap Behavior
When a hard cap is reached, Terma sends a stop signal to the harness. The harness halts the session at the next safe point — after the current tool call completes, before the next prompt is sent. The session state is preserved:- All events up to the stop point are retained in session replay
- The session is marked as capped in the Sessions list
- The engineer can resume the session after the budget period resets