- What a Model Call Returns to the HarnessFree
- The Message List the Harness BuildsFree
- Determinism Is a Setting, Not a GuaranteeFree
Prepare for AI agent interviews.
Learn how real runs fail.
Agent rounds reward engineers who can say why a run went wrong and what the harness should have done. Worked answers graded the way panels grade them, concepts whose code runs, courses that build real agents, and practice for every part of the stack: the loop and the harness, tools, context, memory, orchestration, evals, durable execution, runtimes, frameworks, protocols, payments and the design round.
143 free reads. No account needed to begin.
- 01user“I was charged twice for order 4471.”
The processor applied the first refund before the timeout. Nothing in this harness can tell a lost response from a failed refund.
Nineteen topics, from the loop to the design round.
Each topic pairs concepts that teach the mechanism with worked interview questions that apply it, and a practice round. Open any topic to see all of it.
The loop and what it reads
What a model call returns and how the harness talks to it, the loop and the harness around it, tool contracts, the context window and memory.
- Anatomy of an Agent HarnessFree
- DeepSeek Harness and the Everything-Is-a-Plugin Design
- Improving the Harness, Not the Model: Harness²
Control and measurement
Planning patterns, evals across runs, optimisation and tuning, systems of several agents, and the frameworks that package them.
- Optimise an Agent in the Right OrderFree
- Prompt Optimisation with a Metric: DSPy, GEPA and MIPROv2
- Reinforcement Learning with Verifiable Rewards for Agents
Running agents in production
Durable execution, runtimes and sandboxes, protocols, payments and agents that write code.
- Isolation BoundariesFree
- Credentials Outside the Sandbox
- Agent Economics: Prefill, Caching and Routing
- The Model Context ProtocolFree
- Agent-to-Agent Delegation with A2AFree
- Authorization at the Protocol Boundary
- Why Agent Payments Need Their Own ProtocolsFree
- AP2 Mandates: Signed Proof of What the User Approved
- Agentic Checkout with UCP and ACP
Authority and the interview rounds
Guardrails and policy, the design round and the live build round.
Build the agent, not just the answer.
Each course follows one agent from first loop to release review, with code that runs and a project at the end. The first lessons of every course are free.
The questions agent rounds ask, answered the way panels grade them.
Every answer has a two-sentence version, the full reasoning, the follow-ups interviewers ask and how it is scored. These are free to read.
- A model reply comes back with empty content and no error. What do you check before calling it a blank answer?
- Your harness keeps the last ten messages to save tokens, and the provider sometimes returns 400. Debug it.
- Write the agent loop on the whiteboard, then list every way a run can end.
- When would you ship a fixed workflow instead of an agent?
- What does the harness own that the model never should?
- Design the tool definitions an agent sees for an order-management API.
- What should a tool return when it fails, and who decides whether to retry?
- Your agent has a 200k-token window and falls apart at 55k. Why, and what do you change?
Three concepts that change how you read every agent.
Each one is free from start to finish, with code you can run and a self-check at both ends.
The Agent Loop
An agent is a loop: the harness sends the model the conversation and the tool definitions, the model answers or asks for tool calls, the harness runs those calls and appends their results, and the loop repeats until something stops it. The model proposes every step; the harness executes every step and owns every exit.
Read itWorkflows and Agents
In a workflow, code decides the sequence of steps and the model performs some of them. In an agent, the model decides the next step at run time. Agency buys adaptability and costs tokens, latency, variance and test surface, so the strongest designs keep a deterministic spine and give the model only the decisions that depend on what it discovers.
Read itStop Conditions and Budgets
A run should end for a reason the harness can name: a verified answer, a spent budget, a refused action, an unrecoverable failure or a human taking over. Budgets for steps, tokens, wall-clock time, money and per-tool calls are counted and enforced by the harness, set from the distribution of successful runs, and keep a reserve so a stopped run can still hand back a useful partial result.
Read itKnowing the term is the start, not the answer.
Anyone can define an agent loop. Interviewers want to hear where a run can fail, which side of the authority line catches it, and what happens when they change one constraint.
- 01Find where it fails
The tool contract, the context, the plan, the runtime or the input.
- 02Draw the authority line
Say what the model may decide and what the harness enforces.
- 03Survive the follow-up
Now the run lasts three days. Now the API has no idempotency key.
Write the agent loop on the whiteboard, then list every way a run can end.
Write the four moves (assemble the context, call the model, dispatch the tool calls, append the results) inside a bounded loop, then name the exits: the model's final answer, budgets for steps, tokens, money and time, a guard refusing an action, an unrecoverable tool failure, and a person taking over. Every exit returns its reason, and only the first is the model's call.
- Weak
- Writes an unbounded loop with a single exit on "no tool calls", or caps iterations but returns the model's last message as the answer when the cap fires.
- Hire
- Writes the loop cleanly, lists harness-owned budgets (steps, tokens or cost, time) and a guard on actions, and returns an exit reason.
- Strong hire
- Treats the model's final answer as a claim to verify, adds per-tool limits, approvals and cancellation as exits with their own state, reserves budget for a partial summary, and sets limits from the distribution of successful runs.
A route that starts from what you already know.
Pick your background. Each route is a short sequence of concepts, with the access each one needs shown before you open it.
Your route into agent engineering
You already know how to make code reliable. Learn where the model sits in the loop, then apply the reliability you know to everything around it.
Your route into agent engineering
Agents are long-running, stateful, expensive and untrusted. Start with the loop, then the runtime properties you will be asked to guarantee.
Your route into agent engineering
Your model knowledge transfers. The gap is the engineering around it: authority, state, failure and measurement across runs.
Your route into agent engineering
The ideas interviewers return to most: the loop and its exits, reading a run, tool contracts, reliability across runs and the design method.
Read the free material first. Go deeper when the loop is close.
The foundations and the first worked answers in every topic are free. Premium opens the rest of the bank, every concept and course, and the full practice rounds, for six months.
Free
- 5 worked answers per topic, 6 with a free account
- The foundation concepts in every topic, and the first lessons of every course
- The glossary, interview guide and articles
- The readiness check and bookmarks
Premium · $25
- Every worked answer in all 19 topics
- Every concept, course and project
- Every practice item at every difficulty
- Everything published while your access runs
6 months · One payment · No auto-renewal
See PremiumBefore you start.
What does an AI agent engineering interview test?
Beyond ordinary coding and system design, agent rounds test whether you can build and reason about a loop in which a model chooses actions: writing the harness, designing tools a model can use correctly, managing the context window, keeping state across crashes and long waits, measuring reliability across repeated runs, and deciding what the model may do on its own. Many loops now add a live build round, sometimes with AI tools allowed and sometimes without.
Do I need to know a specific framework?
No single one. Interviewers ask why you chose a framework and how it behaves when a run pauses, crashes or hands off. The site teaches the mechanisms every framework implements with framework-free code, then has a topic on the frameworks themselves (LangGraph, Google ADK, Microsoft Agent Framework, CrewAI and the OpenAI and Claude agent SDKs), each dated and read through the same six questions.
I am a backend engineer who has never built an agent. Where do I start?
With the agent loop lesson, then workflows versus agents and stop conditions. They are free and assume only that you have called an API. The backend study path continues through tool contracts, the context window and durable execution, where your existing reliability instincts transfer directly.
What can I read for free, and what is Premium for?
Anyone can read the first 5 worked answers in every topic (6 with a free account), along with the foundation concepts, the glossary and the interview guide. Premium opens all worked answers, concepts, courses and practice items for six months, bought once and never renewed automatically.
Are these the actual questions companies ask?
They are the kinds of questions agent engineering loops ask, drawn from public interview guidance, published engineering practice and the failure modes teams report. No question is attributed to a particular employer, and company pages label every interview detail as verified by the company, reported by candidates, or limited public data.
Write the loop once, by hand.
Forty lines, no framework. Every agent you meet afterwards is that loop with opinions added.