---
title: "Introducing Dynamic Subagents in Deep Agents"
url: https://daily.dev/posts/introducing-dynamic-subagents-in-deep-agents-ng7rvjkav
source_url: https://www.langchain.com/blog/introducing-dynamic-subagents-in-deep-agents
type: article
source: "LangChain"
published: 2026-07-08T19:22:58.005Z
updated: 2026-08-24T06:54:08.253Z
tags: ["javascript", "ai-agents", "langchain"]
reading_time: 9
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing Dynamic Subagents in Deep Agents

**[LangChain](https://daily.dev/sources/langchain)** · 9 min read · 0 upvotes · 0 comments

## Summary

LangChain introduces dynamic subagents in Deep Agents, a feature that lets AI agents write short orchestration scripts (JavaScript) to dispatch and manage subagents programmatically rather than through sequential tool calls. This approach solves two key problems: deterministic coverage at scale (e.g., processing 300 pages via a loop instead of 300 tool calls) and reliable complex orchestration with fan-out, branching, and multi-phase pipelines. The post covers six orchestration patterns — classify and act, fanout and synthesize, adversarial verification, generate and filter, tournament, and loop until done — with live traces for each. Setup requires installing the QuickJS middleware and using the CodeInterpreterMiddleware with create_deep_agent, or using the dcode terminal agent which ships with the feature enabled out of the box.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.langchain.com/blog/introducing-dynamic-subagents-in-deep-agents>

## Similar posts on daily.dev

- [Deep Agents v0.5](https://daily.dev/posts/deep-agents-v0-5-x8sraelyt) · LangChain · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#ai-agents](https://daily.dev/tags/ai-agents), [#langchain](https://daily.dev/tags/langchain)

[View this post on daily.dev](https://daily.dev/posts/introducing-dynamic-subagents-in-deep-agents-ng7rvjkav)
