Step-by-step answer
Stretch 40 min6 stepsSame report through the Agent SDK
The same Zod schema and checks behind a different harness. review.ts asks the Claude Agent SDK for a report with outputFormat, gates structured_output with Zod and the semantic checks, retries at most twice with the specific errors, and runs on OpenRouter or a local Ollama model with no code change.
Back to the exercise