Book — 20 chapters

Building Agentic AI Systems

15 chapters and 4 capstone projects covering agentic AI patterns, multi-agent orchestration, tool use, memory systems, and production deployment. Build portfolio-ready projects with working code.

Part 03 Multi Agent

09

Orchestration

A fraud checker timed out. Nobody had specified what to do when that happened, so the workflow approved the claim anyway. Forty-seven later, an auditor found they all came from the same body shop, identical damage photos rotated by a few degrees. Orchestration is what keeps a missing timeout handler from becoming a $200,000 problem.

17 min read
10

Supervisor-Worker Pattern

A single agent that researched competitors, drafted analysis, pulled financial data, and produced a report — flawless in the demo, ruined in production. It would start researching, chase a tangent, forget the report, and time out after burning $40 in API calls. Asking one agent to hold an entire workflow in its head is the wrong model. The supervisor-worker pattern fixes that.

18 min read
11

Human-in-the-Loop

At 2:47 AM an automated procurement agent placed a $2.3 million order for industrial solvents. The purchase passed every internal check. What the agent couldn't know: the requesting department had submitted a cancellation four hours earlier through a channel the agent didn't monitor. Reversal cost $180,000. The agent wasn't broken. It was unsupervised.

18 min read
12

Agent Communication

The marketing agent wrote a press release announcing a feature engineering had already descoped. The engineering agent drafted a deployment timeline that contradicted the date marketing had promised journalists. Neither agent was wrong in isolation. Each followed its instructions perfectly. The failure was that they never talked to each other.

17 min read

Part 05 Capstones

16

Capstone 1: Research Assistant

A senior analyst opens twelve browser tabs every morning, copies figures into a spreadsheet, cross-references claims, and drafts a two-page brief the partner reads in six minutes. The bottleneck is the process, not the analyst. This capstone replaces that ritual with a multi-agent research assistant that plans queries, searches in parallel, analyzes through RAG, synthesizes across sources, and produces a cited report ready for human review.

15 min read
17

Capstone 2: Code Review Agent

A pull request sits in the queue for two days because the one person who knows that subsystem is on vacation. When it finally gets reviewed, the reviewer catches a style violation and a missing null check but misses the SQL injection on line 247. This capstone builds an automated PR reviewer combining static analysis, security scanning, style enforcement, and LLM reasoning into a single pipeline — the kind of system that ships in your portfolio and covers every pattern from Parts 1 through 4.

11 min read
18

Capstone 3: Customer Support System

Ticket volume grows, response times stretch, quality drops, customers churn, and the remaining agents burn out. You hire more people, but onboarding takes months and institutional knowledge stays locked in senior agents' heads. Meanwhile your knowledge base — hundreds of articles, runbooks, and policy documents — sits in a wiki that nobody searches correctly. This capstone builds the system that breaks that spiral: RAG-powered retrieval, per-session memory, sentiment-driven escalation, and human handoff with full context transfer.

18 min read
19

Capstone 4: Data Pipeline Orchestrator

Data pipelines break silently. A column renamed upstream, a vendor switching date formats, a nullable field that was never null until today — each failure looks trivial in hindsight, yet it propagates through warehouses for hours before anyone notices. This capstone builds an agentic ETL system that detects schema drift, validates quality, transforms data, and heals its own failures, replacing manual triage with a supervisor-worker architecture that keeps pipelines healthy around the clock.

13 min read