Dynamic Subagents: How to Run Parallel Agents Reliably in Deep Agents

LangChain · Beginner ·🤖 AI Agents & Automation ·3w ago

Key Takeaways

Builds a Deep Agents pipeline using LangChain to run parallel agents reliably with dynamic subagents

Original Description

Colin Francis, a software engineer at LangChain, walks through dynamic subagents — a new feature in Deep Agents that lets your agent spawn and coordinate subagents programmatically by writing code. Instead of relying on the agent to orchestrate dozens of tool calls in sequence (and inevitably losing the plot), the orchestration logic moves into code, giving you reliable coverage at scale and real control flow. The video covers all six patterns — from Classify and Act to Loop Until Done — with live LangSmith traces for each. 0:00 What are dynamic sub-agents? 0:31 Live demo: 15 parallel subagents in Deep Agents 1:44 Why sub-agents alone aren't enough 2:52 The book-summarization example 3:35 Orchestration in code vs. in the agent's head 4:40 How the code interpreter middleware works 5:01 The task global: spawning subagents from code 5:48 How to trigger it with the workflow keyword 6:52 The six patterns overview 7:24 Pattern 1: Classify and Act 11:01 Pattern 2: Fan Out and Synthesize 13:37 Pattern 3: Adversarial Verification 17:27 Pattern 4: Generate and Filter 21:00 Pattern 5: Tournament 23:29 Pattern 6: Loop Until Done 25:23 Wrap-up and getting started Extra resources: Deep Agents: https://www.langchain.com/deep-agents LangSmith: https://www.langchain.com/langsmith-platform
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
Completing the CI/CD Pipeline for AI Agents: How 3 New Skills Filled Critical Gaps
Learn how 3 new skills completed the CI/CD pipeline for AI agents, filling critical gaps in the five-stage framework
Dev.to AI
📰
Stripe wants to own the toll booth between AI models, for ~$10bn
Stripe is in talks to acquire OpenRouter for $10bn to own the toll booth between AI models, expanding its foothold in AI
The Next Web AI
📰
World Foundation raises $52 million in token sale as proof-of-human demand accelerates
World Foundation raises $52 million to expand its iris-scan-based system for proving human identity online, learn how AI-powered identity verification is accelerating
The Next Web AI
📰
FLUX 3 Learned to Predict Movement. Now the Factory Has to Give It Hands
FLUX 3, a generative AI model, can predict movement and is being integrated with robotics, requiring the development of physical hands for interaction
Medium · AI

Chapters (16)

What are dynamic sub-agents?
0:31 Live demo: 15 parallel subagents in Deep Agents
1:44 Why sub-agents alone aren't enough
2:52 The book-summarization example
3:35 Orchestration in code vs. in the agent's head
4:40 How the code interpreter middleware works
5:01 The task global: spawning subagents from code
5:48 How to trigger it with the workflow keyword
6:52 The six patterns overview
7:24 Pattern 1: Classify and Act
11:01 Pattern 2: Fan Out and Synthesize
13:37 Pattern 3: Adversarial Verification
17:27 Pattern 4: Generate and Filter
21:00 Pattern 5: Tournament
23:29 Pattern 6: Loop Until Done
25:23 Wrap-up and getting started
Up next
Build Agentic AI End-to-End Real-Time Projects | 2026
Rajeev Kanth | BEPEC
Watch →