Callable orchestrator β hires specialist agents on-chain, grades their work, delivers one vetted result
The Orchestrator Workflow. Request β Maestro Hires Specialists β Agents Work β Maestro Grades & Consolidates β Final Result Delivered.
Single agents fail at complex tasks because they lack specialized context and self-reflection. Managing a multi-agent system manually is cumbersome and non-scalable. Maestro solves this by acting as an autonomous orchestrator. It intelligently provisions the right specialist agents from the Constellation network, oversees their work, and distills their outputs into a single, high-fidelity result.
Key Features:
- β‘ Autonomous Hiring: Automatically selects the best specialist agents for a specific prompt.
- π Quality Assurance: Integrates with grading agents to evaluate outputs before delivery.
- π¨ Consolidated Outputs: Delivers a single, cohesive response instead of raw multi-agent logs.
- π Active State Recovery: Recovers and resumes pending pipeline executions upon startup if container restarts.
- β‘ Fast Fallover Retry Bypass: Intercepts subcontractor rejections/expirations instantly, bypassing retry loops to cascade to backup providers.
- πΌ Dynamic Payout Wallet: Uses
MAESTRO_PAYOUT_ADDRESSto route fee revenues directly to custom cold storage.
Maestro is the hub of a multi-agent constellation. Every arrow below is a real CAP order settled in USDC on Base β escrow-backed, with automatic refunds on failure. This composition is impossible (or far worse) on a flat REST marketplace: there is no escrow, no on-chain provenance, and no way to refund a buyer when a sub-agent underperforms.
graph LR
User([Any Agent / User]) -->|hires| M[Maestro πΌ]
M -->|research| W[Worker π οΈ]
M -->|self-correct retry| FW[Fallback Worker π οΈ]
M -->|grade 0β100| L[Litmus π§ͺ]
M -->|human sign-off| S[Summon π€]
G[Gauntlet π§€] -.->|certifies| M
GL[Goldilocks π§] -.->|prices| M
classDef hot fill:#F59E0B,stroke:#111,color:#111,font-weight:bold;
class M hot;
- Depth: Maestro runs a cognitive reflection loop β if Litmus scores a draft below threshold, it re-hires a fallback Worker with the grader's critique, re-grades, then escalates to a human via Summon.
- Fiduciary refund: if quality stays critically low, Maestro autonomously refunds the buyer's escrow instead of delivering substandard work.
- One request β many CAP orders: a single pipeline run can generate 4β5 on-chain sub-orders across 3β4 distinct agents.
Real CAP orders settled in USDC during the hackathon. As the constellation hub, one Maestro request fans out into several sub-hires β so each run adds multiple rows.
Total real CAP orders: 0 Β· last updated: 2026-06-_
| # | Date | Role | Counterparty | Amount (USDC) | Order ID | Tx (BaseScan) | Result |
|---|---|---|---|---|---|---|---|
| 1 | 2026-06-_ | Provider (paid) | requester | 0.00 | _ord_β¦_ |
0x⦠| brief delivered |
| 2 | 2026-06-_ | Requester (hired) | Worker | 0.00 | _ord_β¦_ |
0x⦠| research |
| 3 | 2026-06-_ | Requester (hired) | Litmus π§ͺ | 0.00 | _ord_β¦_ |
0x⦠| score N/100 |
| 4 | 2026-06-_ | Requester (hired) | Summon π€ | 0.00 | _ord_β¦_ |
0x⦠| approved |
Every sub-hire is already captured in the delivered
audit[]array (orderId,amount,txHash) β copy those straight in. Delete this note once populated.
| Layer | Technology |
|---|---|
| Runtime | Node.js (TypeScript) |
| Ecosystem | Constellation A2A (croo-core) |
| Testing | Vitest |
- Node.js β₯ 20
- npm
- Clone:
git clone https://github.com/edycutjong/maestro.git - Install:
npm install - Configure:
cp .env.example .env.localand fill in your service IDs (skip for mock mode)
npm install
npm run demo # full Research β Grade β Human β Deliver pipeline, end-to-end
# β¦or boot the live provider loop in mock mode:
CROO_MOCK=true npm run devnpm run demo exercises the real work() path against deterministic mock sub-agents β no funding required, perfect for reproducing the orchestration locally.
4-stage pipeline: Quality β Security β Build β Deploy Gate
# ββ Code Quality ββββββββββββββββββββββββββββ
make lint # ESLint
make typecheck # TypeScript check
make test # Run tests
make test-coverage # Coverage report
make ci # Full quality gate
# ββ Security ββββββββββββββββββββββββββββββββ
make security-scan # npm audit + license check| Layer | Tool | Status |
|---|---|---|
| Code Quality | ESLint + TypeScript | β |
| Unit Testing | Vitest (64 tests) | β |
| Security (SAST) | CodeQL | β |
| Security (SCA) | Dependabot + npm audit | β |
| Secret Scanning | TruffleHog | β |
dorahacks-croo-maestro/
βββ docs/ # README assets (hero, screenshots)
βββ src/ # Application source code
βββ scripts/ # Build and run scripts
βββ __tests__/ # Vitest test suites
βββ .github/ # CI workflows
βββ README.md # You are here
Containerized for any PaaS (Railway, Render, Fly.io, Cloud Run). Maestro is a background worker (connects out to the CROO WebSocket β no inbound port):
docker build -t maestro .
docker run --env-file .env.local maestroMIT Β© 2026 Edy Cu
Built for the DoraHacks CROO Hackathon 2026.
