Harness (Ch 1)
The code around the model loop: budgets, guardrails, state and telemetry. The model proposes the next step; the harness decides whether it may run.
Error contract (Ch 3)
A tool must say clearly when it failed. An error disguised as an empty result becomes a confident wrong answer.
Limits and human approval (Ch 8)
Step caps, budgets and timeouts stop runaway loops. Writes that matter pause for a human with the run state saved, and exit as awaiting_human.
Cost per successful task (Ch 10)
Spend on failed runs counts too. Divide total spend by the runs that ended in done, not by all runs.
Exit reasons
done, over_budget, step_limit, timeout, awaiting_human
Try the cost calculator