Master-Orchestrator
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 128 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
This tool acts as a multi-agent orchestrator for AI coding assistants like Claude and Codex. It takes a large, complex coding goal, breaks it down into a dependency graph (DAG), executes the smaller tasks in parallel, and merges the results into a final, cohesive output.
Security Assessment
Overall Risk: Low. The automated code scan reviewed 12 files and found no dangerous patterns, hardcoded secrets, or requests for excessive permissions. However, because the tool is explicitly designed to delegate tasks to AI agents and execute code changes across your filesystem, it inherently executes shell commands and interacts with local files. It does not appear to steal sensitive data, though users should be aware that any prompts or local files processed by the AI agents will be sent over the network to their respective external API providers (like Anthropic or OpenAI).
Quality Assessment
The project demonstrates strong health and active maintenance. It is licensed under the standard MIT license, making it safe for both personal and commercial use. The repository is highly active, with its most recent updates pushed today. Additionally, it has garnered 128 GitHub stars, indicating a solid level of community trust and early adoption from developers testing multi-agent workflows.
Verdict
Safe to use, provided you are comfortable with its core function of routing your local code and prompts to external AI providers.
Multi-agent DAG orchestrator for Claude Code and Codex CLI — decompose goals, execute in parallel, converge on results
Master Orchestrator
Let Claude Code and Codex collaborate on your large-scale coding tasks.
Automatically decompose goals into DAGs, execute tasks in parallel across multiple AI agents, and converge on verified results.
Quick Start | Why Master Orchestrator? | How It Works | Documentation
The Problem
You're working on a task that's too big for a single AI agent call:
- "Add JWT auth to this Express app — with tests, middleware, and docs"
- "Refactor the payment module — 15 files across 3 packages"
- "Fix all failing tests after the database migration"
A single claude or codex session gets lost in context, misses dependencies, or produces inconsistent code across files. You end up manually coordinating multiple runs, checking outputs, and stitching results together.
The Solution
Master Orchestrator turns one natural-language goal into a directed acyclic graph (DAG) of tasks, then executes them with the best AI agent for each phase:
mo do "Add JWT authentication to the Express app with middleware, routes, tests, and API docs"
It automatically:
- Decomposes your goal into dependent sub-tasks (Claude excels here)
- Routes each task to the optimal provider (Claude for reasoning, Codex for execution)
- Executes independent tasks in parallel (up to 150 concurrent)
- Reviews outputs with cross-agent verification
- Retries failures with exponential backoff and error classification
- Converges on a verified, consistent result
Why Master Orchestrator?
| Scenario | Single Agent | Master Orchestrator |
|---|---|---|
| 5-file refactor | Context overflow, inconsistent edits | DAG decomposition, parallel execution |
| Bulk fixes (100+ files) | Sequential, slow, no retry | Simple mode: 16 parallel workers, auto-retry |
| Complex feature | Manual coordination of multiple runs | Automatic phase routing, convergence detection |
| Mixed tasks | Same model for reasoning and coding | Claude for planning, Codex for execution |
Quick Start
Install
git clone https://github.com/amber132/Master-Orchestrator.git
cd Master-Orchestrator
pip install -e ".[dev]"
Requires Python 3.11+ and at least one of claude or codex on your PATH.
Your First Orchestrated Task
# Let the orchestrator auto-route providers
mo do "Add input validation to all POST endpoints in src/routes/"
# Force a specific provider
mo do --provider codex "Generate unit tests for the UserService class"
# Mix providers by phase — Claude plans, Codex executes, Claude reviews
mo do \
--phase-provider decompose=claude \
--phase-provider execute=codex \
--phase-provider review=claude \
"Refactor the payment module to support multiple currencies"
Bulk Operations with Simple Mode
For hundreds of independent work items (linting, formatting, repetitive edits):
# Scan and execute from a task manifest
mo simple run --manifest tasks.jsonl
# Resume after interruption
mo simple resume
# Retry only failures
mo simple retry
Simple mode runs up to 16 parallel workers with automatic retry, syntax validation, and crash recovery.
How It Works
┌─────────────────────────────────────────────┐
│ Your Goal (natural language) │
└────────────────────┬────────────────────────┘
│
┌────────────────────▼────────────────────────┐
│ Decompose (Claude) │
│ Goal → DAG of dependent sub-tasks │
└────────────────────┬────────────────────────┘
│
┌──────────────────────────┼──────────────────────────┐
│ │ │
┌─────────▼─────────┐ ┌──────────▼──────────┐ ┌─────────▼─────────┐
│ Task A (Claude) │ │ Task B (Codex) │ │ Task C (Codex) │
│ "Write middleware"│ │ "Write routes" │ │ "Write tests" │
└─────────┬─────────┘ └──────────┬──────────┘ └─────────┬─────────┘
│ │ │
└──────────────────────────┼──────────────────────────┘
│
┌────────────────────▼────────────────────────┐
│ Review (Claude) │
│ Cross-agent verification & quality gate │
└────────────────────┬────────────────────────┘
│
┌────────────────────▼────────────────────────┐
│ Converge │
│ Merge results, run tests, verify output │
└─────────────────────────────────────────────┘
Provider Routing
Each phase of the pipeline can use a different AI agent:
| Phase | Default Provider | Why |
|---|---|---|
decompose |
Claude | Better at planning and dependency analysis |
execute |
Codex | Faster for code generation |
review |
Claude | Better at reasoning about correctness |
discover |
Claude | Better at research and exploration |
simple |
Codex | Optimized for high-throughput bulk tasks |
Override at any level:
# Global override
mo do --provider claude "..."
# Per-phase override
mo do --phase-provider execute=codex --phase-provider review=claude "..."
# Config file (config.toml)
[routing.phase_defaults]
execute = "codex"
review = "claude"
Error Recovery
The orchestrator classifies errors and applies appropriate strategies:
- Rate limits → exponential backoff with jitter
- Context overflow → automatic context compaction and retry
- Transient failures → up to 10 retries with 30s base backoff
- Provider down → fallback to alternate provider (auto mode only)
- Task failure → propagate to dependents, skip unreachable tasks
Convergence Detection
The system monitors for:
- Plateaus — no progress across iterations → escalate or pivot strategy
- Deterioration — quality declining → rollback to last good state
- Regression — previously passing tests failing → halt and alert
Architecture
master_orchestrator/
├── orchestrator.py # Core DAG execution engine
├── autonomous.py # Goal-driven autonomous controller
├── claude_cli.py # Claude Code integration
├── codex_cli.py # Codex CLI integration
├── simple_runtime.py # High-throughput bulk execution
├── config.py # TOML configuration management
├── store.py # SQLite state persistence
├── scheduler.py # DAG-aware task scheduling
├── convergence.py # Quality convergence detection
├── error_classifier.py # Intelligent error categorization
├── self_improve.py # Self-improvement loop
└── cli.py # Unified CLI surface
Configuration
# config.toml
[orchestrator]
max_parallel = 150
[claude]
default_model = "sonnet"
default_timeout = 1800
max_budget_usd = 1000.0
[codex]
default_model = "gpt-5.4"
default_timeout = 1800
execution_security_mode = "restricted"
[routing]
default_provider = "auto"
auto_fallback = true
[routing.phase_defaults]
decompose = "claude"
execute = "codex"
review = "claude"
See config.toml for a complete example.
Documentation
| Document | Description |
|---|---|
| USAGE.md | Complete usage guide with examples |
| CLI Reference | All commands and options |
| Providers & Routing | Provider configuration deep-dive |
| Simple Mode | High-throughput bulk execution |
| Simple Validation | Validation pipeline configuration |
Use Cases
Feature Development
mo do "Add real-time notifications using WebSocket — include server, client, reconnection logic, and tests"
Codebase Migration
mo do --phase-provider execute=codex "Migrate all class components to functional components with hooks in src/components/"
Bulk Fixes
mo simple run --manifest lint-fixes.jsonl
Self-Improvement
mo improve -d ./my-project --discover
Contributing
See CONTRIBUTING.md for guidelines.
License
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi