Category · Budget enforcement
Budget enforcement for AI coding agents.
The anchor: a $65 autonomous billing incident — one overnight run gone before anyone checked. MartinLoop makes that impossible by design. Every governed run has a hard USD ceiling. When the ceiling is reached, the loop stops with an explicit budget stop reason.
Same task, same model: $2.30 with MartinLoop vs $5.20 ungoverned on the flaky-CI-gate task. See /benchmarks for the full framing.
How it works
--budget-usd 3sets a $3 USD ceiling for this run.- MartinLoop accumulates per-iteration cost from the model provider.
- When the next iteration would exceed the ceiling, the loop is cut and the run closes with
stop_reason: "budget". - The JSONL software receipt preserves the full cost trail.
FAQ
Related: /benchmarks · /stop-reasons · /for-agents