How to become an Agent Engineer
Step by step and free: 12 phases, 90 topics and 331 graded practice questions.
Open any topic and mark it Learning, Done or Skip to track your progress. Sign in to save it to your account.
0 of 90 done · 0 learning · 0 skipped · Start with the first topic
Saved on this device only. Sign up free or sign in to keep your progress everywhere.
It's saved on this device only. Sign up free to keep it everywhere; your marks move into your account.
What is an Agent Engineer?
An Agent Engineer builds software in which a language model plans a task, calls tools and acts across many steps until the job is done. They design the tools and the loop around the model, decide what the agent may do without asking, manage its context and memory over long runs, and test whole trajectories rather than single replies. They work with product, platform and security teams.
Who this roadmap is for
Software engineers who already ship APIs and backend services in Python or TypeScript and want to build agents that do real work. You should be comfortable with HTTP, JSON and debugging someone else's code. If you have never written a program, start with a general software engineering roadmap first.
What you will be able to do
You will be able to design an agent loop with budgets and stopping rules, write tools and MCP connections a model can use well, keep context and memory under control on long runs, evaluate trajectories, add durable execution and human approval, and lock the agent down with sandboxing and least-privilege credentials.
The Agent Engineer roadmap
Agent Engineer
-
Phase 1 Foundations and the engineering toolkit
-
Phase 2 Models for agent builders
-
Phase 3 The agent loop and planning
-
Phase 4 Tool design
-
Phase 5 MCP and agent-to-agent protocols
-
Phase 6 Context and memory for long runs
-
Phase 7 Multi-agent systems and handoffs
-
Phase 8 Agent evals and failure analysis
-
Phase 9 Durable execution and human approval
-
Phase 10 Running agents in production
-
Phase 11 Agent security and sandboxing
-
Phase 12 Computer use, browser and coding agents
All topics, in order
Mark each topic Learning, Done or Skip, and sign in to save your place to your account. Done is your own word, not passing: a topic is passed when you score 50 or more on its questions. This order is the study plan.
-
Phase 1 · Foundations and the engineering toolkit
-
AI basics: what it is and how to ask it
An AI assistant predicts likely words; it does not look facts up or know when it is wrong. That makes it strong at working with material you give it and weak as a source of facts. Learn to ask clearly, hand it the right material, check what comes back, and own what you send.
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
AI basics: using it safely at work
Using AI well at work is mostly judgment: which tool is safe for which material, which actions need your OK first, how to test a helper before trusting it, and how to split a big job into checkable steps. These habits matter more than any one tool.
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
What an agent engineer does
An agent engineer owns the harness around a model that chooses its own next step: the loop and when it stops, the tools and their contracts, the context it carries, the permissions that bound it and the evals that prove a run did what it claims. An AI engineer adds model calls to a product; a workflow builder wires fixed steps. You are judged on runs that finish correctly and safely with nobody watching, not on a good demo.
Reading
- Anthropic: Building effective agents anthropic.com
- OpenAI: A practical guide to building agents (PDF) cdn.openai.com
- Anthropic: Effective harnesses for long-running agents anthropic.com
- Chip Huyen: Agents huyenchip.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Python for agent code
Agent code spends most of its life waiting on model and tool calls, so it is async code first. Run independent calls together with asyncio.gather or a TaskGroup, put a timeout on every await, and never call a blocking library inside the event loop, because one slow call then freezes every run on that worker. Type tool inputs and outputs with Pydantic or dataclasses so a bad argument fails at the boundary, not three steps later.
Reading
- Python: asyncio docs.python.org
- Python: coroutines, tasks and task groups docs.python.org
- Python: typing docs.python.org
- Pydantic documentation docs.pydantic.dev
- Python documentation docs.python.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Development environment and containers
An agent run you cannot reproduce is a bug you cannot fix. Pin every dependency in a lockfile, run the agent and the code it executes in a container so your laptop and the server behave alike, and load secrets from the environment or a secret manager, never from the repository or the prompt. When agents edit code, give each run its own checkout, such as a git worktree, so parallel runs never overwrite each other.
Reading
- Docker: get started docs.docker.com
- uv: locking and syncing a project docs.astral.sh
- The Twelve-Factor App: config 12factor.net
- Git: git worktree git-scm.com
- Development Containers specification containers.dev
- MIT: The Missing Semester missing.csail.mit.edu
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
APIs and HTTP for tool calls
Most tools an agent calls are HTTP APIs, and their failures become the agent's next decision. Retry only what can succeed on retry: a 429 or 503 after the Retry-After delay with jittered backoff, never a 400 or 403, which need a different call. Follow pagination cursors instead of trusting the first page, set a timeout on every request, and turn each failure into a short message the model can act on.
Reading
- MDN: HTTP developer.mozilla.org
- MDN: 429 Too Many Requests developer.mozilla.org
- MDN: Retry-After header developer.mozilla.org
- Amazon Builders' Library: timeouts, retries and backoff with jitter aws.amazon.com
- GitHub REST API: using pagination docs.github.com
- FastAPI documentation fastapi.tiangolo.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
Chapter 1 lab
Brief a coding agent to add a carrier rates client to a Python service
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 2 · Models for agent builders
-
How LLMs work
A model reads tokens, not characters, and predicts the next one from everything in its context window, so many agent bugs are model limits in disguise. Counting letters fails because of tokenisation, a long run degrades because recall weakens as the window fills, and the same input can produce different steps because sampling is random. Measure tokens per step and keep the window lean: a bigger window is not better attention.
Reading
- Karpathy: Neural Networks: Zero to Hero karpathy.ai
- 3Blue1Brown: neural networks 3blue1brown.com
- Anthropic: context windows platform.claude.com
- Lost in the Middle: how models use long contexts (Liu et al.) arxiv.org
- Chroma: Context rot research.trychroma.com
Start the 7 questionsTest yourself on this topic
7 graded questions · scored out of 100 with feedback · free
-
Prompting for agents
A prompt for an agent describes a job, not one reply: the goal, what done looks like, which tool to prefer for what, what needs permission and what to do when stuck. Say what to do rather than only what to avoid, and give the reason behind each rule so the agent can apply it to cases you did not list. Test a prompt change on whole runs, because one new rule can shift behaviour many steps later.
Reading
- Anthropic: prompt engineering overview platform.claude.com
- Anthropic: prompting best practices platform.claude.com
- OpenAI Cookbook: GPT-4.1 prompting guide (agentic workflows) developers.openai.com
- OpenAI: prompt engineering developers.openai.com
- OpenAI Cookbook cookbook.openai.com
Start the 7 questionsTest yourself on this topic
7 graded questions · scored out of 100 with feedback · free
-
Model APIs: messages, tool calls and tokens
A tool-using turn is a round trip: you send messages plus tool definitions, the model replies with a stop reason and tool call blocks, and you run the calls and send the results back keyed by each call's id. Every request resends the conversation and the tool definitions, so input tokens grow with each step and usually dominate an agent's bill. Read the stop reason and usage on every response: they say why the turn ended and what it cost.
Reading
- Anthropic: Messages API platform.claude.com
- OpenAI: API reference platform.openai.com
- Anthropic: Handling tool calls platform.claude.com
- OpenAI: Function calling developers.openai.com
- Anthropic: token counting platform.claude.com
- Google Gemini API: function calling ai.google.dev
Start the 6 questionsTest yourself on this topic
6 graded questions · scored out of 100 with feedback · free
-
Structured output and constrained decoding
Asking for JSON gets JSON most of the time; constrained decoding limits the model to tokens that fit your schema, so the output parses unless it is cut off or refused. Parsing is not correctness: a valid object can hold a wrong value, and providers support only part of JSON Schema, so check business rules in code too. A strict format can cost accuracy on hard tasks, so let the model reason first and put the answer in its own field.
Reading
- OpenAI: Structured outputs developers.openai.com
- Anthropic: Structured outputs platform.claude.com
- Google Gemini API: structured output ai.google.dev
- JSON Schema: Understanding JSON Schema json-schema.org
- Let Me Speak Freely? Format restrictions and LLM performance (Tam et al.) arxiv.org
- Outlines: constrained generation library github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reasoning models in an agent loop
A reasoning model can think between tool calls as well as before the first one, so it can weigh a surprising result before choosing its next action. Most APIs expect you to send that thinking back unchanged with the tool results; drop it and the model loses its own train of thought mid-run. Treat effort as a dial per task: raise it where a wrong step is costly to undo, lower it for routine lookups, and judge it by finished tasks, not tokens.
Reading
- Anthropic: Extended thinking platform.claude.com
- OpenAI: Reasoning models developers.openai.com
- Google Gemini API: thinking ai.google.dev
- Anthropic: The think tool anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Choosing a model for agent work
For an agent the measure that counts is cost per finished task: a cheaper model that needs twice the steps, or fails one run in three, often costs more than a pricier one that finishes. Public benchmarks such as SWE-bench Verified, Terminal-Bench, tau2-bench and BrowseComp test tool use over many steps, so read the one closest to your work, then rerun your own tasks several times and compare success, steps and spend together.
Reading
- AI Agents That Matter (Kapoor et al.) arxiv.org
- SWE-bench leaderboards swebench.com
- Terminal-Bench tbench.ai
- tau2-bench (Sierra Research) github.com
- BrowseComp: a benchmark for browsing agents (Wei et al.) arxiv.org
- METR: Measuring AI ability to complete long tasks metr.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 2 lab
Write the system prompt for an invoice field extractor
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 3 · The agent loop and planning
-
Workflow patterns before agents
A handful of patterns cover most model features without an agent: a chain of calls with a check between steps, a router that sends each input down a specialised path, parallel calls whose answers you combine or vote on, an orchestrator that splits work at run time, and an evaluator loop that critiques and revises against clear criteria. Use the simplest that passes your tests, and add an agent only where the steps cannot be known until the work starts.
Reading
- Anthropic: Building effective agents anthropic.com
- Claude Cookbooks: agent and workflow patterns github.com
- LangGraph: workflows and agents docs.langchain.com
- OpenAI: A practical guide to building agents (PDF) cdn.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
The agent loop
The loop itself is a few lines: call the model, run any tool calls it asks for, append the results, and call again until it answers without a tool call. ReAct interleaves a thought with each action; plan-then-execute writes the steps up front, saving model calls but adapting slowly when a step surprises it. Everything that makes an agent reliable is added around this loop, so know where in it each check, limit and log runs.
Reading
- ReAct: reasoning and acting (Yao et al.) arxiv.org
- Anthropic: Building effective agents anthropic.com
- ReWOO: planning without observations (Xu et al.) arxiv.org
- Claude Agent SDK: how the agent loop works code.claude.com
- OpenAI Agents SDK: running agents openai.github.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
The agent harness
The harness is everything around the model: the system prompt, the tools and how they answer, what enters the context each step, which actions need permission, and hooks that run your code before or after a tool call. The same model can go from failing a task to passing it on harness changes alone, so treat the harness as the product: version it, test it and read its transcripts after every change.
Reading
- SWE-agent: agent-computer interfaces (Yang et al.) arxiv.org
- Anthropic: Effective context engineering for AI agents anthropic.com
- Anthropic: Effective harnesses for long-running agents anthropic.com
- Claude Code: hooks code.claude.com
- Claude Agent SDK overview code.claude.com
- OpenAI Agents SDK openai.github.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Stopping conditions and budgets
A loop ends in one of two ways: the model says it is done, or a limit on steps, tokens, time, spend or repeated calls trips. Make the result say which, with a stop reason, the work finished so far and the state needed to continue, so the caller can resume with a fresh budget, hand off to a person or give up. A limit that throws away the run's state turns a stuck agent into a total loss.
Reading
- Claude Agent SDK: agent loop (turn and budget limits) code.claude.com
- OpenAI Agents SDK: running agents (max turns, error handlers) openai.github.io
- LangGraph: Graph API (recursion limit) docs.langchain.com
- Anthropic: How we built our multi-agent research system anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Planning before acting
A plan helps when each step names the check that proves it worked, so the agent can tell a finished step from an attempted one. When a step fails, replan from that step with what the failure taught, rather than retrying it unchanged or starting over. Keep plans short and revisable, since a long upfront plan goes stale at the first surprise; searching over many candidate plans multiplies cost and pays off mainly where steps can be scored.
Reading
- Plan-and-Act: planning for long-horizon tasks (Erdogan et al.) arxiv.org
- Plan-and-Solve prompting (Wang et al.) arxiv.org
- Tree of Thoughts (Yao et al.) arxiv.org
- Chain-of-Thought prompting (Wei et al.) arxiv.org
- Claude Code: best practices code.claude.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Task lists and progress tracking
On a long job, have the agent write a todo list before it starts and update it as it goes, with each item pending, in progress or done. Rewriting the list keeps the goal near the end of the context, where it is least likely to be lost, and shows anyone watching how far the run got. Allow one item in progress at a time, and mark an item done only after its check passes, not when the agent says so.
Reading
- Claude Agent SDK: todo lists code.claude.com
- Manus: context engineering lessons (recitation through todo lists) manus.im
- Anthropic: Effective harnesses for long-running agents anthropic.com
- Claude Code: best practices code.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reflection and self-critique
Asking an agent to review its own work helps when the review brings something new: a failing test, a validator error, a source that contradicts the claim. Without new evidence, a model rereading its own answer tends to keep it, or swaps a right answer for a wrong one, as research on self-correction has shown. So give reflection a tool result to react to, cap the rounds, and keep the earlier version if the revision checks out worse.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Verifying work with tools
An agent's claim that it finished is a guess until something outside the model checks it. Before it reports done, have it run the tests, the type checker or a schema validator, or reread the file or record it changed, and feed any failure back into the loop. Give it the same check you would use to accept the work, and make the final answer quote that check's result, so a reviewer sees evidence rather than an assertion.
Reading
- CRITIC: self-correction with tool-interactive critiquing (Gou et al.) arxiv.org
- Claude Code: best practices code.claude.com
- Anthropic: Effective harnesses for long-running agents anthropic.com
- SWE-agent: agent-computer interfaces (Yang et al.) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
When to ask the user
When a request is unclear, an agent can ask, assume and record the assumption, or stop. Asking costs the user's attention and stalls the run; a wrong assumption costs rework or a harmful action. Let what a wrong guess would break decide: ask before anything costly or hard to undo, assume and say so for cheap reversible choices, and gather everything you need into one question rather than five spread across the run.
Reading
- Learning to Ask: when LLM agents meet unclear instructions (Wang et al.) arxiv.org
- OpenAI Model Spec model-spec.openai.com
- tau-bench: tool-agent-user interaction (Yao et al.) arxiv.org
- Anthropic: prompting best practices platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 3 lab
Write the loop instruction for a failing-test triage agent
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 4 · Tool design
-
Tool use and function calling
The model never runs a tool: it emits a call with a name and arguments, and your code decides whether to run it. Validate the arguments against the schema before executing, since models sometimes send wrong types or invented fields, and return the result tagged with the call's id. A retry is safe only if repeating the call cannot do the work twice, so know which tools are read-only before the loop retries them.
Reading
- Anthropic: tool use overview platform.claude.com
- Anthropic: defining tools platform.claude.com
- Anthropic: Handling tool calls platform.claude.com
- OpenAI: Function calling developers.openai.com
- Anthropic: Writing effective tools for agents anthropic.com
- Google Gemini API: function calling ai.google.dev
Start the 6 questionsTest yourself on this topic
6 graded questions · scored out of 100 with feedback · free
-
How many tools, and how big
Every tool you add is another choice the model can get wrong, and overlapping tools are the worst kind: two ways to search the same data split its guesses. Build tools around tasks, such as one tool that finds a customer's latest order instead of three that list customers, list orders and fetch one, and namespace the rest by service. When wrong picks rise as tools are added, cut or group the set before rewording descriptions.
Reading
- Anthropic: Writing effective tools for agents anthropic.com
- Less is More: fewer tools for function calling (Paramanayakam et al.) arxiv.org
- RAG-MCP: mitigating prompt bloat in tool selection (Gan and Sun) arxiv.org
- Berkeley Function Calling Leaderboard gorilla.cs.berkeley.edu
- OpenAI: Function calling developers.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Tool results and errors the model can use
A tool result is the agent's only view of what happened, and every token of it is paid for on each later step. Return the fields the next step needs, cap the length with a note on how to fetch more, and use ids the model can pass straight to another tool. Report a failure as a normal result marked as an error, saying what was wrong and what a valid call looks like, so the model corrects the call instead of retrying blind.
Reading
- Anthropic: Writing effective tools for agents anthropic.com
- MCP specification: Tools modelcontextprotocol.io
- Anthropic: Handling tool calls platform.claude.com
- SWE-agent: agent-computer interfaces (Yang et al.) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Tools that change things
A tool that writes, sends, pays or deletes needs more than a schema. Offer a dry run that shows what would change, require confirmation for actions that are hard to undo, and accept an idempotency key so a retried call returns the first result instead of acting twice. Return a record of exactly what changed, with ids. Protocol hints that mark a tool destructive help a client decide what to gate, but enforce the rules inside the tool.
Reading
- Stripe API: idempotent requests docs.stripe.com
- Amazon Builders' Library: making retries safe with idempotent APIs aws.amazon.com
- MCP specification: Tools (tool annotations) modelcontextprotocol.io
- OWASP GenAI: LLM06 Excessive Agency genai.owasp.org
- Anthropic: Writing effective tools for agents anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Parallel and dependent tool calls
A model can request several tool calls in one turn when they do not depend on each other, such as reading three files at once. Run those concurrently and send every result back together, each matched to its call id, even when one fails. Calls that need an earlier result must wait for it, and writes to the same record should run one at a time, so turn parallel calls off for tools where order matters more than speed.
Reading
- Anthropic: Handling tool calls platform.claude.com
- OpenAI: Function calling developers.openai.com
- LLMCompiler: parallel function calling (Kim et al.) arxiv.org
- Python: asyncio task groups docs.python.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Large tool catalogs
Loading hundreds of tool definitions into every request spends much of the context before the task starts and makes each choice harder. Keep a few core tools always loaded and give the agent a search tool that finds and loads the rest on demand by name and description. Descriptions then double as search text, so write them with the words a model would search for, and log searches that found no tool.
Reading
- Anthropic: Tool search tool platform.claude.com
- Anthropic: Advanced tool use anthropic.com
- RAG-MCP: retrieval for tool selection (Gan and Sun) arxiv.org
- Gorilla: LLMs connected with massive APIs (Patil et al.) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Code execution as a tool
A sandbox where the agent can run code changes what one step can do: instead of a tool call per row, it writes a short script that loops, filters and calls tools, and only the final result enters the context. That saves tokens and round trips on data-heavy work and plays to what models write well. The price is a real execution environment to secure, with limits on time, memory, files and network.
Reading
- CodeAct: executable code actions (Wang et al.) arxiv.org
- Anthropic: Code execution with MCP anthropic.com
- Anthropic: Programmatic tool calling platform.claude.com
- Anthropic: Code execution tool platform.claude.com
- OpenAI: Code interpreter developers.openai.com
- Cloudflare: Code Mode blog.cloudflare.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Built-in and hosted tools
Model platforms ship ready tools: web search and fetch, code execution, file editing, shell and memory. Some run on the provider's servers, so you get them in one request but have less say over what they read, and your data and costs follow the provider's terms. Others only define the interface and your code runs them. Use hosted tools to build fast, and own the tool when you need audit logs, limits or a way to switch models.
Reading
- OpenAI: Using tools developers.openai.com
- Anthropic: Web search tool platform.claude.com
- Anthropic: Text editor tool platform.claude.com
- Anthropic: Bash tool platform.claude.com
- Anthropic: Memory tool platform.claude.com
- Google Gemini API: grounding with Google Search ai.google.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 5 · MCP and agent-to-agent protocols
-
MCP from the agent's side
In MCP your agent application is the host: it runs one client per connected server, and each server offers tools, resources and prompts. The protocol only carries messages; the host decides which servers are allowed, which tools reach the model, what the user must confirm and what data goes to which server. Treat every server's descriptions and results as untrusted input your host filters, never as instructions.
Reading
- MCP: architecture overview (hosts, clients, servers) modelcontextprotocol.io
- MCP: understanding MCP clients modelcontextprotocol.io
- MCP specification (latest revision) modelcontextprotocol.io
- MCP: security best practices modelcontextprotocol.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Connecting to MCP servers
Local servers run as a subprocess over stdio; remote ones use Streamable HTTP, and the older HTTP plus SSE transport is deprecated. As of November 2026 the current revision, 2026-07-28, is stateless: no initialize handshake or session id, every request names its protocol version, and an unsupported version returns an error listing those the server accepts. List results carry a ttlMs freshness hint, so cache tool lists instead of refetching.
Reading
- MCP 2026-07-28: key changes from 2025-11-25 modelcontextprotocol.io
- MCP 2026-07-28: transports (stdio, Streamable HTTP) modelcontextprotocol.io
- MCP 2026-07-28: versioning and compatibility modelcontextprotocol.io
- MCP 2026-07-28: server/discover modelcontextprotocol.io
- MCP 2026-07-28: caching list results modelcontextprotocol.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
MCP authorization as a client
A protected remote MCP server points your client to its authorization server through protected resource metadata, and your client runs OAuth with PKCE for the user. Request each token with the resource parameter naming that one server, keep tokens per user and issuer, and check the issuer before redeeming the code. As of November 2026 the spec prefers Client ID Metadata Documents (an HTTPS URL as client id) and deprecates dynamic registration.
Reading
- MCP 2026-07-28: authorization modelcontextprotocol.io
- MCP 2026-07-28: client registration modelcontextprotocol.io
- MCP: understanding authorization in MCP modelcontextprotocol.io
- RFC 9728: OAuth 2.0 Protected Resource Metadata datatracker.ietf.org
- RFC 8707: Resource Indicators for OAuth 2.0 rfc-editor.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Resources and prompts, not just tools
MCP splits what a server offers by who decides: the model chooses tools, your application chooses which resources to attach as context, and the user picks prompts, often as slash commands. Data the agent always needs, such as the schema it queries or the ticket it is working, is cheaper and more predictable as a resource your host attaches than as a tool the model must remember to call. Prompts suit workflows a user starts on purpose.
Reading
- MCP 2026-07-28: server features and who controls each modelcontextprotocol.io
- MCP 2026-07-28: resources modelcontextprotocol.io
- MCP 2026-07-28: prompts modelcontextprotocol.io
- MCP: understanding MCP servers modelcontextprotocol.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
When a server needs input
Sometimes a server cannot finish a tool call without the user, say to confirm a choice or fill a missing field. Under the 2026-07-28 revision it returns an input required result; your client asks the user, then retries the call with the answers attached. Form mode is for ordinary fields; passwords, keys and payments must use URL mode, which opens the server's own page. Always show which server is asking, and offer decline and cancel.
Reading
- MCP 2026-07-28: elicitation (form and URL modes) modelcontextprotocol.io
- MCP 2026-07-28: multi round-trip requests modelcontextprotocol.io
- MCP: understanding MCP clients modelcontextprotocol.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Long-running MCP calls
A tool call that takes minutes, such as a CI run or a bulk import, should not hold a connection open. As of November 2026 MCP covers this in its official tasks extension: the server returns a task id instead of a result, and your client polls it, answers through an update when it pauses for input, and may ask to cancel, which is not guaranteed. Save task ids with the run's state so a restart resumes polling instead of redoing the work.
Reading
- MCP extensions: tasks overview modelcontextprotocol.io
- modelcontextprotocol/ext-tasks: the tasks extension spec github.com
- MCP 2026-07-28: cancellation modelcontextprotocol.io
- MCP 2026-07-28: progress modelcontextprotocol.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Agent-to-agent with A2A
MCP connects an agent to tools; A2A connects it to another agent whose insides it cannot see, often run by another team or vendor. The remote agent publishes an agent card with its skills, endpoint and auth; longer work becomes a task with states such as working, input required and completed, returning artifacts. A2A 1.0, the first stable release, came out in March 2026. Use a tool when you know the steps, an agent when you only know the goal.
Reading
- A2A protocol specification a2a-protocol.org
- A2A: core concepts (agent card, task, message, artifact) a2a-protocol.org
- A2A and MCP: how they fit together a2a-protocol.org
- A2A: what's new in v1.0 a2a-protocol.org
- a2aproject/A2A releases on GitHub github.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
-
Phase 6 · Context and memory for long runs
-
The context budget across a run
An agent's window is partly spent before the user types: the system prompt and tool definitions come first, then every call and result piles on, so by step thirty most tokens may be stale tool output. Log the input tokens of each model call and plot them by step; the curve shows which tool or habit eats the budget. Models also attend less reliably as the window fills, so a run degrades well before it hits the limit.
Reading
- Anthropic: effective context engineering for AI agents anthropic.com
- Claude docs: context windows platform.claude.com
- Claude docs: token counting platform.claude.com
- Chroma research: context rot research.trychroma.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Trimming tool output
A tool result is read once and acted on, then mostly dead weight that the model rereads on every later step. Cap results at the source with filters, limits and pagination, keep the full payload outside the window behind an id or file path the agent can fetch again, and clear or shorten old results once the step that needed them is done. Leave the call itself in history, so the agent remembers it already looked.
Reading
- Anthropic: writing effective tools for agents anthropic.com
- Claude docs: context editing (clearing old tool results) platform.claude.com
- Manus: context engineering lessons from building Manus manus.im
- Anthropic: effective context engineering for AI agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Compaction for long-running agents
Compaction replaces the older part of a run with a summary so the agent can keep going past its window. Trigger it at a set share of the window rather than on overflow, and make the summary keep the goal, the decisions made and why, what was changed, open problems and the next step. Test it by compacting saved runs mid-task and checking the agent finishes without redoing work or reversing an earlier decision.
Reading
- Claude docs: compaction platform.claude.com
- Anthropic: effective context engineering for AI agents anthropic.com
- OpenAI Agents SDK: sessions openai.github.io
- MemGPT: towards LLMs as operating systems (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Just-in-time context
Instead of loading every document that might matter into the prompt, give the agent cheap ways to look: file listings, grep, search and read tools, and light references such as paths and record ids. It then pulls in only what the current step needs, and the window stays free for reasoning. The price is extra steps and time, so preload the few facts every run needs and let the agent fetch the rest.
Reading
- Anthropic: effective context engineering for AI agents anthropic.com
- Claude Code docs: how Claude Code works code.claude.com
- Anthropic: writing effective tools for agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Instruction files and skills
An instruction file such as AGENTS.md lives in the repository and loads on every run, so keep it short: build and test commands, conventions and the traps a newcomer would hit. A skill is a folder of instructions, scripts and references of which only the name and a one line description sit in context until a task needs it, so an agent can carry many at little cost. Put rules that always apply in the file and occasional procedures in skills.
Reading
- AGENTS.md: the open format agents.md
- Agent Skills: the open format agentskills.io
- Anthropic: equipping agents for the real world with Agent Skills anthropic.com
- Claude Code docs: memory and CLAUDE.md files code.claude.com
- Claude Code docs: skills code.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Notes and progress files
Long work outlives any one context: compaction blurs detail and a new session starts blank. Have the agent keep its state in files, such as a progress log of what is done and what comes next, a structured list of features or tests it ticks off, and commits with clear messages, and start every fresh session by reading them. A structured file such as JSON is harder for the agent to quietly rewrite than prose, which keeps the record honest.
Reading
- Anthropic: effective harnesses for long-running agents anthropic.com
- Claude docs: memory tool platform.claude.com
- Anthropic: effective context engineering for AI agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Kinds of agent memory
Memory beyond the window comes in kinds: working memory is the context itself, episodic memory records past runs, semantic memory holds facts about the user or domain, and key value state holds exact fields such as a plan or an account tier. Each suits a store: an append-only log, a vector index for fuzzy recall, a database row for exact lookup. Choose by how the agent must find it again, since vector search returns near matches, not guarantees.
Reading
- Cognitive Architectures for Language Agents (CoALA, arXiv) arxiv.org
- MemGPT: towards LLMs as operating systems (arXiv) arxiv.org
- LangChain docs: memory overview docs.langchain.com
- Pinecone: vector databases pinecone.io
- pgvector github.com
Start the 7 questionsTest yourself on this topic
7 graded questions · scored out of 100 with feedback · free
-
Deciding what to remember
Saving everything fills memory with noise that later surfaces at the wrong moment. Write a memory only when it is likely to matter again: a stated preference, a correction, a durable fact, a lesson from a failed attempt. Decide who writes it, the agent during the run or a separate pass after the session that merges and dedupes. Recall by relevance, recency and importance, and store the source and date so the agent can judge whether to trust it.
Reading
- Generative Agents: memory, reflection and retrieval (arXiv) arxiv.org
- Mem0: scalable long-term memory for agents (arXiv) arxiv.org
- LangChain docs: memory overview (writing memories) docs.langchain.com
- Claude docs: memory tool platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Memory scope, isolation and deletion
Every memory needs an owner, a user, a team or a tenant, and recall must filter on that owner in the store's query, not in the prompt, or one customer's details will surface in another's run. Let users see, correct and delete what is kept, and make deletion reach every copy, embeddings and summaries included. Facts go stale, so record when each was learned, prefer the newest and expire what no longer holds.
Reading
- GDPR Article 17: right to erasure gdpr-info.eu
- OWASP Top 10 for Agentic Applications 2026 genai.owasp.org
- LangChain docs: memory overview (namespaces) docs.langchain.com
- Claude docs: memory tool platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 7 · Multi-agent systems and handoffs
-
Multi-agent architectures
Multi-agent shapes differ in who decides what happens next: an orchestrator splits work and gathers results from workers, a supervisor routes each turn to a specialist, peers pass work among themselves, and a hierarchy stacks supervisors. Every extra agent adds tokens, loses detail at its boundary and makes failures harder to trace. Start with one agent and good tools, and add a second only when you can name what the first cannot carry.
Reading
- Anthropic: how we built our multi-agent research system anthropic.com
- LangChain docs: multi-agent docs.langchain.com
- LangGraph documentation docs.langchain.com
- Cognition: don't build multi-agents cognition.ai
- Why do multi-agent LLM systems fail? (arXiv) arxiv.org
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Spawning sub-agents within bounds
A sub-agent is a fresh context with its own brief, tools and stop condition, useful for a contained job such as searching a codebase. An agent that can spawn agents can spawn without end, so the parent's code, not a prompt, enforces the maximum depth, how many children run at once, a token and time budget they all share, and what happens to children when the parent stops. Give each child a complete brief and ask for a short result.
Reading
- Anthropic: building effective agents anthropic.com
- Anthropic: how we built our multi-agent research system anthropic.com
- Claude Code docs: subagents code.claude.com
- OpenAI Agents SDK: orchestrating multiple agents openai.github.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Handing a conversation to a specialist
In a handoff the specialist takes over the conversation itself, unlike a sub-agent that returns a result to its caller. Choose what history it inherits: the full transcript keeps context but brings the first agent's tool noise and instructions, while a filtered slice or summary keeps it focused. Tell the user when control changes, give the specialist a way to hand back, and log every transfer so two agents bouncing a user between them shows up.
Reading
- OpenAI Agents SDK: handoffs and input filters openai.github.io
- OpenAI Cookbook: orchestrating agents, routines and handoffs developers.openai.com
- LangChain docs: handoffs between agents docs.langchain.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Parallel agents and merging results
Run agents in parallel only on work that does not depend on each other, such as researching separate companies; anything needing another's output waits. The hard part is the merge: results overlap, disagree and come back in different shapes. Ask every worker for the same structured output with sources, then dedupe, flag conflicts instead of averaging them away, and record which worker failed rather than silently dropping its share.
Reading
- Anthropic: building effective agents (parallelization) anthropic.com
- Anthropic: how we built our multi-agent research system anthropic.com
- LangGraph docs: graph API (Send for map-reduce) docs.langchain.com
- Self-consistency improves chain of thought reasoning (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Critic and verifier agents
A second agent that checks the first catches errors only if it has something the first lacked: different instructions, the original requirements, tools to run tests or look facts up, or a different model. A critic rereading the same output in the same context tends to approve it. Ask for specific failures against named criteria, not an overall verdict, require evidence for every pass, and measure its catch rate on runs you know are wrong.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Coordination failures
Teams of agents fail in ways one agent cannot: two workers do the same job, two wait on each other forever, two write the same record, or agents keep delegating while costs climb. Each has a mechanical control: work items with unique ids a worker claims, a timeout on every wait, one writer per resource, and a cap on total spend and delegation depth for the run. Trace messages between agents, since the cause usually sits at a boundary.
Reading
- Why do multi-agent LLM systems fail? (arXiv) arxiv.org
- Anthropic: how we built our multi-agent research system anthropic.com
- Cognition: don't build multi-agents cognition.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 7 lab
Write the handoff a planning agent sends to an execution agent
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 8 · Agent evals and failure analysis
-
Outcome evals
An agent's final message says what it believes it did; the environment shows what it actually did. Grade the end state: query the database for the record, run the tests on the changed code, diff the files, check the email was queued exactly once. Write each check from the task's requirements before reading any runs, and include tasks whose right outcome is to refuse or change nothing, so an agent that acts on everything cannot score well.
Reading
- Anthropic: demystifying evals for AI agents anthropic.com
- tau-bench: tool-agent-user interaction benchmark (arXiv) arxiv.org
- SWE-bench: grading code changes by running tests swebench.com
- OpenAI docs: evaluate agent workflows developers.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Trajectory evals
Two runs can reach the same correct end state, one in five steps and one in forty with a forbidden delete along the way. Trajectory evals grade the path: whether the required tools were called, whether order held where it matters, how many steps were wasted, and whether any banned action happened. Match strictly only where order is truly required; demanding one exact path punishes valid alternatives and makes the eval brittle.
Reading
- LangChain agentevals: trajectory evaluators github.com
- LangSmith docs: trajectory evaluations docs.langchain.com
- Google Cloud docs: evaluate gen AI agents (trajectory metrics) docs.cloud.google.com
- Anthropic: demystifying evals for AI agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Eval environments
Agents act, so an eval needs a world to act in: a sandbox with seeded data that resets to the same state before every run, fake versions of outside services that record what was called, and for conversational agents a simulated user with a goal and details it reveals only when asked. Without a reset, runs leak state into each other; without fakes, an eval can send real emails or charge real cards.
Reading
- tau-bench: tool-agent-user interaction benchmark (arXiv) arxiv.org
- tau2-bench on GitHub github.com
- Inspect AI: sandboxing inspect.aisi.org.uk
- AppWorld: a controllable world of apps for agents (arXiv) arxiv.org
- Terminal-Bench tbench.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Repeated runs and reliability
The same agent on the same task can pass one run and fail the next, so one run tells you little. pass@k asks whether at least one of k attempts succeeds, which fits when a person picks the best attempt; pass^k asks whether all k succeed, which is what a user relying on every run experiences. An agent that passes 75 percent of single runs gets four in a row only about a third of the time, so run each task several times and report both.
Reading
- tau-bench: introduces pass^k (arXiv) arxiv.org
- Evaluating LLMs trained on code: pass@k (arXiv) arxiv.org
- AI agents that matter (arXiv) arxiv.org
- Anthropic: demystifying evals for AI agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Testing the harness without a live model
Most harness bugs live in ordinary code: the loop, budget checks, retries, tool argument parsing and resuming from a checkpoint. Test them with a fake model that returns scripted tool calls and replies, or with recorded responses replayed from disk, so tests run fast, cost nothing and give the same result every time. Script the awkward cases on purpose: malformed arguments, a tool timeout, a call that repeats forever, a stop mid-step.
Reading
- Pydantic AI docs: unit testing with TestModel and FunctionModel ai.pydantic.dev
- LangChain docs: testing agents docs.langchain.com
- VCR.py: record and replay HTTP interactions vcrpy.readthedocs.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reading transcripts
Aggregate scores tell you how often an agent fails, not why. Read whole runs, failures first, and in each find the first step where it went wrong, since much of what follows is a consequence. Give that step a short label such as wrong tool, ignored result or invented value, then count labels across fifty or so runs: the most common first failure is your next fix, and the labels become your future automated checks.
Reading
- Hamel Husain: a field guide to rapidly improving AI products hamel.dev
- Hamel Husain: your AI product needs evals hamel.dev
- Anthropic: demystifying evals for AI agents anthropic.com
- Inspect AI: log viewer inspect.aisi.org.uk
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
How agents fail
Agent failures recur in recognisable forms, each with a trace you can check: a loop shows as the same call with the same arguments, a wrong tool as a sensible call to the wrong place, an early done as finishing before the verifying step, invented success as a claim the end state contradicts, and drift as later steps serving a goal nobody asked for. Name them in your transcripts and write a detector for each one that keeps returning.
Reading
- Why do multi-agent LLM systems fail? (arXiv) arxiv.org
- TheAgentCompany: agents on consequential real-world tasks (arXiv) arxiv.org
- AI agents that matter (arXiv) arxiv.org
- Anthropic: demystifying evals for AI agents anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
-
Phase 9 · Durable execution and human approval
-
Durable execution
Durable execution records the result of every step (each model call, tool call and decision) in a persistent log, so a run killed by a crash or a deploy restarts from its last finished step, not from the beginning. Agents need this twice over: their runs last minutes to days, and repeating a finished step can repeat a charge, an email or a refund. Rule of thumb: once a run can outlive one process or one request, its state belongs in a store, not in memory.
Reading
- Temporal docs: understanding durable execution docs.temporal.io
- LangGraph docs: persistence and checkpointers docs.langchain.com
- Restate docs: durable AI agents docs.restate.dev
- DBOS docs: durable workflows docs.dbos.dev
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Workflow engines under agents
Engines such as Temporal split a program in two: deterministic workflow code, rebuilt after a crash by replaying its history, and activities that do the real I/O and are recorded once they finish. Model and tool calls answer differently each time, so they must run as activities, or a replay takes another path. Framework checkpointers such as LangGraph's are lighter, saving state between steps, but a resumed node reruns from its start, so its side effects still need idempotency keys.
Reading
- Temporal docs: workflows and determinism docs.temporal.io
- Temporal docs: activities docs.temporal.io
- LangGraph docs: persistence and checkpointers docs.langchain.com
- Restate docs: durable AI agents docs.restate.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Recovering from errors mid-run
Classify a failure before reacting to it. A transient error such as a timeout, a rate limit or an overloaded model is retried with backoff or sent to a fallback model; a tool error the model can fix, like a bad argument or a missing record, goes back to it as an observation so it can replan; a refused permission or an impossible goal is escalated to a person. Retrying everything the same way burns budget on errors that will never succeed.
Reading
- Anthropic API docs: errors platform.claude.com
- Amazon Builders' Library: timeouts, retries and backoff with jitter builder.aws.com
- Temporal docs: retry policies and non-retryable errors docs.temporal.io
- Anthropic: building effective agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Undoing multi-step actions
There is no rollback across separate systems: when step four fails after steps one to three booked a room, charged a card and sent a confirmation, the only way back is a compensating action for each, such as a cancellation, a refund or a correction. This is the saga pattern. Record each completed write with the action that undoes it, run compensations in reverse order, make them safe to retry, and put any step that cannot be undone behind approval.
Reading
- Microsoft Azure Architecture Center: compensating transaction pattern learn.microsoft.com
- Microsoft Azure Architecture Center: saga pattern learn.microsoft.com
- Garcia-Molina and Salem: Sagas (1987 paper) cs.cornell.edu
- microservices.io: the saga pattern microservices.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Human approval as a durable pause
An approval gate is a pause the run has to survive. The agent stops at the gated tool call, its whole state (history, the pending call, budget used) is saved under a run id, and the process is free to exit. When the reviewer answers, hours later and perhaps on another machine, the run loads that state and carries on from the same call without asking the model again. Make resuming idempotent too: two clicks on Approve must run the action once.
Reading
- LangGraph docs: interrupts docs.langchain.com
- OpenAI Agents SDK: human in the loop openai.github.io
- Temporal docs: signals and workflow message passing docs.temporal.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Designing the approval request
A reviewer approves what they can understand in seconds, so show the exact action with its real arguments, the agent's reason, what it will change and whether it can be undone, not the model's paraphrase. Let them approve, reject with a reason the agent sees, or edit the arguments first. Give each request an owner, an expiry and a default when nobody answers (usually reject and escalate), and watch the approval rate: near 100 percent means people stopped reading.
Reading
- LangChain docs: human-in-the-loop (approve, edit, reject) docs.langchain.com
- Claude Agent SDK: handling permissions code.claude.com
- OWASP GenAI: LLM06 Excessive Agency genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Progress, interruption and steering
A run that takes minutes must show what it is doing: stream events such as step started, tool called and result received, not just the final text, so users can tell work from a hang. Interruption has to be built into the loop: check for a stop or a new instruction between steps, finish or cancel the current tool call cleanly, and add the user's redirect to the context as a message. Never abandon a write halfway without recording where it stopped.
Reading
- OpenAI Agents SDK: streaming openai.github.io
- LangGraph docs: streaming docs.langchain.com
- Claude Agent SDK: streaming input code.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Background and event-triggered agents
An agent started by a schedule, a webhook or a queue message has nobody to ask and nobody watching. So the trigger must carry everything the run needs, a redelivered event must not start the work twice (key each run on the event id), budgets and permissions should be tighter than in an interactive session, and the result must land where a person will see it. Runs that keep failing go to a dead-letter queue for review, not into silence.
Reading
- Claude Code docs: GitHub Actions code.claude.com
- OpenAI docs: background mode developers.openai.com
- Amazon SQS docs: dead-letter queues docs.aws.amazon.com
- Temporal docs: schedules docs.temporal.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 10 · Running agents in production
-
Systems architecture and contracts
An agent is one layer of a stack (surface, orchestration, tools, model gateway, guardrails, observability), and many design faults are a requirement placed in the wrong layer. Ask which layer can guarantee it: a prompt can only ask, so anything that must always or never happen belongs in code. Then design the seams: a run whose length depends on its input does not fit a synchronous request, and a queue that delivers at least once needs an idempotency key on every side effect.
Reading
- Amazon Builders' Library: making retries safe with idempotent APIs aws.amazon.com
- Stripe API: idempotent requests docs.stripe.com
- OWASP Top 10 for LLM applications owasp.org
- Anthropic: building effective agents anthropic.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Agent frameworks and SDKs
A framework hands you the loop, tool wiring, handoffs, tracing and often checkpoints; in return it decides how prompts are built and when state is saved. Adopt one for a need you can name, such as durable pauses or multi-agent graphs, and keep tools, prompts and evals in your own code so switching costs days, not a rewrite. Frameworks age fast: as of November 2026 Microsoft is archiving AutoGen and points users to Agent Framework, its successor.
Reading
- OpenAI Agents SDK documentation openai.github.io
- Claude Agent SDK overview code.claude.com
- LangGraph documentation langchain-ai.github.io
- Microsoft Agent Framework overview learn.microsoft.com
- Google Agent Development Kit (ADK) documentation adk.dev
- CrewAI documentation docs.crewai.com
Start the 7 questionsTest yourself on this topic
7 graded questions · scored out of 100 with feedback · free
-
Deployment and infrastructure
An unattended agent is a long, bursty background job, so run it like one: accept the request, put it on a queue, and let workers execute runs whose state lives in a database, never in a web process a deploy will restart. Cap concurrency per tenant so one heavy customer cannot starve the rest, give each run a timeout and a heartbeat so stuck workers are found, and drain workers before a deploy so runs in flight finish or checkpoint.
Reading
- FastAPI: deployment fastapi.tiangolo.com
- Celery documentation docs.celeryq.dev
- Claude Agent SDK: hosting code.claude.com
- Amazon Builders' Library: avoiding insurmountable queue backlogs builder.aws.com
Start the 5 questionsTest yourself on this topic
5 graded questions · scored out of 100 with feedback · free
-
Observability
One agent run is a tree of model calls, tool calls and sub-agents, and the cause of a failure usually sits several steps before the error. Record every step with its inputs, outputs, tokens, latency and cost under one run id, tagged with the prompt, tool and model versions that were live. Then watch per-run measures (steps, cost, success rate) on dashboards and feed sampled runs into evals, so a regression shows up before customers report it.
Reading
- Langfuse documentation langfuse.com
- LangSmith documentation docs.smith.langchain.com
- OpenAI Agents SDK: tracing openai.github.io
Start the 7 questionsTest yourself on this topic
7 graded questions · scored out of 100 with feedback · free
-
Tracing agent runs with OpenTelemetry
OpenTelemetry's GenAI semantic conventions give agent runs a shared vocabulary: an invoke_agent span for the run, a span per model call and an execute_tool span per tool call, with attributes for the model, token usage and agent name. Emitting these standard names instead of a vendor format lets you change tracing backends without re-instrumenting. As of November 2026 the agent and tool spans are still marked Development, so pin a version and expect renames.
Reading
- OpenTelemetry GenAI conventions: agent spans github.com
- OpenTelemetry GenAI conventions: execute_tool span github.com
- OpenTelemetry GenAI semantic conventions repository github.com
- OpenTelemetry blog: AI agent observability opentelemetry.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Cost per task and prompt caching
Measure agent spend per finished task: every step, retry and sub-agent added up, divided by the tasks that actually succeeded, because a cheap run that fails still costs money. Each step resends the growing history, so the prompt cache does most of the saving if the prefix stays byte-identical: keep the system prompt and tool list fixed, append to history instead of editing it, and keep timestamps out of the opening. Track the cache hit rate per run.
Reading
- Anthropic docs: prompt caching platform.claude.com
- OpenAI docs: prompt caching developers.openai.com
- Manus: context engineering for AI agents (KV-cache hit rate) manus.im
- Anthropic docs: usage and cost API platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Latency in multi-step runs
In an agent, latency adds up: ten steps of a few seconds each is a long wait, and most of it is generated tokens and serial round trips. Cut the number of turns first, by running independent tool calls in parallel and returning tool results complete enough that no follow-up call is needed. Then send simple steps such as routing or extraction to a smaller, faster model. Measure time per step from traces, and stream progress so the wait feels shorter.
Reading
- Anthropic docs: reducing latency platform.claude.com
- OpenAI docs: latency optimization developers.openai.com
- Anthropic docs: parallel tool use platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Versioning and rolling out agent changes
An agent's behaviour comes from its prompt, tool definitions, model and harness code together, so version them as one release: a reworded tool description can change behaviour as much as a new model. Run the eval suite on the whole bundle, send it a small share of runs as a canary, compare success rate, cost and step count with the old version, and keep the old bundle ready for rollback. Let long runs finish on the version they started on.
Reading
- Google SRE Workbook: canarying releases sre.google
- Langfuse docs: prompt management langfuse.com
- Anthropic docs: model deprecations platform.claude.com
- Martin Fowler: feature toggles (ops toggles and kill switches) martinfowler.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Agent incidents and kill switches
When an agent fleet misbehaves, by looping, spamming a customer or deleting the wrong records, you must stop it in seconds without a deploy. Build switches at several levels (everything, one tool, one tenant, one run), read by the loop before every step and by the tool layer before every write. Pause queued runs rather than dropping them, keep the traces of the bad runs, and resume only once the cause is fixed and covered by a test.
Reading
- Martin Fowler: feature toggles (ops toggles and kill switches) martinfowler.com
- Google SRE Book: managing incidents sre.google
- Google SRE Book: postmortem culture sre.google
- AI Incident Database incidentdatabase.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 10 lab
Write the instruction for an agent that reconstructs a failed run from its trace
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 11 · Agent security and sandboxing
-
Guardrails around an agent
A guardrail is a check the agent cannot argue its way past, so it lives in code around the model: input checks before the run, validation of each tool call's arguments against policy, output checks before anything reaches a user or another system, and a human gate on the few irreversible actions. A rule in the system prompt is guidance, not control. Log every block, so you can tell a working guardrail from a noisy one.
Reading
- OWASP Top 10 for LLM Applications owasp.org
- Anthropic: reduce prompt injection docs.anthropic.com
- OpenAI Agents SDK: guardrails openai.github.io
- OWASP Top 10 for Agentic Applications for 2026 genai.owasp.org
Start the 7 questionsTest yourself on this topic
7 graded questions · scored out of 100 with feedback · free
-
Sandboxing what the agent runs
Treat every command and script an agent writes as untrusted, and run it where a mistake cannot reach the host, your credentials or the internal network. A container shares the host kernel, so for untrusted code prefer a stronger boundary such as gVisor or a Firecracker microVM. Scope the filesystem to one working directory, block outbound network traffic except to an allowlist of hosts, set CPU, memory and time limits, and keep secrets out of the sandbox.
Reading
- Claude Code docs: sandboxing code.claude.com
- Anthropic engineering: making Claude Code safer with sandboxing anthropic.com
- OpenAI Codex docs: security (sandbox and approvals) learn.chatgpt.com
- gVisor documentation gvisor.dev
- Firecracker microVMs firecracker-microvm.github.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Permission modes and allowlists
A permission system decides for each tool call whether to allow it, ask a person or deny it, and a good one matches arguments as well as tool names: allow running the tests, ask before a git push, deny reading any .env file. Deny rules should beat allow rules, and a call that no rule matches should fall to ask or deny, never to allow. Save the modes that skip every prompt for throwaway sandboxes, where the sandbox itself is the control.
Reading
- Claude Code docs: permissions and settings code.claude.com
- Claude Agent SDK: handling permissions code.claude.com
- OpenAI Codex docs: security (sandbox and approvals) learn.chatgpt.com
- OWASP GenAI: LLM06 Excessive Agency genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Agent identity and delegated credentials
An agent acting for a user should carry that user's authority narrowed to the task, not a service account that can reach every customer. Use OAuth delegation or token exchange to issue short-lived tokens scoped to the tools and data the task needs and bound to the service they are for, and log both the user and the agent on every action. Never forward a user's token to a service it was not issued for, and never put an admin key where the model can read it.
Reading
- RFC 8693: OAuth 2.0 token exchange rfc-editor.org
- RFC 9700: OAuth 2.0 security best current practice rfc-editor.org
- MCP specification (2026-07-28): authorization modelcontextprotocol.io
- MCP: security best practices (2026-07-28) modelcontextprotocol.io
- OWASP Top 10 for Agentic Applications for 2026 genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Prompt injection through tools
Any tool result can carry an attacker's words: a web page, an issue comment, a repository file or another agent's reply may hold text that reads like an instruction, and the model may act on it with all the agent's tools. Marking or filtering that content lowers the hit rate but never to zero. So design for a hijacked step: fix the plan before reading untrusted data, let a model with no tools read it, and check each later call against the user's request.
Reading
- Beurer-Kellner et al.: design patterns for securing LLM agents (arXiv) arxiv.org
- Debenedetti et al.: Defeating prompt injections by design (CaMeL, arXiv) arxiv.org
- Debenedetti et al.: AgentDojo, prompt injection benchmark for agents (arXiv) arxiv.org
- Greshake et al.: indirect prompt injection (arXiv) arxiv.org
- Anthropic: mitigating prompt injection in browser use anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Data exfiltration
An agent can leak data when it holds private data, reads untrusted content and has any way to send something out, and the outbound channel is often hidden: an image URL the chat client renders, a link with data in its query string, a web fetch, a git push, an email draft. List every such channel your agent has, then remove one of the three per session, such as no outbound fetches while customer records are loaded. Meta calls this limit the Agents Rule of Two.
Reading
- Simon Willison: the lethal trifecta for AI agents simonwillison.net
- Meta AI: Agents Rule of Two, practical AI agent security ai.meta.com
- Debenedetti et al.: Defeating prompt injections by design (CaMeL, arXiv) arxiv.org
- OWASP Top 10 for Agentic Applications for 2026 genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
The agent supply chain
Every MCP server, skill or plugin you install runs with your agent's access and adds tool descriptions and instructions the model treats as trusted. A malicious or compromised one can hide instructions in a description, or change behaviour in an update after you approved it. Install from sources you can review, pin exact versions or hashes, review again on every update, give local servers only the permissions they need, and keep an inventory of what each agent loads.
Reading
- MCP: security best practices (2026-07-28) modelcontextprotocol.io
- Invariant Labs: MCP tool poisoning attacks invariantlabs.ai
- OWASP Top 10 for Agentic Applications for 2026 genai.owasp.org
- SLSA: supply-chain levels for software artifacts slsa.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Red teaming an agent
Red teaming an agent means attacking the whole system, not just the chat box: plant instructions in the pages, files and tool results it will read, give it ambiguous goals, and try to make it misuse a tool, gain access it should not have or leak data. Score what it did (the calls it made, what changed) rather than what it said. Use a published list such as the OWASP Top 10 for Agentic Applications as a checklist, and keep each attack that works as a regression test.
Reading
- OWASP Top 10 for Agentic Applications for 2026 genai.owasp.org
- OWASP GenAI: agentic AI threats and mitigations genai.owasp.org
- Debenedetti et al.: AgentDojo, prompt injection benchmark for agents (arXiv) arxiv.org
- PyRIT: open-source red-teaming toolkit github.com
- garak: LLM vulnerability scanner github.com
- promptfoo docs: red teaming promptfoo.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 12 · Computer use, browser and coding agents
-
Computer use
A computer use agent works through a screen: it takes a screenshot, picks a mouse or keyboard action, performs it, then takes another screenshot to see what happened. Each step costs a model call and an image's worth of tokens, and a moved button or a pop-up can derail it, so it is slow and fragile next to an API. Use it only for software with no API, run it in a virtual machine holding nothing else of value, and keep the screen resolution modest.
Reading
- Anthropic docs: computer use tool platform.claude.com
- OpenAI docs: computer use developers.openai.com
- Xie et al.: OSWorld, benchmarking agents on real computer tasks (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Browser agents
A browser agent can read a page three ways: as pixels in a screenshot, as the HTML DOM, or as the accessibility tree, a compact list of roles, names and states built for assistive technology. Structure is cheaper and more exact on a well-built page, because the agent can click a named button by reference; pixels still work on canvas apps and badly labelled pages. Reliable agents read the accessibility tree first and fall back to a screenshot when it says too little.
Reading
- MDN: accessibility tree developer.mozilla.org
- Playwright docs: ARIA snapshots playwright.dev
- Playwright MCP server github.com
- Zhou et al.: WebArena (arXiv) arxiv.org
- Deng et al.: Mind2Web (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Where GUI agents must stop
Some steps a GUI agent should hand back instead of attempting: typing passwords or one-time codes, solving CAPTCHAs (they exist to stop automation), confirming a payment, accepting terms, and any click that sends, deletes or publishes. Detect these screens, pause with a clear request, let the person act, then resume. Pages can also try to steer the agent, so treat on-screen text as untrusted and never let it widen what the agent was asked to do.
Reading
- Anthropic docs: computer use tool platform.claude.com
- OpenAI docs: computer use developers.openai.com
- Anthropic: piloting Claude in Chrome (safety findings) claude.com
- OWASP GenAI: LLM06 Excessive Agency genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Coding agents
A coding agent reads the code it needs, edits files, runs the tests or the build, and loops on what the output tells it. It does best on changes it can check: a failing test that should pass, a type error to clear, a clear acceptance check. Keep each change small and scoped, give it a repository instruction file with the build and test commands, make it run the checks before it claims done, and read the diff, because passing tests prove only what they cover.
Reading
- Yang et al.: SWE-agent, agent-computer interfaces (arXiv) arxiv.org
- Claude Code docs: best practices code.claude.com
- AGENTS.md: instruction files for coding agents agents.md
- SWE-bench swebench.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Coding agents at scale
Run without anyone at the keyboard, a coding agent becomes a CI job: started by an issue, a schedule or a failing build, with a fixed tool allowlist and a step budget. Give parallel agents separate checkouts (git worktrees or containers) and narrow tasks so they never edit the same files. Their output is a pull request, so treat it like one from a stranger: required checks, a human approver, no write access to protected branches, and diffs small enough to read.
Reading
- Claude Code docs: headless mode code.claude.com
- Claude Code docs: GitHub Actions code.claude.com
- Git documentation: git worktree git-scm.com
- OpenAI Codex docs: Codex cloud learn.chatgpt.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Research agents
A research agent searches, reads and writes an answer with citations, and its quality rests on two choices: how widely it searches before going deep, and which sources it trusts. Start broad with short queries and then narrow, prefer primary sources over pages that summarise them, and check that each claim is supported by a passage in the source it cites; a citation that does not back its sentence misleads. Parallel sub-agents widen the search but multiply the cost.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Practise the Agent Engineer roadmap
331 questions, each graded on the server out of 100. Free · no card.
Other AI careers
- AI Alignment Researcher
- AI Data Engineer
- AI Engineer
- AI Evals Engineer
- AI Governance Analyst
- AI Infrastructure Engineer
- AI Integration Engineer
- AI Product Manager
- AI Red Team Specialist
- AI Reliability Engineer
- AI Research Engineer
- AI Safety Engineer
- AI Security Engineer
- AI Solutions Architect
- AI Strategist
- Computer Vision Engineer
- Context Engineer
- Conversational AI Designer
- Forward-Deployed Engineer
- Inference Optimization Engineer
- ML Engineer
- Multimodal AI Engineer
- Post-Training Engineer