Agent Type: Multi-Phase DevelopmentTools: Read, Glob, Grep, Bash, Edit, WriteSkills: pro-workflowModel: opus (advanced reasoning)Memory: project (recalls previous work)
Overview
The Orchestrator agent builds features through three validated phases: Research, Plan, and Implement. Each phase must pass validation gates before proceeding to the next. Orchestrator uses advanced reasoning and project memory to deliver high-quality implementations.When to Use
Multi-File Features
Building features that touch more than 5 files
Architecture Decisions
Features requiring architectural design choices
Complex Features
Features with unclear requirements or dependencies
Quality-Critical Work
Features where quality and correctness are paramount
Configuration
Configuration Details
Uses Claude Opus for advanced reasoning and complex decision-making
Maintains project memory to recall patterns from previous feature builds
Loads the
pro-workflow skill for advanced development patternsThree-Phase Workflow
Phase 1: Research (GO/NO-GO)
Objective: Explore the codebase to assess feasibility and build confidence
Research Workflow
Confidence Scoring
Orchestrator scores confidence across five dimensions (0-20 points each):Scope Clarity (0-20)
Scope Clarity (0-20)
Question: Do you know exactly what files need to change?
- 20: Know all files, all changes
- 10-15: Know most files, some uncertainty
- 0-5: Many unknowns, unclear scope
Pattern Familiarity (0-20)
Pattern Familiarity (0-20)
Question: Does the codebase have similar patterns to follow?
- 20: Clear patterns exist, well-documented
- 10-15: Some patterns, need adaptation
- 0-5: No patterns, creating from scratch
Dependency Awareness (0-20)
Dependency Awareness (0-20)
Question: Do you know what depends on the code being changed?
- 20: Full dependency graph understood
- 10-15: Major dependencies known
- 0-5: Dependencies unknown, high risk
Edge Case Coverage (0-20)
Edge Case Coverage (0-20)
Question: Can you identify the edge cases?
- 20: All edge cases enumerated
- 10-15: Major edge cases known
- 0-5: Edge cases unclear
Test Strategy (0-20)
Test Strategy (0-20)
Question: Do you know how to verify changes?
- 20: Complete test strategy defined
- 10-15: Basic test approach clear
- 0-5: Testing approach unclear
GO/NO-GO Decision
Phase 2: Plan (Approval Required)
Objective: Design the solution and get approval before any code changes
Planning Output
Approval Gate
Valid approval phrases:- “proceed”
- “approved”
- “looks good”
- “go ahead”
Phase 3: Implement
Objective: Execute the plan step by step with quality gates
Implementation Workflow
Quality Gates
Orchestrator runs quality checks throughout implementation:Review Checkpoints
Every 5 edits, Orchestrator pauses to:Show Progress
Report what’s been completed and what remains
Validate Approach
Confirm implementation matches the plan
Check Quality
Verify tests pass and code quality is maintained
Get Feedback
Allow you to provide guidance or corrections
Plan Deviation
Project Memory
Orchestrator uses project memory to improve over time:Recalls Patterns
Recalls Patterns
Remembers successful patterns from previous feature buildsExample: “Last time we added a form, we used react-hook-form and zod validation”
Learns from Bugs
Learns from Bugs
Records debugging insights for future referenceExample: “[LEARN] Debugging: Always check Redis connection before querying”
Captures Decisions
Captures Decisions
Stores architectural decisions and rationaleExample: “[LEARN] Architecture: We use REST for public APIs, GraphQL for admin”
Tracks Conventions
Tracks Conventions
Maintains coding conventions and style preferencesExample: “[LEARN] Convention: Error messages go in src/constants/errors.ts”
Learning Syntax
Orchestrator captures learnings using this syntax:Example Session
Rules and Constraints
Never Skip Phases
Never Skip Phases
Research before planning, plan before implementing. No shortcuts.
Never Proceed Without Approval
Never Proceed Without Approval
Wait for explicit approval between phases, especially before implementation.
Return to Planning If Wrong
Return to Planning If Wrong
If implementation reveals plan issues, go back to Phase 2—don’t forge ahead.
Use Project Memory
Use Project Memory
Recall patterns from previous work to maintain consistency.
Capture Learnings
Capture Learnings
Record insights for future reference using [LEARN] syntax.
Best Practices
Use Proactively
Don’t wait until you’re stuck. Use Orchestrator from the start for complex features.
Comparison with Other Agents
| Feature | Orchestrator | Planner | Scout |
|---|---|---|---|
| Phases | 3 (Research, Plan, Implement) | 1 (Plan only) | 1 (Research only) |
| Makes changes | Yes (Phase 3) | No | No |
| Model | Opus | Default | Default |
| Memory | Project | None | None |
| Approval gates | 2 (after Research, after Plan) | 1 (after Plan) | 0 |
| Best for | Complex features | Initial planning | Quick confidence check |
Troubleshooting
Stuck in Research Phase
Stuck in Research Phase
If confidence score keeps < 70:
- Task may be too complex or unclear
- Provide more context about requirements
- Break task into smaller pieces
- Consider using Planner for human-guided exploration
Plan Seems Wrong
Plan Seems Wrong
If the plan doesn’t look right:
- Don’t approve—ask for revisions
- Provide specific feedback about concerns
- Reference similar features that should be followed
- Orchestrator will revise and re-present
Implementation Deviates from Plan
Implementation Deviates from Plan
If implementation doesn’t match the plan:
- This is normal—plans aren’t perfect
- Orchestrator will return to Phase 2 to revise
- Trust the process—adaptive planning is a feature
Tests Failing
Tests Failing
If tests fail during implementation:
- Orchestrator will debug and fix
- If root cause suggests plan issue, returns to Phase 2
- Review checkpoints help catch issues early
Next Steps
Debugger
Systematic debugging when issues arise
Reviewer
Quality review after implementation