Lesson 5 of 6 · 4 min read
Reading a Trace
Debugging an agent means reading its trace: the ordered record of every model call and tool call with their inputs, outputs, timings and usage. Find the first step that went wrong, reconstruct exactly what the model saw at that step, classify where the failure entered (tool contract, context, plan, runtime or input), fix it at that location, and turn the run into a regression case. A trace is only useful if it records enough to replay a step.
Get full Premium access · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal
Practise it as an interviewer asks it
What is an AI agent? Explain how it differs from a chatbot and from a workflow that happens to call a model.What does a build-an-agent coding round test, and how would you prepare for one in a week?What is an agent harness, and how is it different from a framework and from the model?Write the agent loop on the whiteboard, then list every way a run can end.Draw the line between what the model proposes and what the system executes.Design the harness for an internal coding agent that fixes failing tests across your company's repositories.