The only multi-agent coordinator that learns from its own execution history.
DQ-scored routing • ACE consensus • entropy-guided allocation • research-driven self-optimization
A pip-installable Python package that coordinates multiple AI agents to solve complex tasks — and gets better at it over time. Built on 64 research papers (Agyn, EGSS, W&D, Spectral Guardrails) and proven infrastructure with 3,039+ routing decisions at 93.1% accuracy.
Key differentiator: No other coordination tool learns from its own execution history via DQ-scored adaptive consensus.
%%{init: {'theme': 'dark', 'themeVariables': {'primaryColor': '#6C3483', 'edgeLabelBackground':'#1a1a2e', 'tertiaryColor': '#1a1a2e'}}}%%
graph TB
subgraph CLI["coord CLI"]
A[research] --> E[Orchestrator]
B[implement] --> E
C[auto] --> PD[Pattern Detector] --> E
D[score] --> DQ[DQ Scorer]
end
subgraph Engine["Core Engine"]
E --> R[Registry]
E --> CM[Conflict Manager]
E --> WD[Work Distributor]
E --> EX[Executor]
end
subgraph Optimization["Self-Optimization"]
ACE[ACE Analyzer] --> OPT[Optimizer]
EA[Entropy Allocator] --> TS[Topology Selector]
OPT --> BL[Baselines]
end
subgraph Storage["SQLite WAL"]
DB[(coordinator.db)]
end
EX --> ACE
DQ --> EA
R --> DB
ACE --> DB
OPT --> DB
style CLI fill:#6C3483,stroke:#9B59B6,color:#fff
style Engine fill:#1a5276,stroke:#2980B9,color:#fff
style Optimization fill:#196F3D,stroke:#2ECC71,color:#fff
style Storage fill:#7D6608,stroke:#F1C40F,color:#fff
pip install antigravity-coordinatorOr for development:
git clone https://github.com/Dicoangelo/antigravity-coordinator.git
cd antigravity-coordinator
pip install -e ".[dev]"# Initialize database and config
coord init
# Coordination strategies
coord research "Understand the caching architecture" # 3 parallel explore agents
coord implement "Add retry logic to the API client" # Parallel builders + file locks
coord review "Refactor the authentication module" # Builder + reviewer concurrent
coord full "Design and build a notification system" # Research → Build → Review pipeline
coord team "Comprehensive API overhaul" # Opus 4.6 agent team
# Auto-detect best strategy
coord auto "Fix the bug in the login flow" # Pattern detection → strategy selection
# DQ Scoring
coord score "Design a distributed caching system" # Score complexity, route to model
# Monitoring
coord status # Active agents and state
coord history # Session outcomes with DQ scores
# Self-optimization
coord optimize --dry-run # Propose baseline improvements
coord optimize --apply # Apply validated improvements| Module | Purpose |
|---|---|
coordinator.engine |
Orchestrator, registry, distribution, conflict resolution, executor |
coordinator.strategies |
Research (3 parallel), implement, review, full, team |
coordinator.scoring |
DQ scorer (Python), complexity analyzer, Opus 4.6 thinking tiers |
coordinator.optimization |
Entropy allocator (EGSS), topology selector (Agyn), pattern detector |
coordinator.feedback |
ACE analyzer (6 agents + consensus), self-optimizer with rollback |
coordinator.safety |
Guardrails: cost budgets, time limits, scope boundaries, heartbeat |
coordinator.storage |
SQLite WAL, 7 tables, migrations |
coordinator.api |
FastAPI server with 6 endpoints + SSE streaming |
Every routing decision is scored with the Decision Quality (DQ) framework:
DQ = Validity (35%) + Specificity (25%) + Correctness (40%)
$ coord score "Design a distributed caching system"
Query: Design a distributed caching system
Complexity: 0.850
Model: opus
Thinking: high
DQ Score: 0.789 (V:0.97 S:1.00 C:0.50)
Cost est: $0.013000Session → ACE Analysis → Pattern Detection → Baseline Update → Better Routing
↑ ↓
└──────────────────── Feedback Loop ───────────────────────────┘
After 50+ sessions, the coordinator:
- Calculates optimal complexity thresholds from outcome data
- Proposes baseline updates when confidence > 75%
- Auto-applies improvements that beat holdout accuracy by >5%
- Rolls back if any metric drops >10%
coord-api --port 3848| Endpoint | Method | Purpose |
|---|---|---|
/api/health |
GET | Health check + uptime |
/api/coordinate |
POST | Start coordination session |
/api/status |
GET | Active agents |
/api/history |
GET | Session outcomes |
/api/metrics |
GET | DQ trends + accuracy |
/api/stream |
GET | SSE real-time updates |
Built on insights from 64 papers analyzed in a structured research session:
| Paper | Innovation Applied |
|---|---|
| Agyn (72.2% SWE-bench) | Dynamic agent topology selection |
| W&D (Write & Dispatch) | Parallel tool calling optimization |
| EGSS | Entropy-guided search scaling — spend compute where uncertainty is highest |
| Spectral Guardrails | Safety constraints that don't kill performance |
| RC-GRPO | Reward-conditioned group preference optimization |
pytest tests/ → 212/212 passed (1.52s)
ruff check src/ → All checks passed
ruff format --check → 31 files formatted
mypy src/ --strict → No issues found
MIT

