
Deep Agents Orchestration
This covers Deep Agents' three orchestration patterns: delegating work to specialized subagents via the task tool, planning complex workflows with todo lists, and requiring human approval for sensitive operations. The subagent delegation is especially useful when you need to isolate complex work or use specialized tools without cluttering your main agent's context. The examples show practical patterns like creating researcher subagents with custom tools, setting up approval workflows for database operations, and managing multi-step API development tasks. One thing to watch out for is that custom subagents don't inherit skills from the main agent, so you need to explicitly configure their capabilities.
- skills.sh installs
- 16.8K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add langchain-ai/langchain-skills --skill deep-agents-orchestration --agent claude-codeInstalls into .claude/skills of the current project.
Files
- SubAgentMiddleware: Delegate work via
tasktool to specialized agents - TodoListMiddleware: Plan and track tasks via
write_todostool - HumanInTheLoopMiddleware: Require approval before sensitive operations
All three are automatically included in create_deep_agent().
Subagents (Task Delegation)
| Use Subagents When | Use Main Agent When |
|---|---|
| Task needs specialized tools | General-purpose tools sufficient |
| Want to isolate complex work | Single-step operation |
| Need clean context for main agent | Context bloat acceptable |
Default subagent: "general-purpose" - automatically available with same tools/config as main agent.
Create a custom "researcher" subagent with specialized tools for academic paper search.Sponsors
Details
More from langchain-ai/langchain-skills
All 15- Langchain Dependencies16.8K
- Deep Agents Core16.7K
- Managed Deep Agents10K
- Langgraph Cli9.7K
- Swarm9.5K
- Ecosystem Primer8.8K
- Framework Selection7.7K
- Deep Agents Memory19.8K
- Langgraph Fundamentals18.9K
- Langgraph Persistence18.8K
- Langchain Rag18.4K
- Langchain Fundamentals18.2K
- Langgraph Human In The Loop18K
- Langchain Middleware17K