fugue-cli
v0.7.0
Published
Fugue — AI agents in concert. Conductor-based PMO for your terminal.
Maintainers
Readme
fugue
AI agents in concert. A conductor-based PMO that orchestrates your AI agents into production-grade harmony.
In music, a fugue is a composition where multiple voices enter one by one, each following strict rules, building into a complex yet perfectly structured whole. That's exactly how fugue manages your AI agents.
npm install -g fugue-cliWhat is fugue?
fugue sits between your code editor and your project board. It doesn't write code — it orchestrates AI agents to analyze, audit, and govern your project.
Your AI tools:
+-------------+ +----------+ +----------+ +----------+
| Claude Code | | Cursor | | Codex | | Ollama |
+------+------+ +-----+----+ +-----+----+ +-----+----+
| | | |
+-------+-------+------+------+------+-------+
|
+-----v-----+
| fugue | <-- conductor-based orchestration
| (PMO/audit)| model-agnostic, any LLM/SLM
+-----------+Core Architecture
- Model Registry — register any model you have access to
- Conductor — pick your orchestrator model (the "maestro")
- AIOps — automatic model assignment per agent role (voices)
- Agents — auto-generated from project analysis, with logs and evaluation
Quick Start
# 1. Initialize (auto-detects models, picks conductor)
cd my-project
fugue init
# 2. Reverse-engineer (or import plan)
fugue snapshot # code -> agents -> REQs
# or
fugue plan import ./planning-doc.md
fugue plan decompose
fugue plan confirmDaily Usage
Morning Check
$ fugue status --deliverables
D.01 Planning Doc ✓ imported
D.02 Requirements ✓ 38 confirmed
D.03 Traceability Matrix ◉ 17/38 mapped
D.05 Implementation ◉ 12/38 done
D.06 Tests △ 12/38 pass
D.07 Audit Report ○ gate not runAfter Coding
$ fugue audit --gate
PASS REQ-001: User login
WARN REQ-012: Payment — no tests
TODO REQ-025: New code detected, no REQ mapped
Gate: CONDITIONAL PASS (2 issues)Progressive Control (Task Mode)
$ fugue task new "Payment refund feature" --requester PM-Kim
$ fugue task import TASK-001 ./refund-spec.md
$ fugue task validate TASK-001 # conductor checks doc quality
$ fugue task decompose TASK-001 # extract REQ IDs
$ fugue task confirm TASK-001 # requester approves
$ fugue task assign TASK-001 --to dev-Park
$ fugue task done TASK-001 # auto-verify + report to requesterCheck Agents
$ fugue agent list
★ Conductor: maestro (claude-opus, subscription)
🏗 Architects
pipeline-architect claude-opus 3 runs 100%
🔍 Domain Analysts
api-analyst ollama:qwen2.5:7b 12 runs 92%
🛡 Auditors
security-auditor gemini-pro 5 runs 100%Two Ways to Start
Path 1: Reverse — You already have code
fugue snapshot # conductor analyzes → agents extract REQsPath 2: Forward — You have a planning doc
fugue plan import ./spec.md
fugue plan decompose
fugue plan confirmBoth paths converge into the same deliverable tree (D.01-D.08).
CLI Reference
fugue
├── init # Initialize + auto-detect models + pick conductor
├── setup # Re-scan models
├── model add/list/remove # Model registry
├── model usage # Token usage + cost per model
├── config set/show # Configuration (conductor, conductor-name)
├── snapshot [review|apply|discard] # Reverse-engineer (staging workflow)
├── plan import/decompose/confirm # Forward path
├── task new/import/validate/decompose/confirm/assign/done/escalate/list/show/report
├── audit [--quick|--gate] # Audit (gap detection, gate judgment)
├── agent list/log/eval # Agent governance
├── status [--deliverables] # Project overview
├── report # HTML progress report
├── notify add/list/remove/test # Notification plugins (Slack)
├── diagnose # T-shirt Sizing (XS~XL) + methodology
├── gate [--phase N] # Phase Gate scoring (100-point)
├── deliver [task-id] # Formal delivery judgment + report
├── workflow run/list/show/define # Repeatable multi-step workflows
└── admin overview/usage/register # Cross-project monitoringWorkflows
Repeatable patterns with human checkpoints:
# New feature (7 steps: auto → gate → gate → manual → manual → gate → auto)
fugue workflow run feature ./spec.md --requester PM-Kim
# Bug fix (lighter process)
fugue workflow run bugfix ./bug-report.md --requester QA
# Reverse-engineer existing code
fugue workflow run reverse
# Regular audit
fugue workflow run review
# Define custom workflow
fugue workflow define my-processStep types: auto (runs and continues), gate (pauses for review), manual (waits for human).
$ fugue workflow show feature
1. new+import [auto] Create task and import planning doc
2. validate [gate] Validate planning doc quality
3. decompose [gate] Decompose into REQ IDs
4. confirm [manual] Requester confirms REQs
5. assign [manual] Assign worker(s)
6. done [gate] Auto-verify REQs
7. deliver [auto] Generate delivery reportProject Lifecycle
fugue diagnose # Size: M (medium). Crosscheck required.
fugue gate --phase 1 # P1→P2: 82/100 PASS
fugue deliver # DELIVERY: APPROVED → report generated
fugue admin overview # All projects at a glanceDesign Principles
- Protocol layer, not execution. fugue manages roles/manuals/logs. Models do the work.
- Model-agnostic. Works with any LLM/SLM. Switch conductors anytime.
- SLM-first, not SLM-forced. Default to local models. Use LLM when performance demands it.
- File-based. No database. Everything in
.fugue/, trackable with git. - Conductor pattern. One model orchestrates, others execute. Like a fugue.
- Observable. Every agent action is logged. Evaluate performance anytime.
- Progressive control. Start with one task, grow to full project governance.
Built by
Maskit — a 6-person B2B SaaS startup running 15+ AI agent roles in production.
License
Apache 2.0
