Home / Learn

Learn

Everything here is free and runs in your browser. The guides follow the book’s parts; the tools compute what the chapters teach; the explainers show it in three minutes. Teaching a course? See the teaching kit.

Guides

Chapters 1–4

Agent fundamentals

What is an AI agent? A guide to the loop, the harness, the engine underneath and when not to build one. Chapters 1 and 2 are free to read.

Chapters 5–6

Tools, skills and protocols

Tools for AI agents, explained: task-shaped tools, schemas, sandboxes, skills and protocols such as MCP. Start with Chapter 2, free to read.

Chapters 7–9

Context engineering and memory

Context engineering for AI agents: the desk, the four operations, RAG vs long context vs fine-tuning, and memory. Start with the free chapter on the desk.

Chapters 10–14

Patterns and multi-agent systems

AI agent design patterns that survive production: chains with gates, routing, evaluator loops, orchestrator–worker, approval gates. Start with the guide.

Chapters 15–16

Evaluating and observing agents

How to evaluate AI agents: trace every run, grow an eval set from real failures, read pass@k and pass^k, calibrate the judge, gate releases. Start here.

Chapters 17–20

Security, reliability and cost

AI agent security risks, reliability and cost in one guide: prompt injection, the lethal trifecta, guardrails, retries, token bills, rollouts. Start here.

Chapters 21–27

Agents at work

AI agents in practice: why coding led, the spec-plan-execute workflow, the verification gap in research, trust, recipes and classifiers. Start the guide.

Tools

Chapter 19

Agent cost-per-task estimator

Estimate what one agent run costs in tokens: the fixed prompt, the history it re-reads every step, retries and subagents. Free AI agent cost estimator.

Chapter 2

Compounding error calculator

A free compounding error calculator for AI agents: whole-run success from per-step reliability, and the reliability a long task needs.

Chapter 12

Consequence tier classifier

Build a human in the loop approval policy for your AI agent: sort each action into four consequence tiers and get the gate each one needs. Try it free.

Chapter 7

Context window budget planner

A free context window budget planner: see how full your agent's window is, when it crosses the 40% rule of thumb, and which of four fixes to apply.

Chapter 16

Eval sample-size calculator

A free eval sample size calculator for AI agents: confidence intervals for a pass rate and the number of tasks you need, computed in your browser.

Chapter 16

LLM Judge Agreement Calculator

A free LLM judge agreement calculator: Cohen's kappa with an interval, precision and recall, the level check and bias tests. Paste your labels to start.

Chapter 17

Lethal trifecta audit

A lethal trifecta checklist for AI agents: see which legs your design holds, whether a sharp tool adds risk, and the cheapest leg to cut. Print the audit.

Chapter 16

pass@k and pass^k calculator

Compute pass@k and pass^k for an AI agent from its per-attempt success rate or your own runs, and see the reliability envelope. Free pass@k calculator.

Chapter 14

Should this be an agent?

When to use AI agents, and when plain code, one model call or a workflow does the job better. Answer ten questions and see where your task sits on the ladder.

Chapter 5

Tool schema linter

A free tool schema linter for LLM agents: paste a tool definition and get findings on its name, description, schema, side effects and hidden injections.

Explainers

3 min · Chapter 3

The agent loop: four beats and three exits

A three-minute animated explainer of the agent loop: the four beats of every pass, the history that is the agent's only memory, and three exits ranked by trust.

Latest articles

15 min

AI Agent Failure Modes: A Field Taxonomy

AI agent failure modes sorted for diagnosis: symptom, cause, trace signature and fix for each, cross-checked against MAST. Keep it open beside your traces.