Learn the mechanism.
Then defend the design.
Each path strings lessons and worked questions into one sequence. Answer every question out loud before opening its worked answer, then go back to the lesson behind whatever you missed.
Check your starting pointThe core of agent engineering
Fourteen steps through what every agent round checks first: the loop and its exits, tools the model can use and the system can trust, the context window as a budget, and how to measure an agent that answers differently every run.
- Bring with you
- Comfort with an API call to a model and a little Python.
- Work toward
- You can build a tool-calling loop that always ends, explain what the model decides and what the code decides, and say which number shows whether the agent is reliable.
- A good fit if
- You are new to agents, or you have built one and want the reasons behind what worked.
- Not in this path
- Durable execution, sandboxes, protocols and authority, which the production path covers.
A loop with a step budget, error results and a named exit, tested against a scripted model.
Redo if Your loop ends only when the model says it is done.
A breakdown of a long run's context into parts, with what you would clear first and why.
Redo if Your first fix for a degrading agent is a bigger window.
pass@k and pass^k computed from repeated runs of one task, with the one your product needs.
Redo if You report a single run's success rate as the agent's reliability.
- The loop01Lesson · Free
The Agent Loop
Trace one run: what the model returns, what the harness runs, and what goes back.
- 02Worked question · Available
Write the agent loop on the whiteboard, then list every way a run can end.
Name every way a run ends and which of them the code controls.
- 03Lesson · Free
Stop Conditions and Budgets
Set step, cost and time budgets that end a run whatever the model believes.
- 04Lesson · Free
Workflows and Agents
Decide when a fixed workflow beats an agent, and say why.
- 05Lesson · Free account
The Harness and the Authority Line
Draw the line between what the model proposes and what the system decides.
- Tools06Lesson · Free
Tool Contracts
Write tool definitions with names, schemas and results a model can use.
- 07Lesson · Free
Tool Errors as Observations
Return errors the model can act on, and decide who retries.
- 08Lesson · Premium
Idempotent Side Effects
Make a write safe to run twice with a key derived from the intent.
- Context09Lesson · Free
The Context Window as a Budget
Break a context into parts and say how each grows over a run.
- 10Worked question · Available
Your agent has a 200k-token window and falls apart at 55k. Why, and what do you change?
Diagnose an agent that degrades with most of its window still empty.
- 11Lesson · Free account
Clearing, Compaction and Notes
Choose between clearing, notes and compaction, cheapest first.
- Measurement and the build round12Lesson · Free
pass@k and pass^k
Pick pass@k or pass^k for a product and compute both from repeated runs.
- 13Lesson · Free
Outcome and Trajectory Grading
Grade end states and path rules instead of one recorded sequence.
- 14Worked question · Available
Implement a tool-calling loop with validation, a step budget and error results in 45 minutes.
Build a tool loop with validation, a budget and tests in under an hour.
- Read the question alone first. Note the questions you would put to the interviewer; the gaps in a prompt are usually deliberate.
- Answer by locating the failure first (tool contract, context, plan, runtime or input), then say what the model decides and what the harness must enforce.
- Open the worked answer and find the first point where yours goes a different way. That point teaches more than whether you ended up in the same place.
- Place your answer on the scoring guide, then redo the part that held it back from the next level.
- Change one constraint (the run lasts three days, the API has no idempotency key, there are 400 tools) and predict which part of your design breaks first.
Paths reuse lessons and questions already on the site and show what access each one needs. Courses go further, with lessons written for the sequence, exercises and progress tracking.
Explore the courses