Break work into phases
Set budgets
Return blockers clearly
Do not treat a blocked run as a successful empty result. Persist the status, error, page evidence, and any artifacts.Use sessions for related runs
Useagent.session(...) when multiple related tasks should share one browser.
Production checklist
- Constrain domains.
- Request structured output.
- Set turn, tool, and time budgets.
- Stream progress for user-facing jobs.
- Store status, result, source URLs, and artifacts.
- Return blockers instead of inventing missing data.
- Require approval for high-impact actions.