Skip to content

8.9 Cost

Every metered service has a budget, a limit that stops the work before the budget is gone, and a default chosen on purpose: CI minutes, the Claude plan's usage windows, and the AI services the sandboxes use. The reason: agents push, re-check and re-review far more often than people do. The monthly CI allowance was used up in eight days, after which every check failed within seconds, and sessions ran on an expensive model nobody had chosen (lessons-learned.md, ci/cost.md).

Rules

  1. CI runs as little as it can and still catches what it caught. One Linux job; on a pull request only the tests it can have broken, and no job on Windows. No check is switched off: each one caught real problems, or is the only net for the history (ci/cost.md, ci/checks.md).
  2. Checks and reviews run where they cost least: the machine gate before the push, so a broken change costs no CI minutes, and each AI reviewer once per pull request, not on every push (8.4).
  3. The plan's quota stops new work. At 95 % of the Claude plan's 5-hour or 7-day window the coordinators finish running work and start none; at 98 % every session persists its work and waits for the reset (#774, ci/cost.md).
  4. A model and an effort per role, each set on purpose: the coordinator chooses each worker's model per issue and starts it at high effort, and the sandbox launchers start a coordinator on Opus at low effort (#789, setup/linux-host.md; lessons-learned.md).
  5. An AI service in the sandboxes runs on prepaid credit with a monthly budget and a daily request limit (lessons-learned.md).
  6. Spending money is the owner's. Anything that costs money or creates infrastructure waits for the owner (sdlc/decisions.md).

Where it is described

Topic How-to
CI minutes: what each check costs and has caught, and the changes ci/cost.md
The quota levels and who acts on them ops README (plugins/ops/README.md)
Cost and token figures by role on the dashboard ADR 0005 (docs/adr/0005-cost-source.md), proposed