Skip to content

πŸͺˆ Intelligent orchestration system that coordinates multiple AI coding assistants (Claude, Codex, Gemini CLI, Copilot CLI) to collaborate intelligently on complex software development tasks.

License

Notifications You must be signed in to change notification settings

syntax-syndicate/AI-Agents-Orchestrator

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

AI Coding Tools Orchestrator

Python Vue.js Nuxt Flask Docker Kubernetes Prometheus Pydantic PyYAML Click Rich Socket.IO WebSocket Vite TailwindCSS Monaco Pinia Pytest MyPy Black Flake8 Bandit NGINX Microsoft Azure MIT License

Production-ready orchestration system that coordinates multiple AI coding assistants (Claude, Codex, Gemini, Copilot) to collaborate on software development tasks

Features β€’ Quick Start β€’ Documentation β€’ Architecture β€’ Setup Guide β€’ Feature Docs β€’ Add New Agents β€’ Deployment


🎯 Overview

AI Coding Tools Orchestrator is an enterprise-grade system that enables multiple AI coding assistants to work together collaboratively. It provides a unified interface (CLI and Web UI) to coordinate Claude Code, OpenAI Codex, Google Gemini, and GitHub Copilot for complex software development tasks.

How It Works

graph LR
    A[User Request] --> B[AI Orchestrator]
    B --> C[Codex: Implementation]
    C --> D[Gemini: Review]
    D --> E[Claude: Refinement]
    E --> F[Final Code]
Loading

System Architecture

flowchart TB
    subgraph User Interface
        CLI[CLI Shell]
        WebUI[Web UI<br/>Vue 3 + Socket.IO]
    end

    subgraph Core Orchestrator
        Engine[Orchestration Engine]
        Workflow[Workflow Manager]
        Config[Config Manager]
        Session[Session Manager]
    end

    subgraph Features
        Metrics[Prometheus Metrics]
        Cache[Response Cache]
        Retry[Retry Logic]
        Security[Security Layer]
    end

    subgraph AI Adapters
        Claude[Claude Adapter]
        Codex[Codex Adapter]
        Gemini[Gemini Adapter]
        Copilot[Copilot Adapter]
    end

    subgraph External AI Tools
        ClaudeCLI[Claude Code CLI]
        CodexCLI[OpenAI Codex CLI]
        GeminiCLI[Google Gemini CLI]
        CopilotCLI[GitHub Copilot CLI]
    end

    CLI --> Engine
    WebUI --> Engine
    Engine --> Workflow
    Engine --> Config
    Engine --> Session
    Workflow --> Metrics
    Workflow --> Cache
    Workflow --> Retry
    Workflow --> Security
    Workflow --> Claude
    Workflow --> Codex
    Workflow --> Gemini
    Workflow --> Copilot
    Claude --> ClaudeCLI
    Codex --> CodexCLI
    Gemini --> GeminiCLI
    Copilot --> CopilotCLI
Loading

CLI Interface

✨ Features

Core Capabilities

  • 🀝 Multi-Agent Collaboration - Coordinate multiple AI assistants in intelligent workflows
  • πŸ’¬ Interactive Shell - REPL-style interface with natural conversation flow
  • 🌐 Web UI - Modern Vue 3 interface with real-time updates and Monaco editor
  • πŸ“ Conversation Mode - ChatGPT-like experience with context preservation
  • πŸ’Ύ Session Management - Save and restore conversation history
  • βš™οΈ Configurable Workflows - Define custom collaboration patterns (default, quick, thorough)
  • πŸ”§ Extensible Architecture - Easy to add new AI agents

Production-Ready Features

  • πŸ›‘οΈ Security - Input validation, rate limiting, secret management, audit logging
  • πŸ“Š Monitoring - Prometheus metrics, structured logging, health checks
  • 🎯 Reliability - Retry logic, circuit breakers, graceful degradation
  • ⚑ Performance - Async execution, caching, connection pooling
  • πŸ” Code Quality - Type hints, comprehensive tests (>80% coverage), linting
  • 🚒 Deployment - Docker, Kubernetes, systemd support
  • πŸ”„ CI/CD - Automated testing and releases via GitHub Actions

Interactive Mode

πŸš€ Quick Start

Prerequisites

  • Python 3.8 or higher
  • At least one AI CLI tool installed (Claude Code, Codex, Gemini, or Copilot), authenticated, and accessible from INSIDE the venv where the orchestrator runs (if you run it inside a virtual environment)
  • Node.js 20+ (for Web UI)
  • Docker (optional)

Installation

# Clone the repository
git clone <repository-url>
cd AI-Agents-Orchestrator

# Create virtual environment
python3 -m venv venv

# Activate it
# On Linux/macOS:
source venv/bin/activate

# On Windows:
venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Make CLI executable
chmod +x ai-orchestrator

# Verify installation
./ai-orchestrator --help

Quick Test

# Start interactive shell
./ai-orchestrator shell

# Or run a one-shot task
./ai-orchestrator run "Create a Python calculator function" --workflow quick

πŸ’» Usage

Command Line Interface (CLI)

The CLI provides a powerful interactive shell with natural conversation flow:

# Start interactive shell
./ai-orchestrator shell

# Example session
orchestrator (default) > create a REST API for user management
βœ“ Task completed successfully!

orchestrator (default) > add JWT authentication
πŸ’‘ Detected as follow-up to previous task
βœ“ Authentication added!

orchestrator (default) > also add rate limiting
πŸ’‘ Detected as follow-up to previous task
βœ“ Rate limiting implemented!

orchestrator (default) > /save user-api-project
Session saved!

CLI Features:

  • Smart auto-detection of follow-up messages
  • Full context preservation across conversations
  • Readline support (arrow keys, history, tab completion)
  • Commands: /help, /save, /load, /history, /agents, /workflows

Web UI

Web UI

Start the Web UI for a visual development experience:

# Terminal 1: Start backend
cd ui
python app.py

# Terminal 2: Start frontend
cd ui/frontend
npm install
npm run dev

# Or use the startup script
./start-ui.sh

Open http://localhost:3000

UI Features:

  • Real-time progress tracking
  • Monaco code editor (same as VS Code)
  • Conversation mode toggle
  • File management and downloads
  • Syntax highlighting
  • Iteration details view

Available Workflows

Workflow Description Use Case
default Codex β†’ Gemini β†’ Claude Production-quality code with full review cycle
quick Codex only Fast prototyping and iteration
thorough Multi-agent with extra review Mission-critical or security-sensitive code
review-only Gemini β†’ Claude Analyzing and improving existing code
document Claude β†’ Gemini Generating comprehensive documentation

CLI Commands

# Basic usage
./ai-orchestrator run "task description"
./ai-orchestrator shell

# With options
./ai-orchestrator run "task" --workflow thorough --max-iterations 5
./ai-orchestrator run "task" --verbose --dry-run

# Utility commands
./ai-orchestrator agents       # List available agents
./ai-orchestrator workflows    # List available workflows
./ai-orchestrator validate     # Validate configuration
./ai-orchestrator version      # Show version info

πŸ“ Project Structure

AI-Agents-Orchestrator/
β”œβ”€β”€ ai-orchestrator           # Main CLI entry point
β”œβ”€β”€ orchestrator/             # Core orchestration engine
β”‚   β”œβ”€β”€ core.py              # Main orchestrator logic
β”‚   β”œβ”€β”€ workflow.py          # Workflow management
β”‚   β”œβ”€β”€ shell.py             # Interactive shell/REPL
β”‚   β”œβ”€β”€ config_manager.py    # Configuration handling
β”‚   β”œβ”€β”€ metrics.py           # Prometheus metrics
β”‚   β”œβ”€β”€ security.py          # Security utilities
β”‚   β”œβ”€β”€ cache.py             # Caching layer
β”‚   └── retry.py             # Retry logic
β”œβ”€β”€ adapters/                 # AI agent adapters
β”‚   β”œβ”€β”€ base.py              # Base adapter interface
β”‚   β”œβ”€β”€ claude_adapter.py    # Claude Code integration
β”‚   β”œβ”€β”€ codex_adapter.py     # OpenAI Codex integration
β”‚   β”œβ”€β”€ gemini_adapter.py    # Google Gemini integration
β”‚   β”œβ”€β”€ copilot_adapter.py   # GitHub Copilot integration
β”‚   └── cli_communicator.py  # Robust CLI communication
β”œβ”€β”€ ui/                       # Web UI
β”‚   β”œβ”€β”€ app.py               # Flask backend with Socket.IO
β”‚   β”œβ”€β”€ frontend/            # Vue 3 frontend
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”‚   β”œβ”€β”€ App.vue
β”‚   β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”‚   └── stores/      # Pinia state management
β”‚   β”‚   └── package.json
β”‚   └── requirements.txt
β”œβ”€β”€ config/
β”‚   └── agents.yaml          # Agent and workflow configuration
β”œβ”€β”€ tests/                    # Comprehensive test suite
β”‚   β”œβ”€β”€ test_orchestrator.py
β”‚   β”œβ”€β”€ test_adapters.py
β”‚   β”œβ”€β”€ test_integration.py
β”‚   └── test_shell.py
β”œβ”€β”€ docs/                     # Documentation
β”‚   β”œβ”€β”€ images/              # Screenshots
β”‚   β”œβ”€β”€ ARCHITECTURE.md
β”‚   β”œβ”€β”€ FEATURES.md
β”‚   β”œβ”€β”€ SETUP.md
β”‚   └── ADD_AGENTS.md
β”œβ”€β”€ deployment/               # Deployment configs
β”‚   β”œβ”€β”€ kubernetes/
β”‚   └── systemd/
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ Makefile                  # Development commands
β”œβ”€β”€ pyproject.toml           # Project metadata
β”œβ”€β”€ requirements.txt
└── README.md

πŸ§ͺ Testing

# Run all tests
make test

# Run with coverage
make test-coverage

# Run specific test suite
pytest tests/test_adapters.py -v

# Run integration tests
pytest tests/ -v -m integration

# Run security tests
make security

🐳 Docker Deployment

# Build and run
docker-compose up -d

# With monitoring stack
docker-compose --profile monitoring up -d

# Build image
docker build -t ai-orchestrator:latest .

# Run container
docker run -it --rm \
  -v $(pwd)/config:/app/config \
  -v $(pwd)/workspace:/app/workspace \
  ai-orchestrator:latest

πŸ“Š Monitoring

Prometheus metrics are exposed on port 9090 at /metrics:

  • orchestrator_tasks_total - Total tasks executed
  • orchestrator_task_duration_seconds - Task execution time
  • orchestrator_agent_calls_total - Agent invocations
  • orchestrator_agent_errors_total - Agent error count
  • orchestrator_cache_hits_total - Cache performance

Health checks available at:

  • /health - Overall health status
  • /ready - Readiness probe

πŸ”§ Development

# Install development dependencies
make install-dev

# Format code
make format

# Run linters
make lint

# Type checking
make type-check

# Security scan
make security

# Run all checks
make all

Pre-commit Hooks

# Install hooks
pre-commit install

# Run on all files
pre-commit run --all-files

πŸ“š Documentation

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Quick Contribution Guide

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Make your changes with tests
  4. Run checks: make all
  5. Commit: git commit -m "feat: add amazing feature"
  6. Push and create a Pull Request

πŸ”’ Security

For security issues, please email security@example.com. Do not open public issues for security vulnerabilities.

See SECURITY.md for our security policy and best practices.

πŸ“„ License

This project is licensed under the MIT License - see LICENSE for details.

πŸ™ Acknowledgments

Built with:

πŸ’¬ Support

⭐ Star History

If you find this project useful, please consider giving it a star!


Made with ❀️ for the AI development community

⬆ Back to Top

About

πŸͺˆ Intelligent orchestration system that coordinates multiple AI coding assistants (Claude, Codex, Gemini CLI, Copilot CLI) to collaborate intelligently on complex software development tasks.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 68.9%
  • Shell 9.0%
  • HCL 6.0%
  • HTML 5.6%
  • Vue 5.3%
  • JavaScript 3.0%
  • Other 2.2%