Learning path
Production AI agents: approval, multi-agent and evals
For engineers moving past single-agent demos: add code-level approval gates, context isolation, multi-agent patterns and automated evals you can trust in CI.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat you will be able to do
- Decide when a task needs a workflow, one agent or a multi-agent system
- Enforce fail-closed human approval gates, ceilings and audit logs around risky tool calls
- Isolate noisy context using subagents and memory compaction without losing key facts
- Fix an agent tool's names, arguments, errors and output size, and measure the difference
- Build automated regression gates for non-deterministic LLM outputs and multi-step agent trajectories
- Audit agent pull requests and third-party dependencies before shipping to production
Steps
Step 1: Multi-agent systems: when one agent is not enough
Orchestrator-workers, subagents and handoffs compared on context, cost and failure modes.
Start here to see the cost and failure trade-offs before adding a second agent.
Step 2: Build an agent with the Claude Agent SDK
Built-in tools, a custom tool, a permission callback, a subagent and a project skill, tested before you spend tokens.
A working agent with a custom tool and a permission callback, so the later steps have something real to harden.
Step 3: Add human approval to agent actions
Pause risky tool calls, show the exact arguments, resume on approve or reject, then log and test it.
Build the fail-closed approval gate and prove every denial branch in tests.
Step 4: Make an agent survive crashes and restarts with durable execution
Build a durable AI agent with Temporal in Python: tool calls as activities, a worker you kill mid-run that resumes, retries and human approval as a signal.
For agents that run for minutes or hours: kill the worker mid-run and watch it resume, with approval arriving as a signal instead of a blocked process.
Step 5: Agent memory and compaction in practice
Keep long Claude Code sessions accurate with compaction, CLAUDE.md, auto memory, subagents and a summarise-and-restart routine, and know what survives each.
Step 6: Subagents in Claude Code: delegate without losing control
Define Claude Code subagents with their own tools, model and permissions, keep noisy work out of your main context, and avoid conflicts in parallel runs.
Focus on read-only subagents and tight briefs that keep parent context clean.
Step 7: How to test LLM applications as a QA engineer
Contract tests on a scripted model, a golden set with pass-rate floors, a calibrated LLM judge and a regression gate.
Separate 100% critical safety checks from pass-rate quality gates.
Step 8: Design tools an AI agent can use well
Take one badly designed agent tool, fix its names, descriptions, arguments, errors and output size, and measure the difference with a small eval you can rerun.
Most agent failures in production trace back to a tool: a vague name, an argument the model guesses, an error it cannot act on. Fix those before you build the eval gates in the next step.
Step 9: Evaluate AI agents: outcomes, trajectories and tool use
Build an agent eval harness that checks the final state, the tool-call trajectory and a judged transcript, run each task several times and read the traces.
Step 10: Security-review a pull request with an agent
Run an AI security code review of one pull request with Trail of Bits' differential-review skill, then test each finding with fp-check before anyone acts on it.
Run the two-step differential review and false-positive check on an agent-written change.
Production AI agents quiz
7 questions with explanations. Your score is saved when you are signed in.
Final quiz
Related paths
Agents and MCP
An AI agents and MCP course for developers: build a tool-using agent with a clear stop condition, then expose your own data and actions with an MCP server.
Evals and safety for LLM features
Catch regressions and attacks before users do, with error analysis, code-based evals, calibrated judges and prompt-injection tests.
MCP in production
Connect clients, build and test servers for a team, secure remote servers and keep up with changes to the MCP specification.