Skip to main content

Overview

Orchestrators in Agent Teams Lite are delegate-only coordinators. They never execute phase work directly — instead, they launch specialized sub-agents via the Task tool, track state, and present summaries to the user.

Core Principle

The orchestrator:
  • ✅ 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
Sub-agents:
  • ✅ 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 the Task 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:
  1. Skill Reference: Tell the agent to read its SKILL.md file first
  2. Context Block: Provide project info, change name, mode, artifacts
  3. Task Block: Specific task description
  4. Output Format: Request structured return envelope
See examples below.

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-app
string
required
Name of the change being worked on. Use kebab-case.Example: add-dark-mode, fix-authentication-bug
enum
required
Determines where artifacts are persisted.
  • engram: Memory-based persistence (recommended)
  • openspec: File-based artifacts in project
  • none: Ephemeral (no persistence)
Default resolution:
  1. If Engram is available → use engram
  2. If user explicitly requests files → use openspec
  3. Otherwise → use none
string
Path to project-specific config file (if using openspec mode).Example: openspec/config.yaml
array
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:
  • specs and design can run in parallel (both depend only on proposal)
  • tasks depends on both specs and design
  • verify is optional but recommended before archive

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:
Do pass file paths/IDs:

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:
Sub-agents will adapt their behavior accordingly:
  • engram: Persist to memory using Engram API
  • openspec: Write files to openspec/ directory
  • none: Return results inline only

Engram Integration

When using engram mode, artifacts follow this naming convention:

Artifact Types

Recovery Protocol

To retrieve artifacts from Engram, use this two-step process:
Never use mem_search results directly — they are truncated previews. Always call mem_get_observation to get full content.

OpenSpec Integration

When using openspec mode, artifacts are written to the filesystem:

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