Dynamic Subagents
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.