Overview
Orchestrators in Agent Teams Lite are delegate-only coordinators. They never execute phase work directly — instead, they launch specialized sub-agents via theTask tool, track state, and present summaries to the user.
Core Principle
- ✅ Tracks which artifacts exist
- ✅ Launches sub-agents
- ✅ Presents summaries
- ✅ Asks for user approval
- ❌ Never reads source code directly
- ❌ Never writes implementation code
- ❌ Never writes specs/proposals/designs
- ✅ Read source code
- ✅ Write code
- ✅ Run tests
- ✅ Create artifacts
- ✅ Use any installed skills (TDD, React, TypeScript, etc.)
Launching Sub-Agents
The Task Tool
Orchestrators launch sub-agents using theTask tool with this pattern:
Real Example: Launching sdd-propose
Prompt Structure
string
required
Brief human-readable description of what this sub-agent will do.Format:
"{phase} for {change-name}"Examples:"Explore codebase for CSV export feature""Create proposal for add-dark-mode""Implement Phase 1 tasks for authentication"
string
default:"general"
Type of sub-agent to spawn. Currently only
"general" is supported.string
required
Full instructions for the sub-agent. Should follow this structure:
- Skill Reference: Tell the agent to read its SKILL.md file first
- Context Block: Provide project info, change name, mode, artifacts
- Task Block: Specific task description
- Output Format: Request structured return envelope
Context Block Format
The context block provides essential information to the sub-agent:string
required
Absolute path to the project root directory.Example:
/home/user/my-appstring
required
Name of the change being worked on. Use kebab-case.Example:
add-dark-mode, fix-authentication-bugenum
required
Determines where artifacts are persisted.
engram: Memory-based persistence (recommended)openspec: File-based artifacts in projectnone: Ephemeral (no persistence)
- If Engram is available → use
engram - If user explicitly requests files → use
openspec - Otherwise → use
none
string
Path to project-specific config file (if using
openspec mode).Example: openspec/config.yamlarray
List of artifacts from previous phases that this sub-agent needs to read.For engram mode: Include observation IDsFor openspec mode: Include file pathsExample:
Sub-Agent Response Format
Sub-agents return a structured envelope:Example Response
Orchestrator Workflow
Basic Flow
Dependency Graph
The orchestrator follows this dependency graph:specsanddesigncan run in parallel (both depend only onproposal)tasksdepends on bothspecsanddesignverifyis optional but recommended beforearchive
Example Workflows
Fast-Forward (Create All Planning Artifacts)
When a user runs/sdd-ff {change-name}, the orchestrator launches phases sequentially:
Implementation with Batching
For large task lists, the orchestrator batches work:State Tracking
The orchestrator maintains minimal state between sub-agent calls:Example State Tracking
Command Mapping
User commands map to orchestrator actions:Best Practices
1. Keep Orchestrator Context Minimal
❌ Don’t pass full file contents to sub-agents:2. Always Show Summaries
After each sub-agent completes, show the user a summary and ask to proceed:3. Batch Large Task Lists
Don’t send 50 tasks to one sub-agent. Break into phases:4. Handle Blockers Gracefully
If a sub-agent reports a blocker, don’t continue blindly:5. Support All Persistence Modes
Always pass the artifact store mode to sub-agents:engram: Persist to memory using Engram APIopenspec: Write files toopenspec/directorynone: Return results inline only
Engram Integration
When usingengram mode, artifacts follow this naming convention:
Artifact Types
Recovery Protocol
To retrieve artifacts from Engram, use this two-step process:OpenSpec Integration
When usingopenspec mode, artifacts are written to the filesystem:
Related Resources
SKILL.md Format
Learn how to write skill files for sub-agents
Persistence Modes
Understand engram, openspec, and none modes
Example Commands
See real orchestrator workflows in action