Courses · Course 6 of 7 · Guardrails, Observability, Cost
Reliable Agents in Production
Ship an agent with layered guardrails, tracing, online evals, cost and latency budgets, and a playbook for model upgrades and incidents.
19lessons
5modules
3open now
Who it is for
Engineers and tech leads running customer-facing agents.
Each lesson is a short simulation: you read what an agent did, a config or a tool output, make one decision and see at once whether it holds. Real terms, real commands, sourced from primary documentation.
5 modules
- Architecture choices4 lessons
- Guardrails4 lessons
- Observability3 lessons
- Cost and latency4 lessons
- Change and incidents4 lessons
Modules · 3 of 19 lessons open, the rest are being built
01Architecture choices
- 01Workflow or agentComingChoose the simplest pattern that does the job.
- 02Single agent firstComingMax out one agent before adding more.
- 03When multi-agent paysComingWeigh a +90% research gain against ~15x tokens.
- 04Prototype big, then shrink the modelComingStart with the most capable model, then swap smaller where evals allow.
02Guardrails
- 05Layered guardrailsComingCombine relevance, PII, moderation, rules and tool safeguards.
- 06The lethal trifectaComingCut one leg: private data, untrusted content, external communication. Also in Tools, MCP and Skills for Agents.
- 07Human intervention triggersComingEscalate on high-risk actions and repeated failure.
- 08Human-in-the-loop by cost of errorComingPlace review where errors are costly and hard to check.
03Observability
- 09Tracing a finished runOpenCapture every LLM call, tool call, guardrail and handoff in a trace, then read a finished run's trace to find the turn where it went wrong. Also in Loop Engineering.
- 10OpenTelemetry across MCPComingPropagate trace context through tool servers.
- 11Dashboards that lead to actionComingOne place to look, alerts that matter.
04Cost and latency
- 12Where the tokens goComingBreak cost into input, output, cached and tool tokens.
- 13Caching and batchingComingCut cost and latency with prefix caching.
- 14Latency budgetsComingParallelise, stream and route to faster models.
- 15Budgets: turns, tokens, money, timeOpenSet hard caps on turns and money per run, cap time from outside the run (timeout, timeout-minutes), know that token caps hold per request only, and see what a loop without caps costs overnight. Also in Loop Engineering.
05Change and incidents
- 16Upgrading the model safelyComingRun regression evals and re-tune the harness before switching.
- 17Same job, different endingOpenMeasure a loop over k runs, then choose pass@k or pass^k by what the job needs: pass@k when one good run out of k is enough, pass^k when every run acts on its own. Also in Loop Engineering.
- 18Voice and multimodal agents in productionComingHandle speech, turn-taking and vision misreads.
- 19Capstone: production readiness reviewComingAudit a live agent against a checklist and fix the top three gaps.
Built on primary sources
- Claude docs, Prompt caching
- Anthropic, Building effective agents (Dec 19, 2024)
- Anthropic, Demystifying evals for AI agents (Jan 9, 2026)
- Anthropic, Harness design for long-running application development (Mar 24, 2026)
- Anthropic, How we built our multi-agent research system (Jun 2025)
- MCP specification 2026-07-28, changelog
- OpenAI, A practical guide to building agents (PDF)
- OpenAI Agents SDK docs: tracing and guardrails