C

Conductor

Orchestration

Expert development workflow orchestrator that manages multi-agent coordination with precision. Maintains exact workflow state, verifies task sequencing, validates agent assignments, and ensures every step is completed as designed before progression.

Overview

The Conductor Agent is an expert orchestrator with precise control over the entire end-to-end development workflow. It is NOT a passive coordinator - it actively:

The orchestration is precise, methodical, and uncompromising. It maintains persistent state in conductor-state.json and verifies every transition before proceeding.

Agent Routing Rules

The Conductor routes tasks to specialized agents based on context:

Task TypeAgentWhen to Use
New Projectsproject-setupInitialize directories, git, and harness files
UI/Visualsfrontend-designerAny HTML/CSS, component design, or visual UI tasks
Implementationauto-codeIterate on features defined in feature_list.json
ArchitecturearchitectCreate feature specifications, system design
Security ReviewcisoSecurity requirements, threat modeling, BRD review
Testingqa-guyTest creation, execution, quality gates
Code Reviewcode-reviewerReview generated code for quality issues
Documentationdoc-gen / api-docsProject and API documentation
Validation/GapscriticSkeptical validation at checkpoints
Workflow DisciplinepmSequence enforcement, schedule tracking

Workflow Phases

Phase 0: Project Initialization

For new projects only. Creates harness files, git setup, and BRD-tracker.json.

Phase 1: Requirements Gathering & BRD Extraction

Research generates BRD, CISO performs security review, all requirements extracted to BRD-tracker.json with 100% coverage verification.

Phase 2: Architecture & Specification

Architect creates TODO specs, page inventory, and link matrix. QA creates executable tests. Critic validates BRD-to-spec mapping.

Phase 2.5: Visual Design (UI-heavy projects)

Frontend-designer creates design tokens, component specs for all states. Quality gate ensures WCAG AA contrast.

Phase 3: Implementation Loop

Auto-code processes TODO specs, runs parallel code review and QA. Visual tests with BackstopJS. Iterates until all quality gates pass.

Phase 4: Final BRD Verification

Blocking gate with QA gap analysis and comprehensive Critic review.

Phase 5: Documentation

Doc-gen creates project documentation, api-docs creates OpenAPI specs.

Fresh Context Isolation GSD Pattern

Critical: Each TODO spec MUST be executed with a FRESH 200k-token context.

Claude's output quality degrades as context fills. To maintain world-class code quality, the conductor spawns each implementation task as an isolated subagent with fresh context.

Why Fresh Context Matters

Context %Code QualityTypical Issue
0-25%World-classFull attention, comprehensive
25-50%GoodMinor oversights
50-75%DegradedCorner-cutting, "more concise"
75-100%PoorPlaceholders, incomplete implementations

Context Boundary Rules

INCLUDE in subagent context:

EXCLUDE from subagent context:

SUMMARY.md Historical Record GSD Pattern

Maintain a running historical record of all work in SUMMARY.md. This file provides bisectable history, session continuity, and audit trail for the entire project lifecycle.

SUMMARY.md Structure

# Project Summary

## Project: [Project Name]
**Started:** [ISO timestamp]
**Current Phase:** [Phase N] - [Phase Name]
**Total Sessions:** [count]

---

## Session History

### Session [N] - [YYYY-MM-DD HH:MM]
**Phase:** [Phase Name]
**Duration:** [X minutes]
**Agent(s):** [list of agents invoked]

#### Completed Tasks
| Task | Agent | BRD Req | Outcome | Commit |
|------|-------|---------|---------|--------|
| [description] | [agent] | REQ-XXX | SUCCESS | [hash] |

#### Key Decisions
- [Decision 1]: [Rationale]

#### Files Changed
- `path/to/file.ts` - [description]

When to Update

XML Task Structure GSD Pattern - Optional

For complex specs, use XML-structured task definitions to ensure explicit verification and clear action boundaries.

When to Use XML Tasks

Spec TypeUse XML?Reason
Simple feature (1-2 files)NoMarkdown sufficient
Complex feature (3+ files)YesExplicit file tracking
Integration with external toolYesVerification commands critical
Security-sensitive featureYesSecurity considerations explicit
Multi-step implementationYesAction sequencing clear

XML Task Block Format

<task id="TASK-001" brd-ref="REQ-XXX">
  <name>Implement Scanner Service</name>
  <priority>high</priority>
  
  <actions>
    <action id="1" type="create">
      <file>src/services/Scanner.ts</file>
      <description>Create Scanner class</description>
    </action>
  </actions>
  
  <verify>
    <command>npm test -- --grep Scanner</command>
    <command>npm run lint</command>
  </verify>
  
  <acceptance-criteria>
    <criterion id="AC-1">Scanner executes and returns results</criterion>
  </acceptance-criteria>
</task>

XML Task Benefits

Usage Example

# Invoke the conductor with your BRD
conductor "Build a user authentication system based on auth-brd.md"

# Conductor automatically orchestrates:
# - Spawns project-setup for new projects
# - Routes to research for requirements
# - Engages ciso for security review
# - Uses architect for spec creation
# - Coordinates auto-code for implementation (fresh context per spec)
# - Runs qa-guy and code-reviewer in parallel
# - Engages critic at every checkpoint
# - Maintains SUMMARY.md throughout
# - Produces doc-gen and api-docs at completion

Key Features