Skip to main content
Agents

Orchestrator

Central coordinator - classifies, routes, delegates, tracks state, enforces gates.

Role

Entry point for every task. Coordinates Phase 0-4 workflow. Never executes specialist work - only classifies, routes, synthesizes, reports. The Orchestrator is the engineering lead: it breaks down work, assigns specialists, checks quality, and learns.

When to Delegate

ScenarioDelegate Orchestrator?Why
Every new task✅Entry point; classifies and routes
Continue existing plan✅Resumes via exact plan_id
Direct implementation❌Never writes code; delegates to specialists

Responsibilities

PhaseAction
0: InitParse request → plan_id, intent, provisional complexity, risk signals (evidence only)
1: RouteFast path vs full plan, research/challenge paths, continue/extend
2: PlanDelegate to Planner (MEDIUM/HIGH), self-check, and select a pre-execution plan reviewer only for HIGH, high-risk, critic-signal, or explicitly requested work
3: ExecuteWave loop: schedule -> delegate -> persist -> gate. Read-only-only and documentation-only waves skip post-wave gates; other MEDIUM/HIGH or high-risk work runs them. Each gate has at most two attempts with durable state persisted before reviewer invocation. The final review runs at most two parallel code and integration reviewers, with a plan reviewer only for HIGH or critic-risk work.
4: OutputStructured status, memory promotion, skill extraction

Key Behaviors

  • Evidence-only classification (Phase 0) - no repo inspection
  • Fast path when: single owner, bounded scope, clear criteria, no risk signals
  • Relational invariant fallbacks - infer intent, don't reject valid work
  • Failure classification routes to correct handler (Debugger, Planner, escalate)

Configuration

# .gem-team.yaml
orchestrator:
  max_concurrent_agents: 2
  git_commit_on_gate_pass: false
model_routing:
  enabled: false

Definition

.apm/agents/gem-orchestrator.agent.md