Docs assistant

Searches these docs locally; a configured answer service can generate responses.

Ask about this page or the wider Carina docs. Try: “How do I roll back a patch?”

llms.txt

Skip to content

Markdown

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.

agent:NAME:profile:PROFILE

Built-in policy requires approval by default. The child’s capabilities are attenuated before the spawn completes — children cannot mint new authority upward.

spawn.json
{"tool":"spawn","agent":"scout","task":"Map module boundaries"}
  • Declarative manifest per agent
  • Per-agent tool allow-list
  • "tasks":[…] runs multiple tasks in parallel
PatternDescription
Research forkRead-heavy child gathers context
Patch workerWrite-scoped child applies a bounded edit set
Review swarmParallel reviewers with no write access
Workflow stepsEach workflow step is an isolated, attenuated subagent
  1. Unconstrained children amplify blast radius
  2. Audit records nest under the parent turn
  3. Parent remains the recovery and approval authority
  • Capability: SubagentSpawn · attenuation rules in docs/security-model.md / policy kernel
  • Orchestration preferred path: Workflows
  • Related: Agents overview · Policy

Was this page helpful?

One vote per page is recorded during this session.