./ai-orchestrator run "Create a REST API with user authentication using JWT tokens"Expected Flow:
- Codex implements the initial REST API with authentication
- Gemini reviews for security best practices and SOLID principles
- Claude implements the feedback and improvements
./ai-orchestrator run "Implement a binary search tree with insert, delete, and search operations" --workflow thoroughExpected Flow:
- Codex creates initial implementation
- Copilot suggests optimizations
- Gemini reviews data structure design
- Claude implements improvements
- Gemini re-reviews
./ai-orchestrator run "Create a function to validate email addresses" --workflow quickExpected Flow:
- Codex implements quickly (no review cycle)
./ai-orchestrator run "Refactor the authentication module" --max-iterations 5./ai-orchestrator run "Create a CLI tool for file processing" --output ./my-project./ai-orchestrator run "Fix the memory leak in the caching layer" --verbose./ai-orchestrator run "Optimize database queries" --dry-runEdit config/agents.yaml:
workflows:
security-focused:
- agent: "codex"
task: "implement"
description: "Initial implementation"
- agent: "gemini"
task: "review"
description: "Security audit"
- agent: "gemini"
task: "review"
description: "Second security pass"
- agent: "claude"
task: "refine"
description: "Implement security improvements"Use it:
./ai-orchestrator run "Create payment processing system" --workflow security-focusedEdit config/agents.yaml:
agents:
copilot:
enabled: false # Temporarily disable Copilot./ai-orchestrator run "Add a caching layer using Redis with TTL support"
./ai-orchestrator run "Implement OAuth2 authentication with Google and GitHub"
./ai-orchestrator run "Create a background job queue using Celery"./ai-orchestrator run "Refactor the user service to follow SOLID principles" --workflow review-only
./ai-orchestrator run "Extract common functionality into reusable utilities"
./ai-orchestrator run "Improve error handling across the application"./ai-orchestrator run "Fix the race condition in the order processing system"
./ai-orchestrator run "Resolve memory leak in the connection pool"
./ai-orchestrator run "Fix SQL injection vulnerability in search endpoint"./ai-orchestrator run "Write comprehensive unit tests for the authentication module"
./ai-orchestrator run "Add integration tests for the payment processing workflow"
./ai-orchestrator run "Create end-to-end tests for user registration flow"./ai-orchestrator run "Generate API documentation with examples" --workflow document
./ai-orchestrator run "Create user guide for the CLI tool"
./ai-orchestrator run "Document the deployment process with diagrams"./ai-orchestrator run <task> [options]Options:
--workflow, -w: Workflow to use (default, quick, thorough, etc.)--config, -c: Path to configuration file--max-iterations, -m: Maximum refinement iterations--output, -o: Output directory--verbose, -v: Enable verbose logging--dry-run: Show execution plan without running
./ai-orchestrator agents./ai-orchestrator workflows./ai-orchestrator validate./ai-orchestrator version╭─────────────────────────────────────────────╮
│ AI Orchestrator │
│ Task: Create a REST API with authentication │
│ Workflow: default │
╰─────────────────────────────────────────────╯
Available agents: codex, gemini, claude
Starting execution...
Iteration 1:
✓ codex - implement
Files modified: 3
✓ gemini - review
Suggestions: 5
✓ claude - refine
Files modified: 3
Iteration 2:
✓ codex - implement
✓ gemini - review
Suggestions: 1
✓ claude - refine
Execution complete! ✓
Task completed successfully! ✓
╭─────────────────────────────────────────────╮
│ AI Agents │
├─────────┬──────────────┬────────────┬───────╯
│ Agent │ Status │ Command │ Role
├─────────┼──────────────┼────────────┼─────────
│ codex │ ✓ Available │ codex │ implementation
│ gemini │ ✓ Available │ gemini-cli │ review
│ claude │ ✓ Available │ claude │ refinement
│ copilot │ ○ Disabled │ gh │ suggestions
╰─────────┴──────────────┴────────────┴─────────
Before running a complex task, use --dry-run to see the execution plan:
./ai-orchestrator run "Complex task" --dry-runquick: Simple tasks, no review neededdefault: Standard implementation-review-refine cyclethorough: Multiple review passes for critical codereview-only: For existing code that needs improvement
Check ai-orchestrator.log for detailed execution information:
tail -f ai-orchestrator.logAfter modifying configuration, validate it:
./ai-orchestrator validateUse --max-iterations to control refinement depth:
- 1-2 iterations: Quick tasks
- 3-4 iterations: Standard tasks
- 5+ iterations: Complex, critical code
Problem: "No agents available! Please install and configure AI CLI tools."
Solution:
- Install required CLI tools
- Authenticate with each service
- Verify with
./ai-orchestrator agents
Problem: Tasks timing out
Solution:
- Increase timeout in
config/agents.yaml - Break task into smaller sub-tasks
- Use
--max-iterationsto limit refinement
Problem: Invalid configuration
Solution:
./ai-orchestrator validateFix issues reported and retry.
# Step 1: Implement core functionality
./ai-orchestrator run "Create a task queue system with priority support"
# Step 2: Add tests
./ai-orchestrator run "Write unit and integration tests for task queue"
# Step 3: Add documentation
./ai-orchestrator run "Generate documentation for task queue API" --workflow document# Review existing code
./ai-orchestrator run "Review and refactor src/services/payment.py" --workflow review-only
# Implement improvements
./ai-orchestrator run "Add error handling and input validation to payment service"
# Final security review
./ai-orchestrator run "Security audit of payment processing" --workflow thorough# Generate tests
./ai-orchestrator run "Create comprehensive test suite for user authentication"
# Review test coverage
./ai-orchestrator run "Review and improve test coverage for authentication module" --workflow review-only