
A detailed, course-aligned reference covering LangSmith tracing, datasets, custom evaluators, experiment comparisons, monitoring dashboards, feedback, privacy and debugging. Examples use Python and GPT-4o mini.
Building an agent that can plan, work across business systems, manage context, delegate work, recover from failures and safely execute real actions is a very different engineering problem.
LangChain Deep Agents: Building Agent Harnesses is a practical course focused on that engineering layer.
Rather than treating the model as the complete agent, we will look at the agent harness around the model — planning, tools, MCP, files, memory, skills, subagents, middleware, permissions, human-in-the-loop, observability and evaluations.
The course is built around five progressively more capable mini-projects.
You will begin with a Tech Research Assistant to understand Deep Agents, planning and tool use.
Next, you will build a MySQL-backed Customer Support Agent that verifies customers, checks orders, handles errors gracefully and performs controlled business actions.
You will then build an Inventory MCP Assistant, where agent capabilities are exposed through an MCP server. You will learn tool discovery, capability filtering and the important Discover → Filter → Expose pattern.
The fourth project is a Sales Account Research Assistant using files, memory, skills, runtime context and specialized subagents to manage larger research workflows.
Finally, you will build an Order Operations Deep Agent with middleware, retry and fallback patterns, filesystem permissions, checkpointing and human-in-the-loop decisions such as approve, edit, reject and respond.
Along the way, we will also explore LangSmith tracing, agent evaluations, context engineering and common production failure modes.
The goal is not to create unnecessarily complex multi-agent systems. Instead, you will learn when each capability actually adds value.
By the end of the course, you should be able to move beyond:
“I can build an agent that calls tools.”
toward:
“I can engineer the harness around an agent.”
That means designing its capabilities, controlling its context, connecting external systems, constraining risky actions and observing whether the agent is actually behaving as intended.
The course is highly practical, Python-based and built around runnable projects rather than isolated API demonstrations.
Course Structure
Module 1 — From LangChain Agents to Deep Agents
Core concepts
Deep Agents and the agent harness
create_deep_agent
model configuration
structured system prompts
tools
planning
TodoListMiddleware
write_todos
name
debug
Mini-project: Tech Research Assistant
Progression:
Simple Agent → Planning Agent
Module 2 — Tools, MySQL and Real-World Agent Actions
Core concepts
@tool
Pydantic args_schema
narrow business tools
parameterized SQL
MySQL
read vs action tools
structured responses
graceful tool errors
ModelRetryMiddleware
lightweight resilience
Mini-project: AI Customer Support Agent
Progression:
Reasoning → Business-System Actions
Module 3 — MCP: Giving Deep Agents External Capabilities
Core concepts
MCP architecture
FastMCP
stdio
MCPAdapter
MCP tool discovery
list_tools()
capability filtering
local tools + MCP tools
remote MCP concepts
OAuth concepts
least privilege
Mini-project: Inventory MCP Assistant
Progression:
Local Tools → Reusable External Capabilities
Module 4 — Planning, Files, Memory and Subagents
Core concepts
agent filesystem
working files
AGENTS. md
memory
skills
runtime context
checkpointer
specialized subagents
general-purpose subagents
context isolation
when not to use subagents
Mini-project: Sales Account Research Assistant
Progression:
Single Agent → Context-Managed Agent Harness
Module 5 — Reliable and Production-Ready Deep Agents
Core concepts
AgentMiddleware
middleware ordering
retry
fallback
prompt caching concepts
permissions
human-in-the-loop
approve / edit / reject / respond
checkpointing
streaming concepts
LangSmith
observability
evaluations
production failure modes
Mini-project: Order Operations Deep Agent
Progression:
Capable Agent → Controlled Production Agent
Five Mini-Projects
1. Tech Research Assistant
Planning, local tools and recommendation workflows.
2. AI Customer Support Agent
MySQL, structured tools, controlled actions and error handling.
3. Inventory MCP Assistant
MCP tool discovery, inventory lookup, shortage calculation and supplier research.
4. Sales Account Research Assistant
Subagents, files, memory, skills and context management.
5. Order Operations Deep Agent
Middleware, HITL, permissions, tracing and evaluations.