When to Use Sub-Agents
Use sub-agents when:- Task has distinct phases needing different expertise
- Want to parallelize work
- Need specialized agents for specific tasks
- Main agent receives customer inquiry
- Delegates to Research sub-agent
- Delegates to Analysis sub-agent
- Compiles results
Creating a Sub-Agent Call
Agents with access to compatible connector can call other agents:- Creates execution context
- Passes data/context
- Waits for response
- Uses results in own reasoning
Configuration
Enable Sub-Agent Delegation
- Agents > Select main agent
- Settings > Capabilities
- Attach Agent Caller connector (if available)
- Save
Call Sub-Agent
In agent system prompt, add instructions:Sub-Agent Handoff
Smooth handoff between agents:Best Practices
Clear Specialization
Each sub-agent should have clear, specific role.Error Handling
Handle sub-agent failures gracefully:Data Passing
Only pass necessary context to sub-agents. Too much context = higher costs.Avoid Infinite Loops
Sub-agents shouldn’t call parent agent. Set recursion limit to 3.Architecture Example
Each sub-agent handles specific type of task.Monitoring
Check sub-agent activity:- Agents > Select main agent
- Activity tab
- See sub-agent calls and responses
Costs
For current pricing details, see Pricing. Sub-agent calls are charged same as regular agent execution. Monitor in Account > Usage dashboard.Delegation Details
How Delegation Works
When an agent delegates to a sub-agent, the platform uses a syntheticdelegate_agent tool. The parent passes a task description and context, the sub-agent executes with its own capabilities, and the result flows back to the parent.
Delegation Depth
Sub-agents can delegate to their own sub-agents, creating a chain. The default maximum depth is 3 levels. The platform tracks lineage (which agent called which) for observability and to enforce depth limits.Shared Work Budget
Parent and child agents share the same work budget. A sub-agent’s token usage and tool calls count toward the parent’s budget. This prevents runaway costs from deep delegation chains.Isolated Threads
Each sub-agent gets its own thread for execution. It doesn’t see the parent’s conversation history — only the task and context explicitly passed to it. This keeps sub-agents focused on their specific task.Limitations
- Sub-agents can’t see parent conversation history
- Can’t modify sub-agent behavior mid-call
- Sub-agent response must be usable by parent
- Maximum delegation depth: 3 levels (default)