Topic · Advanced
Production AI agents for enterprise
10 lessons · 129 minutes of stepping · 1 ready now
- Done
- 0 / 10
- Next
- Lesson 2
- 01
Workflow or agent? Pick the simplest thing that works
Anthropic separates workflows (fixed code paths) from agents (the model directs its own steps). Most enterprise wins are workflows. Learn the five patterns and a test for when autonomy pays.
ComingThen: route 3 sample requests - Next up. Anatomy of a production agent
Nine components around one card-dispute flow: gateway with delegated identity, orchestrator, model gateway, MCP tools, retrieval, policy, human approval, evals and traces. Each step shows what breaks without it.
16 minThen: checkpoint - 03
Tools over MCP: stateless servers, auth, least privilege
The 2026-07-28 spec drops sessions and the initialize handshake, so servers scale behind plain load balancers. Scope each tool to the user’s delegated token, never a shared service account.
ComingThen: write a tool manifest - 04
Agents talking to agents
When the dispute agent hands off to a fraud agent, A2A v1.0 carries the task. Agent Cards advertise skills and auth; signed cards stop impersonation.
ComingThen: read a real Agent Card - 05
Memory and retrieval without poisoning
Retrieved text and saved memories steer future turns. Tag provenance, gate memory writes, and keep per-tenant indexes so one customer can’t shape another’s answers.
ComingThen: poison-test a memory - 06
Guardrails, mapped to the OWASP lists
Prompt injection is still LLM01 in 2026, and Excessive Agency jumped to LLM03. Build least agency into tool scopes, argument validation and policy checks, not just prompts.
ComingThen: threat-model the agent - 07
Humans in the loop for irreversible actions
Approval thresholds, what the reviewer sees, and how to stop rubber-stamping. Covers human oversight duties for high-risk systems and ASI09 trust exploitation.
Coming - 08
Evals that predict production: pass^k
pass@k asks if the agent can ever succeed; pass^k asks if it succeeds every time. Build a golden set, run k trials, and gate releases on the floor, not the ceiling.
ComingThen: compute pass^4 - 09
Tracing agents with OpenTelemetry
One trace per conversation: invoke_agent at the top, chat and execute_tool spans underneath, token usage including cache reads. MCP now carries traceparent in _meta.
ComingThen: read a trace - 10
Cost, latency and capacity
Price a conversation with real rates: cached prefixes at 5% on Sonnet 5.5, Batch at half price, routing easy turns to Haiku 5.5. Then size the rate limits.
ComingThen: cost model