The problem: uncapped agent runs
AgentGuard: hard stop at your ceiling
The budget envelope
AgentGuard uses a conservative dual-budget strategy:-
Soft cap (80% of
max_cost_usd) — the router switches to the cheapest eligible model when spend crosses this threshold. This squeezes the last few steps into the cheapest possible tokens. -
Hard cap (100% of
max_cost_usd) — the run stops immediately. No more LLM calls are made. The agent returns a partial result with astopped_reason: "budget_exceeded"flag.
Trajectory: see every step
BRAIN.md integration: repo-level cost ceiling
Set a defaultmax_cost_per_request in BRAIN.md and AgentGuard picks it up automatically:
Verifiable proof of every run
AgentGuard produces a PrysmProof v2 receipt for the entire run, covering every step:GET /v1/proof/{request_id} (no API key required) or reconstruct the hash offline.