Agent Conductor
Routes planning, UI design, and review tasks to Google Gemini models through Antigravity ACP with persistent pooled sessions.
Orchestrates OpenAI GPT models through Codex CLI/app-server for context consultation, workspace dispatch, parallel session forks, and mid-turn steering.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agent Conductor
English | 简体中文
A cross-vendor multi-agent orchestrator and Agent Skill built for seamless interoperability between Codex CLI and Antigravity (bridging OpenAI GPT with Anthropic Claude & Google Gemini in one deterministic workflow) — and extensible to additional OpenAI-compatible gateways via cc-switch or custom Codex profiles + ~/.agent-conductor/routes.json.
Core philosophy: Keep the primary session as the single lead coordinator, pairing role-based model routing across 14 SDLC roles with persistent ACP / Codex App-Server pools, isolated Git worktrees, protected verification gates, cross-vendor blind code review, and resumable SQLite DAG workflows.
Key Features
Codex ↔ Antigravity Interoperability & Blind Review
Seamlessly bridges Antigravity (
agy acp: Gemini / Claude models) and Codex CLI (OpenAI GPT models), and can optionally plug in any OpenAI-compatible multi-upstream gateway via tools likecc-switch, custom Codex profiles, and~/.agent-conductor/routes.json.Enforces author/reviewer vendor separation by default in
run_verified_pipeline(e.g., code written by OpenAI/DeepSeek/Qwen is reviewed by Anthropic/Google) to eliminate single-model blind spots.
Persistent Dual-Backend Connection Pools (Zero Cold-Start + KV-Cache Reuse)
Maintains warm
agy acp --stdio --sandboxprocesses using the officialagent-client-protocolSDK;Drives
codex app-serverover bidirectional JSON-RPC 2.0;Isolates pools by
(codex_profile, windows_sandbox, context_only), supportsfork_parallelfor prefix KV-cache sharing, livesteer_turnmid-turn steering, and a120ssilent-stall watchdog.
Role-Based Routing & Automatic
429Cooldownsroutes.json defines 14 engineering roles with fallback chains, overridable at
~/.agent-conductor/routes.jsonor viaAGENT_CONDUCTOR_ROUTES_PATH(see routes.example.json for custom gateway setups).Validates
effortagainst local Codex catalogs before dispatch and applies exponential backoff (60s -> 180s -> 600s) on429/rate-limit failures.
Isolated Worktrees, Protected Verification Gates & Multi-Patch Merging
Runs edits in detached Git worktrees, executes
--verify-cmdin a clean snapshot checkout that rejects changes to--verify-trustedpaths, supports--verify-link/verify_readonly_linksfor mountingnode_modulesor.venv, and triggers bounded self-repair with duplicate-error circuit breaking.merge_and_verifyautomatically merges multiple parallel.patchartifacts, optionally arbitrates conflicts, and re-runs regression verification.
SQLite-Persisted Parallel DAG + RepoMap Context Packing
pack_contextbuilds a budget-capped context packet with directory tree, Python AST / polyglot Symbol RepoMap, and numbered source lines.run_dagpersists node state in SQLite (~/.agent-conductor/dags/), supporting parallel fan-out/fan-in and lossless resume on failure.
Zero-Dependency Stdlib Fallback
delegate.py and consult_server.py work with pure Python
3.10+stdlib without installing.venvpackages.
Related MCP server: AgentBraid
Architecture
flowchart TD
User["User Request"] --> Lead["Lead Session (Single Coordinator / SKILL.md)"]
Lead -->|"MCP Stdio (13 Tools)"| Server["orchestrator_server.py (MCPServer)"]
Server --> Router["pool_router.py + routing.py (Role Routing / 429 Cooldowns)"]
Router -->|"Reads Config"| Routes["routes.json + Local Model Catalogs"]
Router -->|"Persistent ACP Pool"| ACP["acp_pool.py (agy acp)"]
Router -->|"Persistent JSON-RPC Pool"| Codex["codex_pool.py (codex app-server)"]
Router -->|"Safe CLI Fallback"| CLI["workers.py (Single-Shot CLI)"]
Router -->|"Isolation & Merging"| WT["worktree.py (Git Worktree / merge_and_verify)"]
WT -->|"Protected Gate & Repair"| Gate["delegate.py (Snapshot Gate / Readonly Links)"]
Server -->|"Parallel Orchestration"| DAG["dag_engine.py (SQLite Resumable DAG)"]
Server -->|"Budgeted Extraction"| Pack["context_packer.py (RepoMap + Context Pack)"]Quick Start
1. Install as an Agent Skill
Install directly with the Agent Skills CLI (skills.sh / agentskills.io):
npx skills add onlinewithjun/agent-conductorOr clone manually into your agent's skills directory:
git clone https://github.com/onlinewithjun/agent-conductor.git
cd agent-conductor2. Prerequisites & Virtual Environment
Requirements: Python
3.10+,git, and authenticatedagyand/orcodexCLI tools.Install MCP & ACP dependencies (recommended):
# macOS / Linux
python3 -m venv .venv
./.venv/bin/python -m pip install -e .# Windows
py -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .3. Doctor Check & One-Click MCP Registration
Use the zero-dependency bootstrapper scripts/install_mcp.py (creates .bak backups before modifying any config):
# macOS / Linux
python3 scripts/install_mcp.py doctor
python3 scripts/install_mcp.py install --dry-run
python3 scripts/install_mcp.py install
# Uninstall if needed:
python3 scripts/install_mcp.py uninstall# Windows
py scripts/install_mcp.py doctor
py scripts/install_mcp.py install --dry-run
py scripts/install_mcp.py install
# Uninstall if needed:
py scripts/install_mcp.py uninstallPass
--scope project --project-root <dir>for project-local registration, or--server consultto register the zero-dependency consult_server.py fallback.
14-Role Routing & Customization
Configuration precedence (highest to lowest):
Explicit
provider+modelargumentsAGENT_CONDUCTOR_ROUTES_PATHenvironment variable (legacyCOORD_ROUTES_PATHalso supported)User override file at
~/.agent-conductor/routes.json(partial overrides merge cleanly over defaults)Built-in routes.json
See routes.example.json for attaching custom Codex profiles or external gateways (such as via cc-switch), and references/model-routing.md for full details on all 14 SDLC roles (architecture, ui_design, orchestrator, frontend_impl, backend_impl, multilingual_repo, algorithm, data_analytics, devops_ci, gui_vision, unit_test, security_audit, code_review, long_context).
Multi-Pool Gateway Demo (cc-switch / Custom Profiles)
Want a complete real-world blueprint showing how to combine Antigravity (planning & UI design), Codex direct (hard algorithms & blind review), and a multi-upstream gateway via cc-switch (e.g., volcengine/, tencent/, dashscope/, baidu/, zhipu/, moonshot/ with 4-upstream 429 rotation)?
Walk-through & 14-role division rationale: examples/multi-pool-routing-demo.md
Ready-to-copy 14-role template: routes.example.json
mkdir -p ~/.agent-conductor
cp routes.example.json ~/.agent-conductor/routes.json
# Replace "ccs-gateway/" with your actual gateway prefix (or set "codex_profile"), then validate:
python3 scripts/install_mcp.py doctor13 MCP Tools Reference
Exposed by scripts/orchestrator_server.py:
Tool | Purpose | Highlights |
| Codex context-only analysis |
|
| Antigravity context-only analysis | Persistent ACP pool, strict read-only policy isolation, |
| Role-based auto-routed consultation | Selects candidate by |
| Workspace read/write dispatch | Explicit model or |
| End-to-end code -> gate -> review |
|
| Native session fork fan-out | Forks |
| Live mid-turn steering | Sends |
| Budget-capped repo context packer | Directory tree + Symbol RepoMap + line-numbered files, binary/symlink safe |
| Multi-patch merge & verification | Applies parallel |
| Durable parallel DAG engine | Concurrent nodes, |
| Worktree & session lifecycle |
|
| Pool & cooldown observability | Shows active ACP/Codex pools, active cooldowns, and |
| Model division & token ledger | Returns call |
Workflow Examples
1. Zero-Dependency CLI Dispatch
python3 scripts/delegate.py codex gpt-6.2-sol task.md \
--root /path/to/repo --write --auto-worktree --effort medium \
--verify-cmd '["python3","-m","unittest"]' --verify-trusted tests \
--verify-link .venv --verify-repair-feedback --max-repairs 2 --progress2. Role-Based run_verified_pipeline
Pass roles instead of hardcoding models:
coder_role="backend_impl"(picks fromroutes.json, automatically fails over cleanly on429)reviewer_role="code_review"(automatically excludes the coder's vendor for blind review)verify_cmd=["python3", "-m", "unittest"],verify_trusted=["tests"]
3. Resumable Parallel run_dag
[
{"id": "pack", "kind": "pack_context", "config": {"root": "/path/to/repo", "focus_paths": ["src"]}},
{"id": "api", "kind": "workspace", "deps": ["pack"], "config": {"routing_role": "backend_impl", "root": "/path/to/repo", "write": true, "auto_worktree": true, "task": "Implement API\n${nodes.pack.repomap}"}},
{"id": "ui", "kind": "workspace", "deps": ["pack"], "config": {"routing_role": "frontend_impl", "root": "/path/to/repo", "write": true, "auto_worktree": true, "task": "Implement UI\n${nodes.pack.repomap}"}},
{"id": "review", "kind": "role_consult", "deps": ["api", "ui"], "config": {"role": "code_review", "material": "API: ${nodes.api.diff_stat}\nUI: ${nodes.ui.diff_stat}"}}
]Re-running
run_dagwith the samerun_idautomatically skips completed nodes and resumes from the failed step.
Directory Layout
agent-conductor/
├── SKILL.md # Agent Skill entry specification (single-lead rules & tools)
├── README.md # Project documentation (English)
├── README.zh-CN.md # Project documentation (简体中文)
├── LICENSE # MIT License
├── pyproject.toml # Python metadata and mcp / acp dependencies
├── routes.json # Default 14-role routing table
├── routes.example.json # Complete 14-role multi-pool & gateway demo template
├── examples/
│ └── multi-pool-routing-demo.md # Three-pool division & cc-switch gateway guide
├── references/
│ ├── model-routing.md # 14-role SDLC routing, effort checks & cooldown rules
│ └── consultation.md # MCP setup and context-only consultation details
├── scripts/
│ ├── orchestrator_server.py # Unified MCP server (13 tools)
│ ├── pool_router.py # Pool coordinator, verified pipeline, merge-and-verify
│ ├── routing.py # Route loader, catalog validation, 429 exponential cooldowns
│ ├── catalog.py # Codex catalog parser, vendor classifier & call ledger
│ ├── acp_pool.py # Persistent Antigravity ACP pool + stall watchdog
│ ├── codex_pool.py # Persistent Codex App-Server pool (steer + fork + watchdog)
│ ├── agent_process.py # Cross-platform subprocess timeouts & Windows Job Object cleanup
│ ├── worktree.py # Detached Git worktrees, binary patches, merge checks & GC
│ ├── delegate.py # Zero-dependency CLI dispatcher & snapshot verification gate
│ ├── context_packer.py # Budget-aware repo packer with polyglot Symbol RepoMap
│ ├── dag_engine.py # SQLite-persisted parallel DAG engine
│ ├── install_mcp.py # Zero-dependency doctor & MCP installer/uninstaller
│ ├── workers.py # Single-shot CLI adapters & structured output validation
│ ├── consult_server.py # Zero-dependency stdlib consultation MCP fallback
│ └── agy_trajectory.py # Read-only Antigravity SQLite trajectory diagnostic
└── tests/
├── test_coordination.py # Pure stdlib core contract tests
├── test_phase2_orchestrator.py # Persistent pool & MCP orchestration tests
├── test_phase3_features.py # Routing cooldowns, watchdog, RepoPacker & DAG tests
└── test_phase4_upgrades.py # Route overrides, installer, RepoMap & merge-verify testsSecurity Boundaries
Recursion Guard: Child processes receive
AGENT_ROLE=worker(plus[ROLE: DELEGATED_WORKER]);delegate.py,consult_server.py, andorchestrator_server.pyrefuse to launch if invoked by a worker.Strict Read-Only Consultation:
context_onlyruns inside an isolated temp directory with Codexshell_tool/web_searchdisabled and Antigravity--gemini-dirpermission denials + tool-event abort.Tamper-Proof Verification Gate: Edits touching
--verify-trustedpaths are rejected; verification runs in a clean snapshot checkout with stripped credentials.Clean Process & Junction Teardown: Worker processes attach to Windows Job Objects (
KILL_ON_JOB_CLOSE), and--verify-linkverifies reparse-point identity before unlinking.
Running Tests
# 1. Pure stdlib contract tests (no third-party packages required)
python3 -m unittest discover -s tests -p "test_coordination.py" -v
# 2. Full test suite (inside .venv)
./.venv/bin/python -m unittest discover -s tests -v# Windows (inside .venv)
py -m unittest discover -s tests -p "test_coordination.py" -v
.\.venv\Scripts\python.exe -m unittest discover -s tests -vLicense
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Your company's tools, memory and Automations for ChatGPT, Claude or any MCP agent. Open source.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP bridge that lets Codex delegate long-running agent work to the Antigravity CLI, providing observable and resumable tool-based execution with project scoping.1445 PyPI17MIT
- AlicenseNot gradedqualityCmaintenanceA local-first MCP orchestration server that uses Codex as lead planner and Antigravity as host to delegate and review bounded tasks with Git integration and persistent SQLite state.Apache 2.0
- AlicenseNot gradedqualityAmaintenanceProvides a provider-agnostic MCP server that coordinates structured multi-agent workflows, owning task claims, action logs, handoffs, and server-side health gates for coding agents. It enables tracked specs, tasks, reviews, and verified completion across Claude Code, Codex CLI, Cursor, Grok Build, and OpenCode.29 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables autonomous agent teams to coordinate through 39 MCP tools covering memory bank tracking, AST code indexing, a SQLite task system, file locks, and dynamic agent coordination, with bundled skills and prompts queryable over the protocol. It also exposes live telemetry, AST database visualization, and human-in-the-loop task approval via a web dashboard.-