Skip to content

darrenapfel/claudecode-orchestrator

Repository files navigation

NOTE: THIS PROJECT IS DEPRECATED. NEW PROJECT, www.limeriq.ai

Claude Code Orchestration System v5.0.0

A comprehensive orchestration framework that enables Claude Code to operate as a full software development team through parallel execution, structured workflows, and evidence-based validation.

🎯 Core Philosophy

Quality Through Truth: The system enforces honest development practices where every claim requires evidence, every test result must be shown, and validation failures are documented and fixed rather than hidden. This approach paradoxically saves tokens by catching issues early rather than building on broken foundations.

✨ What's New in v5.0.0

πŸš€ Milestone Completion Protocol

  • Service Startup & Validation: Services are started and smoke-tested before declaring completion
  • User Testing Materials: Auto-generated testing guides from user stories
  • Human Feedback Loop: Structured feedback collection and processing
  • Live Deployment: Milestones end with running, accessible services

⚑ Enhanced Parallel Execution

  • Visual Execution Guides: Clear indicators for parallel vs sequential tasks
  • Parallel Execution Detector: System-level warnings against sequential execution
  • One Message Rule: Multiple independent tasks MUST be created simultaneously

πŸ”’ Global Install Protection

  • Confirmation Prompts: Prevents accidental overwrite of global configurations
  • Safe Defaults: Cancels on any input except explicit 'y' confirmation

πŸ“š Documentation Improvements

  • Single Source of Truth: Master reference documents eliminate contradictions
  • Organized Structure: Guides separated from patterns for clarity
  • Quick References: Fast access to common commands and paths

πŸš€ Quick Start

Global Installation (Recommended)

# Install globally for use across all projects
./orchestrator.sh global
# ⚠️ WARNING: This will replace ~/.claude/claude.md - confirm carefully!

# Then in any project:
./orchestrator.sh local

Local Installation Only

# Install directly in current project
./orchestrator.sh local

πŸ—οΈ System Architecture

Parallel Execution Model

The orchestrator manages multiple specialized personas working simultaneously:

FOUNDATION STEP
╔═══════════════════════════════════════════════════════════╗
β•‘  ⚑ PARALLEL: ONE MESSAGE - BOTH TASKS TOGETHER! ⚑      β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
β”œβ”€β”€ Task: @architect - Design architecture
└── Task: @ux-designer - Create user flows

Milestone-Based Development

Work is organized into major development phases with service delivery:

.work/
β”œβ”€β”€ milestones/
β”‚   └── 20250105-user-authentication/
β”‚       β”œβ”€β”€ sprint-001/
β”‚       β”‚   β”œβ”€β”€ tasks/
β”‚       β”‚   β”œβ”€β”€ integration/
β”‚       β”‚   β”œβ”€β”€ validation-1/
β”‚       β”‚   β”œβ”€β”€ fixes/cycle-1/
β”‚       β”‚   β”œβ”€β”€ validation-2/
β”‚       β”‚   └── completion/
β”‚       β”‚       β”œβ”€β”€ MILESTONE-COMPLETION.md
β”‚       β”‚       β”œβ”€β”€ USER-STORIES-TESTING-GUIDE.md
β”‚       β”‚       └── USER-FEEDBACK-FORM.md
β”‚       └── milestone-completion-summary.md
└── foundation/
    β”œβ”€β”€ architecture/
    β”œβ”€β”€ product/
    └── ux/

Git Integration

Every validated task is automatically committed with file isolation:

  • Task-level commits: Each task commits only its specific files
  • Orchestrator announces: All git actions visible in chat
  • File tracking: Prevents cross-contamination between parallel work
  • Integration commits: Connect separate features cleanly

πŸŽ‰ Milestone Completion Process

1. Service Startup & Validation

When a milestone completes, the system:

  • Starts the service in the background
  • Validates endpoints are responding
  • Runs smoke tests to ensure basic functionality
  • Provides the running URL to the user

2. User Testing Materials

Automatically generates three documents:

  • MILESTONE-COMPLETION.md: Overview and testing instructions
  • USER-STORIES-TESTING-GUIDE.md: Test scenarios from original requirements
  • USER-FEEDBACK-FORM.md: Structured feedback collection

3. Human Feedback Loop

User: "The login button is hard to find"
System: Creates feedback sprint β†’ Implements fix β†’ Re-validates β†’ Updates service

4. Completion Announcement

πŸŽ‰ MILESTONE [Authentication System] COMPLETE - Service Running & Ready for Testing

βœ… VALIDATION: All validators passed
βœ… SERVICE: Running and validated at http://localhost:3000
βœ… DOCUMENTATION: All testing materials prepared

🎯 USER TESTING - READY NOW:
   βœ… Service URL: http://localhost:3000 (already running)
   πŸ“– Test scenarios: See USER-STORIES-TESTING-GUIDE.md
   πŸ“ Report issues: Fill out USER-FEEDBACK-FORM.md
   πŸ”„ Submit feedback: "Please process the user feedback file"

Just open http://localhost:3000 and start testing!

πŸ“‹ Key Features

Evidence-Based Development

  • Every task produces EVIDENCE.md with reproducible proof
  • Test outputs must be complete, not summarized
  • Screenshots require timestamps
  • Commands must show actual execution

Fix Cycle Protocol

  • Validation failures trigger fix cycles (normal and expected)
  • Each fix cycle is documented and committed
  • Multiple cycles show honest development progress
  • Success is achieving 100% pass, not avoiding failures

Master Reference Documents

  • MASTER-DIRECTORY-STRUCTURE.md - Single source of truth for organization
  • GIT-COMMIT-STRATEGY.md - Authoritative git workflow
  • PARALLEL-EXECUTION-GUIDE.md - Visual guide to parallel execution

πŸ‘₯ Available Personas

Core Team

  • Orchestrator - Manages parallel execution and git operations
  • Product Manager - Defines requirements and validates user value
  • Architect - Designs system structure and technical approach
  • Software Engineer - Implements features following architecture
  • UX Designer - Creates user experiences and interfaces

Quality Assurance

  • SDET - Writes comprehensive test suites
  • Test Engineer - Validates end-to-end functionality & starts services
  • Integration Engineer - Ensures components work together
  • Performance Engineer - Optimizes speed and scalability
  • Security Engineer - Validates security and compliance

Support Roles

  • DevOps - Handles deployment and infrastructure
  • Documentation Writer - Creates user and technical docs

πŸ”„ Workflow Overview

  1. Discovery (if needed) - Gather clarifying questions
  2. Requirements - PM defines scope and acceptance criteria
  3. Foundation Design - Architect and UX Designer create blueprint
  4. Implementation - Engineers build in parallel batches
  5. Integration - Connect all components and fix issues
  6. Validation - Four validators verify quality
  7. Fix Cycles - Address any validation failures
  8. Milestone Completion - Start service and prepare for user testing
  9. Feedback Processing - Implement user-reported improvements

πŸ“ Project Structure

your-project/
β”œβ”€β”€ .claude/                 # Orchestration configuration
β”‚   β”œβ”€β”€ personas/           # AI role definitions
β”‚   β”œβ”€β”€ patterns/           # Workflow patterns
β”‚   β”œβ”€β”€ guides/             # How-to documentation
β”‚   β”œβ”€β”€ validators/         # Validation protocols
β”‚   └── preferences/        # Project settings
β”œβ”€β”€ .work/                  # Orchestration workspace
β”‚   β”œβ”€β”€ foundation/         # Core architecture/design
β”‚   β”œβ”€β”€ milestones/         # Development phases
β”‚   └── discovery/          # Project understanding
β”œβ”€β”€ CLAUDE.md               # Project-specific instructions
└── src/                    # Your actual code

πŸ” Validation Process

Four validators work in parallel to ensure quality:

  1. Product Manager - Validates user stories work end-to-end
  2. Test Engineer - Runs comprehensive test suites & service startup
  3. Performance Engineer - Checks speed and scalability
  4. Security Engineer - Validates security compliance

Any validation failure triggers fix cycles until all pass.

πŸ’‘ Best Practices

For Maximum Effectiveness

  1. Trust the Process - Multiple fix cycles are normal, not failures
  2. Let Services Run - Milestones deliver running software, not just code
  3. Provide Feedback - Use the structured feedback forms for improvements
  4. Review Evidence - Check the .work/ directory to see actual outputs
  5. Watch Git Actions - All commits are announced in chat

Common Patterns

  • New Project: Discovery β†’ Full implementation β†’ Running service
  • Add Feature: Skip discovery β†’ Start at requirements β†’ Update service
  • Fix Bugs: Create fix tasks β†’ Validate thoroughly β†’ Deploy fixes
  • User Feedback: Process feedback form β†’ Sprint for fixes β†’ Re-validate

πŸ› Troubleshooting

Service Won't Start

  • Check logs in .work/milestones/*/sprint-*/completion/service.log
  • Verify all dependencies installed
  • Test engineer will diagnose and create fix tasks

Parallel Execution Issues

  • Look for "Let me create the first task..." - this indicates sequential execution
  • Check PARALLEL-EXECUTION-GUIDE.md for visual examples
  • Orchestrator should create ALL independent tasks in ONE message

Git Conflicts

  • Orchestrator tracks file ownership to prevent conflicts
  • Integration commits handle shared file updates
  • Check GIT-TROUBLESHOOTING.md for solutions

πŸ“š Documentation

Core documentation in .claude/:

Guides (How-To)

  • guides/TASK-EXECUTION-GUIDE.md - Comprehensive task execution
  • guides/deployment-setup-guide.md - Deployment configuration
  • guides/existing-project-onboarding.md - Adding to existing projects

Patterns (Protocols)

  • patterns/standard-workflow.md - Complete workflow with visual diagrams
  • patterns/GIT-COMMIT-STRATEGY.md - Master git workflow reference
  • patterns/PARALLEL-EXECUTION-GUIDE.md - Visual parallel execution guide
  • patterns/milestone-completion-protocol.md - Service delivery process

Quick References

  • patterns/GIT-QUICK-REFERENCE.md - Common git commands
  • patterns/DIRECTORY-QUICK-REFERENCE.md - Quick navigation guide
  • patterns/COMMON-PATHS.md - Frequently used paths

🀝 Contributing

The orchestration system is built from the orchestrator-files/ directory:

  1. Modify files in orchestrator-files/
  2. Run node build-orchestrator.js to rebuild
  3. Test with ./orchestrator.sh local
  4. Submit improvements via pull request

See .ignore-working-docs/HOW-TO-BUILD-AND-TEST-ORCHESTRATOR-SH.md for details.

πŸ“ˆ Version History

v5.0.0 (Current Release)

  • Milestone Completion Protocol: Services start and run for user testing
  • Human Feedback Loop: Structured feedback collection and processing
  • Enhanced Parallel Execution: Visual guides and system-level enforcement
  • Global Install Protection: Confirmation prompts prevent accidents
  • Documentation Overhaul: Single source of truth, better organization

v4.x

  • Task-level git commits with file isolation
  • Orchestrator announces all git actions
  • Master reference documents
  • Numbered validation cycles

v3.x

  • Parallel execution model
  • Evidence-based validation
  • Session management

🎯 Why It Works

The orchestration system succeeds by:

  1. Delivering Running Software - Milestones end with live services
  2. Enforcing Parallelism - Multiple tasks progress simultaneously
  3. Validating Continuously - Catch issues early, fix immediately
  4. Collecting Human Feedback - Structured process for improvements
  5. Tracking Everything - Complete audit trail of all work

πŸ“ž Support


Built with the principle that honest development with visible evidence produces better software faster than hiding failures and building on broken foundations. Now with live service delivery and human feedback integration.

About

DEPRECATED: NEW *REAL* SOLUTION COMING VERY, VERY SOON... Complete Multi-Agent Orchestration for Claude Code Enables 24 hour Autonomous Coding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors