The full course
On Leanpub
$149 or more
- 134 video lessons, 7.7 hours, captioned
- The written text of every lesson, with every slide
- A notebook per module, no API key needed
- A quiz per module and a certificate of completion
About the course
An agent is a program that decides its own next step. It looks something up, calls a tool, reads the result and decides again, until the job is done or it gives up. That is what makes it useful, and it is also the problem: by the end of a run you have not seen most of what it did. So the question this course keeps asking is a practical one. I didn’t see every step, so how much of this can I trust?
The answer is never the model’s own word for it. A model sounds just as sure when it is wrong as when it is right, so trust has to come from a signal outside it: a test that passes, output that matches a schema, a citation you can open, a trace you can read, a person who signs off. Each module builds one more of those signals into the agent you are designing.
The course runs in four stretches. First you understand what an agent is and the engine at its center. Then you build one: planning, tools, context, retrieval, memory, workflows, several agents working together. Then you learn to trust it, by observing it, evaluating it, securing it and making it reliable. Finally you run it: cost, speed, deployment, and the same patterns applied to coding, classification, research and business work.
It is written for engineers who build software but are not machine-learning specialists. You need to read code and be comfortable running it. You do not need a background in how models are trained. Every idea is taught as a pattern, not as one product’s settings, so it stays useful as the tools change.
Watch module 1 free
The first module’s eight videos are public. Watch them before you decide.
- 1.1 The question this course is about 3:28
- 1.2 What an agent is 2:27
- 1.3 Chatbot, workflow, agent 4:10
- 1.4 The compass, and why reliability multiplies 2:46
- 1.5 Do you even need an agent? 2:51
- 1.6 The engine underneath 3:55
- 1.7 The desk, the dice, and why identical runs differ 3:25
- 1.8 What to keep, and what to try 1:53
What you get
- 134 short video lessons, 7.7 hours in all, each with English captions.
- The full text of every lesson, with every slide, for reading instead of watching.
- A quiz at the end of each module, 134 questions in all, and a certificate of completion.
- A notebook for each module: short explanations and code you run one step at a time, predicting what each step will do before you run it.
- For most modules, a build handout with a starter and automatic checks, for when you would rather write the code yourself or hand it to a coding agent.
What you will be able to do
- Tell an agent from a chatbot or a workflow by who owns the control flow, and decide whether a task needs an agent at all.
- Work out how reliable a whole run is from the reliability of each step, and which of three levers to pull when the number is too low.
- Design tools, descriptions and error messages a model can use without help, and give it the right context at each step: what to write down, select, compress and keep apart.
- Choose between retrieval, a long context and fine-tuning, and between a chain, branches, parallel calls and a loop.
- Decide when to split work between several agents, and where a person must sign off.
- Trace a failing run back to its first wrong step, and keep the fix as a test.
- Build an evaluation set from real failures, put an interval on a pass rate, and calibrate a model that grades other models.
- Audit a design for the combination that lets an attacker steal data, and cut it.
- Make a run survive retries, crashes and restarts without doing anything twice.
- Estimate what a run costs and how long it takes, and roll a change out safely.
Course outline
- What an agent is, and the engine underneath. The definition, the compass that settles design choices, and the model at the center: tokens, the context window, and why two identical runs differ.
- The engine’s failure modes, and the loop. What a schema guarantees, six ways the engine fails, why errors compound, and a minimal agent built from scratch.
- Planning, tools, and the action space. Planning before or during the run, checking work with something other than the model, and tools shaped to the task.
- Skills, protocols, and context engineering. Where a capability belongs, what a protocol saves and costs, how a context fails, and four operations that keep it healthy.
- Retrieval, memory, and workflow patterns. The lookup pipeline and its fixes, three kinds of memory, and the shapes a workflow can take.
- Multi-agent, oversight, the outer loop, and when not to. When to split a task, how to brief a worker, gates that match what an action can break, and loops that run without you.
- Observability and debugging. Traces of every call, failures that only show across many runs, record and replay, and reading a trace to the first wrong step.
- Evaluating agents. Evaluation sets from real failures, pass rates you can trust, a judge you have calibrated, and a gate that reruns on every change.
- Security, safety, and guardrails. Prompt injection, the audit that finds a data theft waiting to happen, guards around actions, and a smaller blast radius.
- Reliability, state, and the harness. Sorting failures by what they need, retries under a budget, runs that survive being killed, and sizing the harness.
- Cost, latency, deployment, and scaling. Where the tokens go, where the time goes, serving long work to many users, and rolling out a change.
- Coding agents and classifiers. Why coding went first, a working day with a coding agent, and building and measuring a classifier.
- Research, business, UX, recipes, and the frontier. Checking research work, framing return against risk, interfaces for supervising an agent, recipes by how much autonomy a task allows, and what will last.
The full course
On Leanpub
$149 or more
- 134 video lessons, 7.7 hours, captioned
- The written text of every lesson, with every slide
- A notebook per module, no API key needed
- A quiz per module and a certificate of completion
The course is sold on Leanpub, which handles the payment and hosts the lessons. For the same ideas in depth, in print, there is the book AI Agents, Engineered.