Sub-agents
Delegate work with SubagentSpawn and capability attenuation.
Sub-agents run delegated tasks under a strict subset of the parent session’s capabilities. Spawn is mediated by the SubagentSpawn capability.
Spawn resource shape
Section titled “Spawn resource shape”agent:NAME:profile:PROFILEBuilt-in policy requires approval by default. The child’s capabilities are attenuated before the spawn completes — children cannot mint new authority upward.
Agent tool
Section titled “Agent tool”{"tool":"spawn","agent":"scout","task":"Map module boundaries"}- Declarative manifest per agent
- Per-agent tool allow-list
"tasks":[…]runs multiple tasks in parallel
Patterns
Section titled “Patterns”| Pattern | Description |
|---|---|
| Research fork | Read-heavy child gathers context |
| Patch worker | Write-scoped child applies a bounded edit set |
| Review swarm | Parallel reviewers with no write access |
| Workflow steps | Each workflow step is an isolated, attenuated subagent |
Why attenuate
Section titled “Why attenuate”- Unconstrained children amplify blast radius
- Audit records nest under the parent turn
- Parent remains the recovery and approval authority
Source of truth
Section titled “Source of truth”- Capability:
SubagentSpawn· attenuation rules indocs/security-model.md/ policy kernel - Orchestration preferred path: Workflows
- Related: Agents overview · Policy
- Workflow tutorial — multi-step review with attenuated steps
- Common workflows — spawn recipe
Was this page helpful?
What went wrong?
Thanks for the feedback.
One vote per page is recorded during this session.