Skip to main content
Agent Teams Lite implements a sub-agent architecture where a main orchestrator delegates specialized tasks to focused sub-agents. Each sub-agent is responsible for one phase of the Spec-Driven Development (SDD) workflow.

How It Works

The Orchestrator

The orchestrator is responsible for:
  • Parsing user intent
  • Resolving which sub-agent(s) to launch
  • Passing context and configuration to sub-agents
  • Interpreting sub-agent results
  • Deciding the next recommended action
The orchestrator never implements tasks directly — it always delegates to specialized sub-agents.

Sub-Agents

Each sub-agent is a skill loaded dynamically via the skill tool. Sub-agents are:

Communication Protocol

Sub-agents communicate with the orchestrator via structured result envelopes.

Result Envelope Structure

Every sub-agent returns a result following the result contract:
The orchestrator parses this envelope and decides:
  • Should we proceed to the next phase?
  • Should we ask the user for input?
  • Should we fix issues first?

Persistence Modes

Sub-agents operate in one of three persistence modes: The orchestrator passes the artifact_store.mode to each sub-agent. Sub-agents follow the persistence contract to determine read/write behavior.

Skill Loading

Sub-agents are loaded dynamically using the skill tool:
Each skill has:
  • Frontmatter with metadata (name, description, version, trigger conditions)
  • Instructions for the sub-agent
  • Shared conventions (loaded from skills/_shared/)

Why This Architecture?

Separation of Concerns

Each sub-agent has a single, well-defined responsibility. The orchestrator doesn’t need to know HOW to write specs — it just needs to know WHEN to launch the spec-writer.

Reusability

Sub-agents can be composed into different workflows. For example:
  • /sdd-new launches: explore → propose → spec → design → tasks
  • /sdd-continue launches: apply → verify
  • /sdd-explore launches: explore only

Testability

Each sub-agent can be tested in isolation by passing it a mock context and validating the result envelope.

Extensibility

New sub-agents can be added without modifying the orchestrator’s core logic. Just add a new skill and teach the orchestrator when to trigger it.

Version 2.0 Enhancements

Agent Teams Lite v2.0 introduced:
  • TDD support in sdd-apply: Detects TDD mode and follows RED → GREEN → REFACTOR
  • Real execution in sdd-verify: Runs tests and builds, not just static analysis
  • Spec compliance matrix: Cross-references spec scenarios with test results
  • Coverage validation: Optional coverage threshold enforcement
  • Behavioral evidence: Verification now requires PASSING tests, not just code existence
See the Implementer and Verifier docs for details.