Step-by-step answer
Stretch 30 min6 stepsRun the same task through the Agent SDK
The same charges-register task as the Claude Code trace, run through query() from the Claude Agent SDK with only Read and Glob, on any OpenRouter model or a local Ollama model. The loop takes query as a parameter, so a demo can replay canned messages instead of calling a model.
Back to the exercise