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
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"
Type of sub-agent to spawn. Currently only
"general" is supported.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:Absolute path to the project root directory.Example:
/home/user/my-appName of the change being worked on. Use kebab-case.Example:
add-dark-mode, fix-authentication-bugDetermines 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
Path to project-specific config file (if using
openspec mode).Example: openspec/config.yamlList 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:| Command | Action | Sub-Agents Launched |
|---|---|---|
/sdd-init | Initialize project | sdd-init |
/sdd-explore <topic> | Explore codebase | sdd-explore |
/sdd-new <name> | Start new change | sdd-explore → sdd-propose |
/sdd-ff [name] | Fast-forward | sdd-propose → sdd-spec + sdd-design → sdd-tasks |
/sdd-apply [name] | Implement tasks | sdd-apply (batched) |
/sdd-verify [name] | Verify implementation | sdd-verify |
/sdd-archive [name] | Archive change | sdd-archive |
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
| Type | Produced By | Description |
|---|---|---|
explore | sdd-explore | Exploration analysis |
proposal | sdd-propose | Change proposal |
spec | sdd-spec | Delta specifications |
design | sdd-design | Technical design |
tasks | sdd-tasks | Task breakdown |
apply-progress | sdd-apply | Implementation progress |
verify-report | sdd-verify | Verification report |
archive-report | sdd-archive | Archive closure with lineage |
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