AIDAN course book · Black Belt 1st Dan · Dan exam prep
Building AI Agents Course Book
Validates that you can design long-running, multi-step agents and operate them with tools, memory, evaluation and observability in place, keeping failures and costs under control.
Contents
- How to use this book
- Chapter 1. Agent architecture
Workflows and agents · Tasks that need agents · Augmented LLMs and the agent loop · Prompt chaining and gates · Routing · Parallelization: sectioning and voting · Orchestrator-workers · Evaluator-optimizer · Autonomous agents and stop conditions · The cost of multi-agent systems · Orchestration: decided by LLM, or decided by code? · Starting from the simplest architecture · A2A and MCP: lines connecting agents, lines connecting tools · Delegation defaults set by SDKs · Considering the lifecycle of frameworks · Code provides the skeleton, models provide the judgment · Agreement is not verification · When using a framework
- Chapter 2. Tools and MCP
Tools are interfaces for agents · Choosing the right tools · Names, descriptions, and parameters · Returning meaningful results · Managing the size of tool results · Errors are instructions for recovery · Tools with side effects: preview and confirm · Architecture of MCP · 2026-07-28 specification: statelessness and handles · Transports, cancellations, and long-running tasks · Tool annotations and trust · Authentication and least privilege · Human approval and security requirements · Authorization server discovery and client registration · Distinguishing deprecated, removed, and preview · Freeform input and computer use toolsets · When tools scale into the hundreds · When a model calls tools with code · Managing tool changes as a contract
- Chapter 3. Context, memory and state
Context is a finite budget · What to include: Altitude, tools, and examples · Just-in-time retrieval and progressive disclosure · Four layers of information · Compaction and tool result clearing · Structured notes and external memory · Isolating context with subagents · Preventing context contamination · Prompt caching and context construction · Checkpoints and idempotency · Designing resumption after suspension · Handoffs for long-running tasks · Where to place conversation state · The application chooses when to compact · Considering clearing scope alongside cache pricing · What to verify when delegating state to the server · The gap between checkpoints and external side effects · The lifecycle of memory · Evaluating memory and compaction policies
- Chapter 4. Evaluation and observability
Basic evaluation terminology · Outcome-based evaluation · Trajectory evaluation · Three types of graders and their combination · Making model graders trustworthy · pass@k and pass^k · Capability evaluations and regression evaluations · Building evaluation suites · Isolation and reproducibility of evaluation environments · Tracing · Analyzing failures step by step · Evaluating metrics to make deployment decisions · Standard attributes for generative AI traces · Traces in the Claude Agent SDK are sent by the CLI · When evaluation harnesses and models change · What to suspect first when scores move · Evaluating conversational agents · Building regression cases from production
- Chapter 5. Operations, cost and safety
Put stop conditions into the system · Layers of budget limits · Detect loops with no progress · Timeouts and deadlines · Retries · Concurrency and overload control · Human approval checkpoints · Bind approvals to execution payloads · Enforcement mechanisms on the execution path · Scope of guardrails · Sandboxes and least privilege · Prompt injection and separation of privilege · Incident response · Do not combine three capabilities in a single session · What defaults have turned on and off · Separate automatic processing and human verification by confidence · Partial success and compensating actions · Deployments that do not break running tasks · Expanding autonomy in stages
- Appendix A. Glossary
- Appendix B. Self-check answers and explanations
- Appendix C. Exam day guide
- Appendix D. Reference documents
AIDAN wrote this course book independently from each vendor's official documentation. It is not affiliated with or endorsed by them. Products and policies change, so check the linked official documentation for the latest details.