Course Overview & Agent Lifecycle
See the whole picture before building the pieces. What agents are, how they work, and what you'll build.
- How AI evolved from rule-based systems to agents
- What separates an agent from a chatbot or plain API call
- The 7 building blocks every agent is made of
- The 5-stage lifecycle: Design, Build, Protect, Observe, Deploy
- How the Messages API actually powers agents
- The 9-track course roadmap and what you'll build
What You'll Learn
Tap any concept to jump to it. 10 concepts, 5 cards each.
The Evolution: From Rule-Based AI to Agentic AI
Agents didn't appear in 2024. They're the sixth wave in a long arc of AI evolution, each era adding a new capability without erasing what came before. Understanding this arc explains why agents are uniquely powerful now - and which pieces of the stack you already know.
Each era solved a limitation of the one before it. Rule-based systems were brittle. ML models generalized but couldn't reason. LLMs could reason but were passive. Agents are LLMs that can act - and loop until the task is done.
The Six Waves
Before: think of transportation technology. Before cars existed, horses were the only option. Then steam engines. Then internal combustion. Each replaced the previous - but also required the previous era's infrastructure (roads, fuel networks).
The pain: every wave initially looked like a replacement, but was actually an expansion. Developers who only knew SQL were confused by NoSQL - not because SQL was wrong, but because the new capability required a different mental model.
The mapping: AI waves work the same way. Rule-based systems gave us precision. ML gave us pattern recognition. LLMs gave us language. Agents give us autonomy. Each layer uses the previous - agents run on LLMs which use ML which uses statistics. You don't abandon the foundation; you add a new capability on top.
Six Waves of AI
- Rule-based (1950s-80s): If-then logic. Precise but brittle - breaks on anything not anticipated by the programmer.
- Machine learning (1990s-2000s): Models learn patterns from data. Generalizes, but limited to predictions - can't explain reasoning.
- Deep learning (2010s): Multi-layer neural networks. Image recognition, voice, translation. Superhuman at narrow tasks.
- Foundation models (2020-2022): Large pre-trained models. One model works across many tasks. Reasoning emerges at scale.
- Instruction-following LLMs (2022-2023): Models that follow instructions in natural language. The chatbot era.
- Agentic AI (2024+): LLMs with tools, memory, and loops. Not just responding - acting, observing, and completing goals autonomously.
Which Era Solves Which Problem?
Common Wrong Beliefs
Prelude: From ML Model to AI Agent
If you've built ML models or prediction APIs, an agent adds one critical capability: reasoning about context before acting. The same business problem can be solved with a hardcoded script, an ML prediction API, or an agent - and the difference is who decides what happens next.
Consider a UCC delinquency prediction task. A script follows fixed rules. An ML model predicts a probability. An agent reasons: "the ML score is borderline - let me look up the full filing history before recommending." The data is the same; the intelligence in the loop is different.
The Calculator vs. the Analyst
Before: a financial calculator gives you a number when you punch in inputs. A financial analyst uses calculators as tools - but also reads context, asks follow-up questions, and recommends a course of action.
The pain: the calculator is always faster and more accurate for arithmetic. But the analyst can handle the ambiguous case: "This company's debt-to-equity looks fine, but I noticed their largest customer just filed for bankruptcy - that changes the recommendation."
The mapping: ML models are calculators - fast, accurate, and limited to their training distribution. Agents are analysts - they use models as tools but also reason about context, gather missing information, and produce recommendations that account for the unexpected. You don't replace the calculator; you give it a brain.
Three Approaches to the Same Problem
| Approach | Decides | Handles exceptions? |
|---|---|---|
| Script | Programmer (at write time) | Only if programmer anticipated them |
| ML API | Model (at train time) | Only within training distribution |
| Agent | Claude (at run time) | Yes - reasons about unexpected cases |
- The script is fastest and cheapest - use it for well-defined, stable tasks
- The ML model is better for pattern recognition at scale
- The agent adds value only when context changes what the right action is - when "it depends" is the honest answer
When to Use Each Approach
Common Wrong Beliefs
Why Agents: The Business Case
The business case for agents rests on three properties no previous technology combined: they work with unstructured inputs (natural language, documents), they adapt their process to context (unlike fixed pipelines), and they can call external tools and APIs to gather information they weren't given upfront.
The seven canonical agent use cases are: document extraction and classification, research synthesis, code generation and review, customer support automation, data pipeline orchestration, multi-step form completion, and compliance monitoring. What unites them: all require reading context and deciding what action to take next.
The Contractor vs. The Vending Machine
Before: software historically worked like a vending machine. Put in a specific coin, get a specific item. Predictable, fast, and brittle. If you put in the wrong coin, nothing comes out.
The pain: real business tasks don't come with uniform coins. A customer might describe their problem in 10 different ways. An exception might require checking three different systems. A vending machine can't handle that.
The mapping: agents work like skilled contractors. You describe what you want in plain language. The contractor asks clarifying questions if needed, uses the right tools for each part of the job, handles surprises on the fly, and delivers the finished product. You don't need to specify every step - you describe the outcome.
Seven Agent Use Cases
- Document extraction: read PDFs, emails, contracts and pull structured data - even when format varies
- Research synthesis: search multiple sources, reconcile conflicting information, produce a report
- Code generation and review: write, test, and fix code in response to requirements
- Customer support: understand the issue, look up account data, apply business rules, resolve or escalate
- Data pipeline orchestration: decide what to transform, run queries, handle errors, notify on completion
- Compliance monitoring: check filings, compare against rules, flag violations with explanation
- Multi-step form completion: gather requirements, fill complex forms, validate output
Is This Task Agent-Worthy?
Common Wrong Beliefs
What Is an AI Agent? — The Three Levels
There are three distinct levels of LLM-powered programs. Only the third is an agent. The boundary between them comes down to one question: who decides what happens next - your code, or Claude?
Level 1 (LLM Call): your code decides everything; Claude just generates text. Level 2 (Chatbot): Claude responds to one message at a time; your code handles the turn-taking. Level 3 (Agent): Claude uses tools, decides what actions to take, and loops until the goal is achieved. The key capability that separates Level 3 is autonomous decision-making about what to do next.
The Autocomplete Spectrum
Before: phone autocomplete suggests the next word but doesn't write your message. Google Search finds pages but doesn't read them for you. A research assistant finds, reads, summarizes, and emails you a briefing - acting on your behalf across multiple steps.
The pain: every tool that falls short of your goal requires you to do the remaining steps manually. Autocomplete saves one word. Search saves one lookup. But you still have to synthesize, decide, and act.
The mapping: Level 1 (LLM call) is autocomplete - it completes text. Level 2 (chatbot) is a knowledgeable colleague you can converse with. Level 3 (agent) is that colleague who also has access to your systems, can run code, look things up, and come back with a finished deliverable rather than just an answer.
The Three Levels
| Level | Who decides? | Can use tools? | Loops? |
|---|---|---|---|
| 1 - LLM Call | Your code | No | No |
| 2 - Chatbot | Your code (turn by turn) | No (or limited) | No |
| 3 - Agent | Claude (autonomously) | Yes | Yes |
- A text summarizer that calls Claude once is Level 1. Claude generates text; your code does everything else.
- A support chatbot that responds to each message is Level 2. One turn per call, no tool use, your code orchestrates.
- A research agent that searches, reads, cross-checks, and writes a report is Level 3. Claude decides what to search next.
Which Level Are You Building?
Common Wrong Beliefs
See an Agent in Action
Abstract definitions only go so far. Let's trace a real agent interaction from start to finish. The example: a bank analyst asks "What's the total lien exposure for Acme Corporation across all states?" The agent doesn't know the answer - it has to go find it.
This 9-step walkthrough shows every phase: the question arrives, the agent reasons about what it needs, calls tools to gather data, observes results, reasons again, calls more tools, and finally synthesizes a complete answer. Each step maps to a concept you'll build in the course.
The Research Librarian
Before: you ask a library search engine for "lien exposure Acme Corporation." It returns a list of documents. You have to open each one, read it, cross-reference with other documents, and do the math yourself.
The pain: five states, forty filings, three different filing systems, each with different formats. The tool found the data; you're still doing 90% of the actual work.
The mapping: an agent is the librarian who doesn't just return results - they read every filing, calculate the totals by state, cross-check for amendments, and hand you a finished analysis. The same data sources. The same complexity. Zero work on your end once the question is asked.
The 9 Steps
- Receive: user question arrives ("lien exposure for Acme Corp across all states")
- Reason: Claude writes "Thought: I need to search UCC filings by debtor name across states"
- Act: Claude calls search_filings(debtor="Acme Corporation", state="all")
- Execute: your code runs the search, returns 47 matching filings
- Observe: Claude reads results - sees filings in 5 states, 3 with large collateral values
- Reason again: Claude writes "Thought: I need amendment status to avoid double-counting"
- Act again: calls check_amendments(filing_ids=[...])
- Synthesize: Claude calculates totals by state after removing superseded filings
- Return: delivers a formatted report with totals, breakdown by state, and risk flag
The 9-Step Flow
Common Wrong Beliefs
The Agent Architecture — 7 Building Blocks
Every production agent, no matter how simple or complex, is made of the same 7 components. You don't need all 7 to get started - a minimal agent needs only the first two. The others are added as the agent takes on harder tasks.
These 7 components map directly to the 9 course tracks. When you finish this course, you'll have built each component and understand how they connect. M00 shows you the map; the rest of the course builds the territory.
The Human Body Analogy
Before: a human body has specialized organs. The brain processes information. The hands take action. The eyes observe the environment. Memory stores what happened before. The immune system protects against threats.
The pain: you can't have a functional human body without all the organs working together. A brain with no hands can't act. Hands with no brain can't decide. Each part is useless without the others.
The mapping: an agent has the same structure. The Brain (LLM) reasons. Tools (hands) take action. Memory stores context. Planning (cerebral cortex) decomposes complex goals. Guardrails (immune system) protect against harm. Observability (nervous system) provides feedback. Deployment (skeleton) provides the structure to stand upright in production.
The 7 Components
- Brain (LLM): Claude. Reasons, plans, decides what tool to call next. Covered in M01-M04.
- Tools: functions the agent can call - search, database, code execution, APIs. Covered in M05-M07.
- Memory: conversation history, vector databases, episodic memory. Covered in M08-M11.
- Planning: task decomposition, DAG execution, multi-agent coordination. Covered in M12-M15.
- Guardrails: input/output validation, safety checks, human-in-the-loop. Covered in M16-M18.
- Observability: traces, logs, dashboards for monitoring agent behavior. Covered in M19-M20.
- Deployment: APIs, containers, cloud hosting, cost management. Covered in M21-M22.
Which Components Do You Need?
Common Wrong Beliefs
The Agent Lifecycle — 5 Stages
Building a production agent is not just writing code and deploying it. Production agents go through 5 stages, each adding a layer of capability and reliability. Skipping stages leads to agents that work in demos but fail in production.
The 5 stages are: Design (define the problem and architecture), Build (implement tools and the agent loop), Protect (add guardrails and safety), Observe (add tracing and monitoring), and Deploy (containerize, host, and scale). The course tracks map to these stages.
Building a House
Before: imagine building a house by skipping the foundation and framing and going straight to interior design. The walls look beautiful. Then it rains.
The pain: projects that skip stages - foundation (design), framing (build), waterproofing (protect), electrical inspection (observe), building permit (deploy) - fail at the stage they skipped. The failure always looks like a surprise; it was actually a skipped step.
The mapping: agent development follows the same pattern. Design without building = great architecture, no agent. Build without protect = works until a malicious input. Protect without observe = no idea when it breaks in production. Observe without deploy = it only runs on your laptop. All 5 stages are load-bearing.
The 5 Stages
- Design (Tracks 1-2): define the problem, pick the right LLM, design tool schemas, write the system prompt. Bad design = an agent that solves the wrong problem elegantly.
- Build (Tracks 2-4): implement tool functions, write the agent loop, add memory and planning. This is where most tutorials stop - it's not where production agents stop.
- Protect (Track 5): add input validation, output guardrails, PII redaction, human review checkpoints. Agents without protection are liability generators.
- Observe (Track 6): instrument with traces, set up dashboards, define alert thresholds. If you can't see what the agent is doing, you can't fix what breaks.
- Deploy (Track 7): containerize, add API authentication, set up auto-scaling, implement cost controls. A demo running on localhost is not a product.
Which Stage Are You In?
Common Wrong Beliefs
How Agents Actually Work — The API Reality
A common misconception: many people think an AI agent is a separate running process making decisions independently. The reality is simpler - and more empowering. An agent is your code calling Claude's API in a loop, with you always in control of what happens.
Claude has no persistent state between API calls. There's no background process, no autonomous "agent runtime" running somewhere. Between calls, Claude doesn't exist. Your code maintains all state, manages history, executes tools, and decides when the loop continues or stops.
The Stateless Consultant
Before: imagine a brilliant consultant who has total amnesia between meetings. Every meeting, they start fresh - brilliant intelligence, zero memory of last time.
The pain: the consultant gives extraordinary answers when given context. Without context, they give generic answers. The "intelligence" only activates when you bring the right information to each meeting.
The mapping: Claude is that consultant. Each API call starts fresh - no memory, no persistent state. Your code is the meeting facilitator: it brings the conversation history, the tool results, and the current question to every call. The "agent memory" is in your messages array, not in Claude. You are always in control of what Claude sees.
The Technical Reality
- API call: your code sends an HTTP POST to api.anthropic.com with the full conversation history, tool definitions, and the current user message
- Processing: Claude processes the entire context - history + tools + question - and returns either a text response or tool call requests
- Stateless: the server processes the request and returns the response - nothing persists between calls
- Your code executes tools: Claude returned tool call requests - your code runs the actual functions against your databases, APIs, and systems
- History management: your code appends each exchange to the messages array - this IS the agent's memory
The Full API Flow
Common Wrong Beliefs
Three Agents You'll Build
Theory only goes so far. This course has 5 capstone projects across 3 industry domains. Here are three representative capstones showing the progression from simple to production-grade, so you know what you're working toward from day one.
The three domains are Healthcare Pre-Authorization, B2B Ecommerce Order Tracking, and Public Records / UCC Data Engineering. Every domain appears in multiple capstones at increasing complexity - the same real-world problem solved with progressively more powerful tools.
The Difficulty Progression
Before: learning to drive by starting with Formula 1. You have the theory - throttle, steering, braking - but the stakes and complexity overwhelm the skill.
The pain: most tutorials jump straight to the complex case. "Here's a production-grade multi-agent system with RAG, guardrails, and observability." Helpful reference; terrible learning path.
The mapping: this course sequences capstones like a driving curriculum. Capstone 1 is an empty parking lot: one tool, one loop, immediate success. Capstone 3 adds a multi-agent team. Capstone 5 is the full production system. Each adds exactly one new concept to the working base you've already built.
The Three Capstone Levels
- Capstone 1 - Filing Lookup Agent: one tool, one loop, answers questions about UCC filings. Difficulty: 1 star. You'll build this after M05-M06. Time: 2-3 hours.
- Capstone 3 - Research Synthesis Agent: multi-tool, multi-source research with RAG memory and citations. Difficulty: 3 stars. Built after M09-M13. Time: 4-6 hours.
- Capstone 5 - Production Pre-Auth System: multi-agent team with guardrails, human review, tracing, and deployment. Difficulty: 5 stars. Built after M22. Time: 8-12 hours.
Pick Your Domain
Common Wrong Beliefs
Course Roadmap — 9 Tracks, 30 Modules
The course is organized into 9 tracks, each building on the previous. Tracks 1-2 give you the foundation. Tracks 3-4 add memory and agent architectures. Tracks 5-7 make agents production-ready. Track 8 applies everything to real projects. Track 9 prepares you for certification.
The progression is deliberate: you can't secure something you haven't built, can't observe something you haven't deployed, and can't certify knowledge you haven't applied. Each track's position in the sequence is load-bearing.
The Building Construction Sequence
Before: construction has a strict sequence: foundation before walls, walls before roof, roof before plumbing, plumbing before drywall. Deviating from the sequence creates structural problems downstream.
The pain: developers who jump to Track 4 (agent architectures) without Track 1 (LLM mental model) write agents that work by accident. They can't debug them because they don't understand the underlying token-by-token inference model.
The mapping: the course tracks follow construction logic. Foundation (Tracks 1-2) supports the walls (Tracks 3-4). Walls support the roof (Tracks 5-6). Roof enables habitation (Tracks 7-8). Inspection and certification (Track 9) confirms it's fit for purpose. Every track serves the ones above it.
The 9 Tracks
- Track 0 M00 — Course Overview (this module)
- Track 1 M01-M04 — Foundations (LLM, Tokens, Prompts, Structured Output)
- Track 2 M05-M07 — Tool Use (Function Calling, Orchestration, MCP)
- Track 3 M08-M11 — Memory & Context (Conversation, RAG, Advanced RAG, Memory)
- Track 4 M12-M15 — Agent Architectures (ReAct, Planning, Multi-Agent, Code)
- Track 5 M16-M18 — Guardrails & Safety (Input, Output, Evaluation)
- Track 6 M19-M20 — Observability (Tracing, Monitoring)
- Track 7 M21-M22 — Production (API Design, Cost Optimization)
- Track 8 M23-M24 — Capstones & What's Next
- Track 9 M25-M27 — Cert Prep (Claude Code, Hooks/SDK, Exam)
Where to Start?
Common Wrong Beliefs
Test Your Understanding
Tap each question to reveal the answer.
Ready to Build?
You've seen the complete picture - all 10 concepts, all 7 building blocks, all 5 lifecycle stages. The desktop module has the full live demo walkthrough, interactive animations, and reflection exercises.
Open the Full Module
Live agent demo - Interactive animations - Cert tips - Full knowledge check
Open M00 on Desktop