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.
Built on the Deep Agents framework, this feature is designed to handle ambitious, long-running tasks that require more than simple linear reasoning. By offloading orchestration to executable code, developers can achieve deterministic results at scale, making it ideal for processes like document summarization, large-scale code reviews, and adversarial verification. The system is model-agnostic, supporting any LLM with tool-calling capabilities, and integrates seamlessly with existing Deep Agents tools and LangSmith for observability.
Dynamic Subagents is built by LangChain and fits into the Agentic AI and Frameworks categories. It was released on Jun 29, 2026.
Dynamic Subagents is free to use and open source. Teams typically use it for workflow orchestration, agent frameworks, browser automation and model abstraction, with domain-specific use in Customer support, SaaS, Finance ops and Education.
Who Dynamic Subagents is for
Teams and individual developers working in Agentic AI and Frameworks.