Suffolk University • Sawyer Business School

Agent Patterns & Production Intelligence

ReAct reasoning, multi-agent architectures, and the patterns that separate demos from production systems

Session 6 of 13
150 Minutes
40 Students
Hands-On Learning
01 // LEARNING OBJECTIVES

What You'll Learn Today

By the end of this session, you'll have both conceptual understanding and hands-on experience with the foundations of AI.

01

Master the ReAct Pattern

Understand Reason + Act: how production agents think before they act, observe results, and adapt. Build an agent that reasons visibly through a multi-step research task.

02

Understand Multi-Agent Architectures

Learn three patterns — Pipeline, Debate, and Orchestrator — and when each is the right call. Design a multi-agent system on paper.

03

Build a ReAct Research Agent

Hands-on: take your Session 5 tools (Wikipedia, web fetch, calculator) and add a ReAct system prompt. Same tools, same loop — one paragraph transforms the behavior. Then push it to failure with real APIs.

04

Evaluate Agent ROI for Business

Apply the Automation Matrix to decide what to automate, what to augment, and what stays human. Calculate agent ROI with a real framework.

02 // SESSION AGENDA

Today's Journey

A carefully crafted progression from concepts to hands-on building.

5:00 PM - 5:12 PM

Part 1: The Pattern Gap

12 minutes

Bridge from Session 5's NanoClaw demo — the patterns behind production agents.

  • When NanoClaw researched for us live, did it call one tool and stop? No. It searched, evaluated, searched again, then answered. That's a PATTERN.
  • The Competence Ladder: Tool Use (Session 4) → Real APIs + Memory (Session 5) → ReAct + Multi-Agent + MCP (TODAY)
  • Three patterns we'll master: ReAct (think before acting), Multi-Agent (team of specialists), MCP (universal tool standard)
  • ACTION: Open Colab notebook now. API key ready. We're building a research agent that thinks before it acts.
5:12 PM - 5:40 PM

Part 2: ReAct Deep Dive

28 minutes

The pattern that powers every serious AI agent: Reason + Act. Think, then do, then evaluate, then decide what's next.

  • A (10 min): ReAct pattern explained. LIVE on projector: react-agent-example.html animated trace — watch an agent reason step-by-step. NanoClaw uses this exact pattern.
  • B (8 min): System prompt anatomy. The magic isn't in the code — it's in the SYSTEM PROMPT. The agent loop is identical to Session 5's run_agent(). Exercise: write a 3-sentence ReAct prompt for a different domain.
  • C (10 min): Three Levels live demo in notebook. Same question, three approaches: no tools → Session 5 agent → ReAct agent. Same tools for Levels 1 & 2 — watch the escalation in real-time.
5:40 PM - 6:25 PM

Part 3: Build a ReAct Research Agent

45 minutes

Hands-on in Colab. Build an agent that researches, evaluates sources, and synthesizes — with visible reasoning at every step.

  • Phase 1 (10 min): Bring back your Session 5 tools — same real Wikipedia API, web fetcher, and calculator. Verify they still work. Then see the Three Levels: no tools vs Session 5 agent vs ReAct agent — same question, same tools, dramatically different behavior.
  • Phase 2 (10 min): Wire the ReAct loop — it's your Session 5 run_agent() with ONE change: the system prompt tells the agent to THINK before acting. Run the same question and watch the transformation.
  • Phase 3 (15 min): Push the agent — try different topics, explore failure modes with REAL APIs. Wikipedia 404s, vague questions, made-up companies. When does it struggle? When does it recover?
  • Phase 4 (5 min): Generate a structured research report from the agent's conversation — key facts, source quality, confidence level
  • Phase 5 (5 min): Build Your Own Tool challenge — add a 4th tool using a real API (weather, country data, etc.). See the worked example, then build your own.
6:25 PM - 6:35 PM

Break

10 minutes

Stretch, grab coffee. Your agent now reasons before it acts — that's the production difference.

6:35 PM - 7:00 PM

Part 5: Multi-Agent Systems & MCP

25 minutes

One agent is useful. A team of agents is powerful. And MCP is how they connect to the world.

  • A (15 min): Three architectures — Pipeline (assembly line), Debate (adversarial review), Orchestrator (manager + workers). Org chart analogy: just like companies have departments.
  • Quick design exercise in pairs (4 min): Pick a business process, sketch a 3-agent pipeline on paper.
  • B (10 min): MCP = USB-C of AI. Build a tool once, every agent uses it. 1,000+ servers already exist.
  • NanoClaw's ipc-mcp.ts: See how a real production agent connects to tools via MCP.
  • Browse modelcontextprotocol.io live — Slack, GitHub, Google Drive, databases, and more.
7:00 PM - 7:18 PM

Part 6: Business Automation & Agent ROI

18 minutes

Where do agents create real business value? A framework for deciding what to automate, augment, or leave to humans.

  • The Automation Matrix: plot tasks on Volume (how often?) × Judgment (how much thinking?). Four quadrants: automate / augment / assist / don't bother.
  • Case studies: Invoice processing (full automation), sales outreach (agent + human review), strategy consulting (human + AI assist)
  • ROI formula: (Hours Saved × Hourly Cost × Error Reduction) − Agent Cost = Monthly Value
  • The Trust Equation: Agent autonomy scales as stakes shrink. High stakes = human in the loop. Low stakes = let it run.
  • Quick discussion: What task from your job or internship would you automate first? Where on the matrix does it land?
7:18 PM - 7:30 PM

Part 7: The Road Ahead + Wrap-Up

12 minutes

Where we've been, where we're going, and why the agentic arc is the future of this course.

  • Journey so far: AI Fundamentals (S1-2) → Prompts & Products (S3-4) → Real-World Agents (S5) → Agent Patterns (TODAY)
  • The agentic arc ahead: RAG (S7) → Multi-Agent Build (S8) → Industry Agents (S9) → Guardrails (S10) → Evaluation (S11) → Final Project (S12-13)
  • Homework preview: Extend your agent, critique its research, design a multi-agent system, explore MCP
  • The code difference between your Session 5 agent and today's ReAct agent was ONE system prompt paragraph. But the THINKING difference was everything.
03 // INTERACTIVE RESOURCES

Tools & Learning Materials

Everything you need to explore, experiment, and build.

Lecture

Session 6 Lecture Guide

Projectable lecture companion — visual slides for the full Session 6 lecture with key diagrams, code comparisons, and interactive navigation.

Open lecture guide
Key Concept

Advanced Agent Patterns

Visual explainer: ReAct reasoning, Chain-of-Thought planning, multi-agent architectures, and MCP. The patterns that power production AI agents.

View patterns
Start Here

ReAct Agent: Live Walkthrough

Watch a ReAct agent think step-by-step: search, evaluate sources, extract facts, and synthesize a research report. Interactive trace with real data.

Watch the agent
Hands-On

Research Agent Workshop Notebook

Take your Session 5 tools, change one system prompt, and watch the behavior transform. Three-level comparison, failure exploration with real APIs, and a structured report generator.

Open in Colab
Docs ?

Anthropic Agent Documentation

Official guide to building agentic systems with Claude. Covers tool use, multi-step reasoning, and best practices for production agents.

Read docs
Key Concept ?

Model Context Protocol (MCP)

The open standard for connecting AI agents to tools and data sources. Think USB-C for AI. Browse 1,000+ available servers.

Explore MCP
Guide

Building Effective Agents (Anthropic)

Anthropic's guide to building effective agents. Practical patterns, common pitfalls, and when to use agents vs. simpler solutions.

Read guide
Research

ReAct: Synergizing Reasoning and Acting

The original research paper that introduced the ReAct pattern. Showed that interleaving reasoning and action dramatically improves agent performance.

Read paper
Tool

Claude Code

Anthropic's agentic coding tool. A real-world example of everything we discussed: ReAct reasoning, tool use, multi-step planning, MCP.

Try Claude Code
04 // HANDS-ON ACTIVITIES

Learning by Doing

Three interactive challenges to build your intuition.

Activity 1

Build a ReAct Research Agent

45 minutes in Google Colab. Build an agent that uses ReAct reasoning to research, evaluate, and report:

1

Three Levels of Intelligence (10 min)

Bring back your Session 5 tools (real Wikipedia, web fetch, calculator). Run the same research question three ways: no tools, Session 5 agent, ReAct agent. See the difference one system prompt makes.

2

Wire the ReAct Loop (10 min)

The agent loop is your Session 5 run_agent() — the only change is the system prompt that tells the agent to THINK before each action. Watch the same tools produce dramatically better research.

3

Push the Agent (15 min)

Test failure modes with REAL APIs: Wikipedia 404s for made-up companies, vague opinion questions, ambiguous queries. Does the agent recover? Does it admit uncertainty? Does it hallucinate?

4

Report + Build Your Own Tool (10 min)

Generate a structured research briefing from the agent's work. Then add a 4th tool using a real API (weather, country data, etc.) — see the worked example and build your own.

Three Levels — Same Question
┌─────────────────────────────────────────────┐
│  LEVEL 0: No Tools                          │
│  → Generates text from training data        │
│  → "AI affects 40% of jobs..." (real? 🤷)   │
│  ❌ Looks good. No way to verify.           │
└─────────────────────────────────────────────┘

┌─────────────────────────────────────────────┐
│  LEVEL 1: Session 5 Agent (same tools!)     │
│  → wikipedia_search("AI")                   │
│  → "Here's what Wikipedia says: [dump]"     │
│  ⚠️  Real data, but grabbed first result.   │
└─────────────────────────────────────────────┘

┌─────────────────────────────────────────────┐
│  LEVEL 2: ReAct Agent (same tools!!!)       │
│  THINK: Need employment data + sources      │
│  → wikipedia_search("Technological_unemp")  │
│  OBSERVE: Good background, need specifics   │
│  THINK: Let me find more targeted data      │
│  → wikipedia_search("AI_and_employment")    │
│  OBSERVE: Better. Let me verify...          │
│  → fetch_web_page("https://...")            │
│  THINK: Have enough. Let me synthesize.     │
│  ✅ Planned. Evaluated. Synthesized.        │
└─────────────────────────────────────────────┘
Activity 2

Multi-Agent Design Challenge

Design a multi-agent system for a real business process. Think like an architect:

1

Pick a Business Process

Choose one: customer support ticket handling, weekly competitor report, content publishing pipeline, or employee onboarding. Or pick something from your own experience.

2

Define Your Agents (3+ agents)

Name each agent, define its specialty, list its tools, and describe when it hands off to the next agent. Think org chart — each agent is a department.

3

Draw the Flow

Sketch the pipeline: triggers, handoffs, decision points, and human review gates. Where does a human need to approve? Where can agents run autonomously?

4

Present to Another Pair (3 min)

Walk them through your design. They ask: Where could this fail? What needs human oversight? What's the ROI? How does information distort across agents?

Multi-Agent Pipeline Example
┌──────────────┐    ┌──────────────┐    ┌──────────────┐
│  RESEARCHER  │───>│    WRITER    │───>│   EDITOR     │
│              │    │              │    │              │
│ Tools:       │    │ Tools:       │    │ Tools:       │
│ • web_search │    │ • draft_doc  │    │ • check_facts│
│ • read_pdf   │    │ • format     │    │ • check_tone │
│ • summarize  │    │ • cite       │    │ • score      │
│              │    │              │    │              │
│ Output:      │    │ Output:      │    │ Output:      │
│ Research     │    │ Draft        │    │ Final report │
│ brief        │    │ report       │    │ + score      │
└──────────────┘    └──────────────┘    └──────────────┘
        │                                      │
        │          ┌──────────────┐             │
        └─────────>│  COORDINATOR │<────────────┘
                   │              │
                   │ Decides:     │
                   │ • Good enough?│
                   │ • Redo step? │
                   │ • Send to    │
                   │   human?     │
                   └──────────────┘
? Activity 3

Automation ROI Assessment

Apply the Automation Matrix to a real business process and calculate potential ROI:

1

Pick a Process You Know

Choose a repetitive business task from your job, internship, or a company you admire. Something done at least weekly.

2

Map It on the Automation Matrix

Plot it on two axes: Volume (how often?) and Judgment Required (how much human thinking?). Decide: Full automation, augmentation, or human-only?

3

Calculate the ROI

Estimate: Hours per week × hourly cost × 52 weeks = annual cost. Subtract agent cost (~$50-200/month API). Factor in error reduction. What's the payback period?

4

Identify the Risks

What could go wrong? What's the worst-case failure? Where do you need a human-in-the-loop checkpoint? What's the cost of a wrong answer?

05 // KEY TAKEAWAYS

What to Remember

ReAct = Think before you act. The best agents don't just execute — they reason about what to do, observe results, and adapt. This pattern separates toy demos from production systems.

Agent teams beat solo agents. Just like human organizations, specialized agents collaborating on complex tasks produce better results than one agent trying to do everything.

?

MCP is the USB-C of AI. The Model Context Protocol means you build a tool integration once and every agent can use it. This standard is reshaping how agents connect to the world.

Automate the routine, augment the judgment. The Automation Matrix helps you decide what to fully automate, what to augment with AI, and what must stay human.

?

The code changed one paragraph. The thinking changed everything. Your Session 5 agent — same tools, same loop — became a research powerhouse with one system prompt change. That's the ReAct pattern.

06 // HOMEWORK

Before Next Session

Complete these tasks before our next class to prepare for prompt engineering.

Extend: Add a 4th tool to your research agent (e.g., competitor_lookup, financial_data, or industry_news). Test it with 3 different business questions and document the reasoning traces.
Analyze: Pick one research output from your agent. Write a 1-page critique: Were the sources credible? Did the reasoning have gaps? What would a human analyst do differently?
Design: Write a 1-page multi-agent system proposal for a business process you care about. Include: 3+ agent roles, tools for each, handoff logic, human review gates, and estimated ROI.
Explore: Browse modelcontextprotocol.io and find 3 MCP servers relevant to your final project idea. Write one paragraph each on how they would help your agent.
Read: Read Anthropic's 'Building Effective Agents' guide. Write 3 key takeaways and identify one scenario where you should NOT use an agent.
Coming Next

Session 7: Knowledge Agents — RAG

Your agent is smart, but it doesn't know YOUR business. Add company knowledge with Retrieval-Augmented Generation.

RAGKnowledge AgentsDocument SearchLong Context