AIDeveloper44 logoaideveloper44home of every ai dev release
← all tools
LangChain·Jun 29, 2026·open source

Dynamic Subagents

Dynamic Subagents is a feature within the Deep Agents framework that allows agents to programmatically orchestrate sub-tasks by writing and executing scripts in a ligh…
Agentic AIFrameworksOpen SourceFree
Visit WebsiteDocs

What is Dynamic Subagents?

Dynamic Subagents is a feature within the Deep Agents framework that allows agents to programmatically orchestrate sub-tasks by writing and executing scripts in a lightweight, secure interpreter. This enables agents to perform complex, multi-phase, and conditional workflows—such as fan-out/synthesis or loops—more reliably than standard turn-by-turn tool calling.

Dynamic Subagents represent a significant advancement in agent orchestration by allowing AI models to write code that dynamically manages sub-agent execution. Rather than relying on rigid, sequential tool calls, agents can now define orchestration logic—such as loops, branching, and concurrency—using a secure, built-in code interpreter based on QuickJS. This ensures structural guarantees for task coverage and complex multi-phase pipelines, overcoming the limitations of traditional, non-programmatic agent workflows.

Who Dynamic Subagents is for

Teams and individual developers working in Agentic AI and Frameworks.

AI engineers

Build, orchestrate and debug multi-step agents

Automation engineers

Replace manual multi-step workflows with tool-calling agents

Full-stack developers

Add AI features to existing products

Product teams

Prototype and ship agent-powered features

Startup teams

Go from prototype to production on one stack

Key features

01Programmatic orchestration via a secure JavaScript-based (QuickJS) code interpreter
02Deterministic execution of complex patterns like fan-out/synthesis, looping, and conditional branching
03Isolated context windows for subagents to maintain main agent performance
04Simplified task dispatching using a built-in task() global function
05Structured output support via optional responseSchema for typed results
06Native compatibility with dcode terminal coding agent and existing Deep Agents toolsets

Dynamic Subagents use cases

Horizontal · cross-industry

Workflow orchestrationMulti-step tool-calling agents with planning, retries and state
Agent frameworksTyped tools, memory and structured outputs
Browser automationAgents that navigate, fill forms and extract data from web apps

Vertical · domain-specific

Customer supportTicket triage agents connected to CRM and knowledge-base APIs
SaaSAdd copilots and AI features to an existing product
Finance opsInvoice reconciliation against ERP data with anomaly flags