AI interviews · Building with LLMs, retrieval, tuning, agents and other inputs

Agents and tool use, from the loop to MCP

What makes a system an agent, how tool calling works underneath, and the planning, memory and multi-agent patterns interviewers ask about. It covers MCP, the failure modes that sink agents in production (loops, bad tool calls, runaway cost), the guardrails that live outside the model, and how to evaluate an agent you can't run the same way twice.

18 min read Full lesson in the app Patterns: workflow-before-agent, model-proposes-runtime-acts, reversibility-sets-autonomy, pass-hat-k

What you'll be able to do

Before this: prompts-and-context

Log in to read the rest of this lesson

What makes a system an agent, how tool calling works underneath, and the planning, memory and multi-agent patterns interviewers ask about. It covers MCP, the failure modes that sink agents in production (loops, bad tool calls, runaway cost), the guardrails that live outside the model, and how to evaluate an agent you can't run the same way twice. This walkthrough runs about 18 minutes, with runnable code you can edit and re-run as you read. A new account gets 7 days of Pro free, no card required.

Log in to continue

The first module of every track is free to read on the web: see what's open in AI interviews.