catlog22/maestro-flow
About
Intent-driven workflow orchestration for multi-agent AI development — adaptive lifecycle engine, self-reinforcing knowledge graph, and visual dashboard for Claude Code, Gemini, Codex & more
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +6
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalMaestro-Flow
Intent-Driven Multi-Agent Workflow Orchestration
Tell it what to do. Maestro plans, dispatches, executes, and verifies — automatically.
Most AI coding tools let you run one agent on one task. Maestro-Flow coordinates multiple agents across an entire development lifecycle — from brainstorming to deployment. An adaptive decision engine adjusts strategy based on real results, and a knowledge graph feeds each session's discoveries into the next.
Core Capabilities
Adaptive Orchestration — The Ralph v2 engine reads project state, classifies natural-language intent into 40+ command chain types, and makes dynamic decisions at checkpoints: proceed, fall back, or insert a fix loop. No YAML. No pipeline config.
Cross-Backend Dispatch — Mix Claude, Codex, Gemini, Qwen, OpenCode, and Grok in a single workflow through four composable patterns: Delegate (async dispatch), Team (role-based coordination), Wave (dependency parallelism), and Swarm (ACO exploration).
Self-Reinforcing Knowledge — Patterns, pitfalls, and decisions discovered during execution are automatically persisted as Specs and Knowhow. Hooks inject relevant knowledge into future agent prompts — the project gets smarter over time.
Long-Running Self-Correction — Odyssey commands run multi-hour autonomous loops, adapting strategy at each checkpoint until acceptance criteria are met.
Install
npm install -g [email protected]
maestro install # interactive component selector
Requires Node.js ≥ 22.19 and at least one host CLI: Claude Code (default) and/or Grok Build. Optionally install Codex CLI or agy CLI for multi-agent workflows.
Grok overlay: install official [email protected] first, then run .\install.ps1 / ./install.sh from the repo root (--path supported). Project instructions land in .grok/rules/maestro.md; leftover Maestro sections in .grok/AGENTS.md are stripped on reinstall. A mismatched official version fails; it does not auto-downgrade. If the overlay is already applied and only assets are missing, run the same script again. Project-level MCP / hooks need the folder trusted (interactive confirm or /hooks-trust); user-level maestro-tools does not. Details: root INSTALL.md. Product install: Installation Guide.
After install, teach only the v3 CLI: maestro session open → maestro run next → maestro run complete --advance → maestro session complete.
Quick Start
Ralph — Closed-Loop Policy Layer
The primary entry point. State your goal; Ralph determines the lifecycle stage, builds a command chain, and dynamically adjusts at decision nodes:
/maestro-ralph "implement OAuth2 auth with refresh tokens"
# Ralph auto-builds: analyze → plan → execute → verify → review → test
# On failure → auto-inserts debug → fix → retry loop
# New project → auto-prepends brainstorm → blueprint
maestro session status # view session progress
/maestro-ralph -c # resume from decision pause
/maestro-ralph -y "..." # full auto, no confirmations
Core Pipeline
Intent input → Ralph classifies (40+ chain types)
│
▼
brainstorm → blueprint(opt) → analyze → plan → execute → verify
◆ decision
review ── ◆ ── test ── ◆ ── milestone
◆ → next milestone
Three quality modes control pipeline depth:
| Mode | Pipeline | Use case |
|---|---|---|
full |
verify → business-test → review → test-gen → test | Production, security-critical |
standard |
verify → review → test | Default, balanced |
quick |
verify → CLI-review | Prototyping, hotfixes |
Other Entry Points
/maestro "add user profile page" # intent-to-chain planning, auto chain selection
/maestro-next "fix redirect bug" # pure router: companion / single Run / /maestro
/maestro-companion "fix a README typo" # lightweight execution: minimal Run lifecycle
Odyssey — Long-Running Autonomous Loops
For large-scale debugging, deep refactoring, and UI optimization that require sustained iteration:
One entry, /maestro-odyssey <intent> --mode <name>, with seven modes:
| Mode | Loop pattern |
|---|---|
--mode debug |
archaeology → diagnosis → fix → confirm → generalize → persist |
--mode planex |
parse requirements → plan → execute → strict verify → fix loop |
--mode improve |
multi-dimension audit → deep diagnosis → targeted fix → verify → generalize |
--mode review |
multi-dimension review → targeted fix → test → generalize → persist |
--mode security |
tiered security audit (OWASP + deps + secrets + STRIDE), read-only |
--mode defensive |
business-anchor → backward-slice → 8-pattern defensive scan → forward-propagate → risk score, read-only |
--mode ui |
visual survey → audit → divergent exploration → fix → verify |
Odyssey runs until acceptance criteria are met, adapting strategy mid-loop and auto-persisting discoveries as knowledge.
Governed exact search
For a known string or identifier, use the standalone fixed-string route:
maestro search "Authorization: Bearer" --exact
maestro search "needle" --exact --include-linked-code --json
--exact uses the bundled @vscode/ripgrep adapter and returns relative filePath,
line/column, preview, and truncation state without normal ranking or fusion. The current
repository is searched by default; linked code requires both --include-linked-code and a
codebase read share. .gitignore, .maestroignore, sensitive excludes, and timeout/result/
byte caps always apply.
Ranked search uses the low-latency BM25 path by default; embedding reranking runs only with
explicit --semantic. --diagnostics adds bounded request-scoped machine-readable diagnostics
(embedded in --json responses, otherwise written to stderr). Adaptive candidate budgets,
compiled postings, file-level incremental indexing, and structured chunks remain controlled,
default-off experiments and do not change the default search contract.
Documentation
Getting Started
| Guide | Description | |
|---|---|---|
| 01 | Quick Start | Install, first workflow, key concepts |
| 02 | Install Guide | Component selection, workspace setup |
| 03 | Ralph Engine | Adaptive decisions, quality modes, session management |
| 04 | Command Reference | All 64 commands with flow diagrams and chaining |
Daily Use
| Guide | Description |
|---|---|
| CLI Commands | 35+ terminal commands quick reference |
| Knowledge Management | Knowledge graph, specs, knowhow, wiki overview |
| Spec System | Writing, loading, and auto-injecting project rules |
| Quality Pipeline | verify → review → test three-tier pipeline |
| Hooks | 17 hook triggers, spec injection, context budget |
Advanced & Design Docs (click to expand)
| Guide | Description |
|---|---|
| Workflow Structure | Four-layer command topology, six canonical paths |
| Multi-Agent Coordination | Delegate / Team / Wave / Swarm in depth |
| Delegate Async | Cross-CLI dispatch, message injection, chaining |
| Overlay Extensions | Add behavior to commands without touching source |
| Worktree Parallel Dev | Milestone-level branch isolation |
| Cross-Project Sharing | Multi-project link/unlink knowledge |
| MCP Tools | 9 MCP endpoint tools reference |
| Team Collab | 2–8 person collaboration mode |
| Search System | BM25F full-text search and KG integration |
| Learning Tools | Retro, follow, decompose, investigate toolkit |
| MaestroGraph Design | Unified knowledge graph engine architecture |
| Domain Knowledge Design | Semantic glossary and concept relationships |
Project Scale
333 TypeScript source files / ~80k LoC / 64 slash commands / 45 skill packages / 23 agent definitions / 35+ CLI commands / 92 templates
Tech Stack Commander.js · MCP SDK · better-sqlite3 · web-tree-sitter · React 19 · Zustand · Tailwind CSS 4 · Hono · Vite 6
Directory Structure
maestro/
├── src/ # Core CLI (Commander.js + MCP SDK)
│ ├── commands/ # 35+ CLI commands
│ ├── mcp/ # MCP server (stdio)
│ ├── graph/ # Knowledge graph (SQLite + tree-sitter)
│ └── core/ # Tool registry, extension loader
├── dashboard/ # Web dashboard (React 19)
├── .claude/
│ ├── commands/ # 64 slash commands
│ ├── agents/ # 23 agent definitions
│ └── skills/ # 45 skill packages
├── workflows/ # 115 workflow definitions
└── templates/ # 92 JSON templates
Comparison with Other Tools
| Superpowers | OpenSpec | Trellis | Maestro-Flow | |
|---|---|---|---|---|
| Focus | Agent skills framework | Spec-driven development | Multi-platform harness | Intent-driven orchestration |
| Architecture | Pure .md, no runtime |
CLI + Git | CLI + .trellis/ |
CLI + MCP + SQLite |
| Routing | Manual skill selection | Manual command sequence | Fixed phases | AI-classified 40+ chains |
| Multi-agent | Subagent dispatch | Single agent | Channel-based | 4 patterns × 5 backends |
| Knowledge | Git only | Git archives | File journals | SQLite KG + auto-inject |
| Long-running | Context window | Manual continue | Journal resume | Stateful Odyssey loops |
| Self-correction | Review-fix loop | Manual re-verify | Manual | Auto retry at decision nodes |
Each excels differently: Superpowers has the most mature prompt engineering methodology; OpenSpec brings the most formal spec rigor; Trellis best unifies multi-platform workflows; Maestro-Flow focuses on full-lifecycle orchestration, cross-backend dispatch, and self-reinforcing knowledge.
Acknowledgments
- GET SHIT DONE — Spec-driven development and context engineering philosophy
- Claude-Code-Workflow — Predecessor that pioneered multi-CLI orchestration
- Impeccable — UI design skill (Apache-2.0)
Explore related projects
Loading…
