CLI reference
The live binary is the final source of flag details:
maestro helpmaestro help <verb>maestro <verb> --helpmaestro help lists every verb the running binary registers. A trailing *
marks a verb that runs under MAESTRO_READ_ONLY=1; on a root verb it means at
least one subverb does. Every verb accepts --json, which prints one compact
JSON success envelope; a failure prints the JSON error envelope on stderr.
maestro work add "<title>" [--start] [--kind <kind>] [--parent <id>] [--blocked-by <id>]... [--acceptance "<condition>"]maestro work start <id>maestro work note <id> "<text>" [--file <path>]maestro work done <id> --check "<command>"maestro work done <id> --evidence "<text>"maestro work done <id> --claim "<claim>" --proof "<proof>" [--candidate <commit>]maestro work show <id> [--notes <n>|all]maestro work list [--all] [--parent <id>]maestro work cancel <id> --reason "<why>"maestro work block <id> --by <work-id>maestro work unblock <id> --by <work-id>maestro work release <id> [--force]maestro work reclaim <id> --reason "<why>"addcreates an open work item (a card).--startalso claims it for the calling session, aswork startdoes.--kindis one offeature,task(the default),bug,chore,implement,idea, orresearch.startclaims the item’s lease for the calling session.noteappends a note without changing state;--filereads the body from a file.donecompletes the item, taking an unheld lease.--checkruns the command in the repository root and records its exit code, duration, commit and whether the tree was clean (proof kind: check); a failing check is recorded and the item still closes.--evidencerecords text (proof kind: text).--claimand--proofare repeatable and paired. Withpolicy-proofon, one of the three forms is required.showprints one item with its gates, blockers, evidence, children, and the last five notes.listprints open and active items with holder (held by <session> (live|dead)), blockers and gates, then one line counting done and cancelled items.--alllists every item;--parent <id>lists one item’s children in every state. JSON:{ works: [...], counts: { open, active, done, cancelled } }, each active item withholder: { id, harness, live, lastSeen }.cancelcloses open or held work and its open or active descendants with a recorded reason.blockandunblockadd or remove a blocker after creation under the same checks aswork add --blocked-by.releasegives up the calling session’s lease;--forcedrops another session’s lease even while it is alive, and the event records who forced it.reclaimtakes an existing lease with a recorded reason.
work take, work return, work accept, and the --to, --fresh,
--model, --blocked, --owner, and --rework flags belong to the SLP
plugin; see SLP plugin.
decision
Section titled “decision”maestro decision add "<text>" [--rationale "<why>"] [--work <id>] [--supersedes <id>] [--parent <id>] [--dissent "<view>"]maestro decision draft "<text>" [--needs-owner] [--rationale "<why>"] [--work <id>] [--supersedes <id>] [--parent <id>] [--dissent "<view>"]maestro decision draft <id> "<replacement text>"maestro decision lock <id> [--dissent "<view>"]maestro decision withdraw <id> [--reason "<why>"]maestro decision show <id> [--wide]maestro decision list [--all] [--work <id>]addrecords a decision and locks it in one command.draftcreates or edits a draft that waits on the owner;--needs-ownermakesmaestro attentionreport it.locklocks it;withdrawdrops a draft that will not be locked.--supersedesreplaces a locked decision. Supersession takes effect when the replacement is locked.listprints the 20 most recently updated decisions, newest first, with the total.--alllists every decision in id order;--worklists the ones linked to one item.
bundle and handoff
Section titled “bundle and handoff”maestro bundle open <id> [--work <work-id>]...maestro bundle check <id> [--final]maestro bundle close <id>maestro bundle show <id>maestro bundle list [--all]maestro handoff <bundle-id>openscaffoldsSPEC.md,NOTES.md, andVERIFY.mdunder.maestro/bundle/<id>and links the named work items.checkfails only when a SPEC unit has no VERIFY row;--finalalso fails when a row has no result.- A bundle archives itself when
work donecloses the last open item linked to it; VERIFY rows with no result are reported, not blocking.closesnapshots the three files into the store and archives the bundle by hand. showprints the three files, linked work and decisions.listprints active bundles, most recently updated first, then a count of archived ones;--alllists those too.handofffills untouched sections of a bundle’sNOTES.mdfrom the store and Git.
lesson
Section titled “lesson”maestro lesson file "<what happened>" --target "<doctrine>" --expected "<what should have happened>" --why "<why>" --evidence <id> [--project <name>]maestro lesson list [--all] [--project <name>]maestro lesson show <id>maestro lesson process <id> --commit <commit>maestro lesson process <id> --answer "<why no edit>"A lesson records a correction to a recipe, rule, template, skill or Workspace
Pack. file requires --target, --expected, --why, and at least one
--evidence work or decision id. process marks a lesson answered by the
commit that carries the edit, or by the reason no edit was made. Nothing
deletes a lesson.
search
Section titled “search”maestro search "<query>" [--limit <n>] [--local]Searches work, decisions, notes, terms, bundles, memory facts, recorded
prompts, event history and imported legacy records in the project store, then
the Hub room at ~/maestro; Hub hits carry store: hub ([hub] in text).
--limit bounds the combined list, project hits first. A Hub room that exists
but cannot be read fails the search with HUB_UNAVAILABLE; --local skips
the Hub and searches this store only.
maestro term listmaestro term show <name>Reads the glossary kept in the store. maestro search finds terms next to the
work and decisions that use them.
memory
Section titled “memory”Global memory lives in the Hub store at ~/maestro. Every memory verb works
from any cwd: list and show read the Hub store directly, and ingest,
retract and render run through the Hub’s own CLI when the current store is
not the Hub (--from and --out paths resolve against your cwd). A missing Hub
store fails with HUB_UNAVAILABLE. The SessionStart brief counts buffer facts
the next ingest would promote.
ingest [--dry-run] [--from <dir>]promotes buffer facts (Claude auto-memory, Codex memories) through supersession, dedup and evidence gates. A fact whose slug is shaped like a generated fact id (m1,m12) is refused, so a slug never shadows another fact’s id.list [--all]andshow <id-or-slug>read facts;--allincludes superseded and retracted ones.retract <id-or-slug> --reason <why>retires a fact so the buffers can never promote it again.render [--check] [--force] [--out <path>]writes~/maestro/MEMORY.mdfrom the store and refuses to overwrite a hand edit.
maestro topic path <slug>maestro topic listpath creates .maestro/topic/<slug> and prints its absolute path, the place
for files an agent makes while discussing or researching a topic (demos,
reports, notes, captures). The folder is outside Git. list lists the topics
and their files.
Observation
Section titled “Observation”attention
Section titled “attention”maestro attention scans the store when called and prints three kinds of
finding: HUMAN_DECISION_REQUIRED (a draft marked --needs-owner on
unfinished work), LESSONS_PENDING, and REPEATED_FAILURE. It changes no
work and runs no watcher.
maestro brief summarizes registered repositories without changing their
stores. maestro brief --session prints this session’s SessionStart brief, the
text the hooks and maestro mcp serve deliver.
legacy
Section titled “legacy”maestro legacy show <id> [--file <path>] reads a card imported from the
Rust line, with its files.
Methods and plugins
Section titled “Methods and plugins”recipe
Section titled “recipe”recipe list lists shipped recipes; recipe show <name> prints one.
plugin
Section titled “plugin”plugin list lists the built-in plugins and their state. plugin enable <name> and plugin disable <name> turn one on or off for this repository and
let it set up or undo its effects.
maestro mcp serve starts a foreground stdio MCP server that delivers the
session brief as its initialize instructions. It offers no tools.
Runtime and harness
Section titled “Runtime and harness”install, update, and uninstall
Section titled “install, update, and uninstall”maestro installinstalls the runtime, wires the current repository, and creates or refreshes the Hub room.maestro install --seat-tokenalso reads oneclaude setup-tokentoken from stdin and stores it at~/.maestro/claude/oauth-token(0600) for every Claude seat; run it asclaude setup-token | maestro install --seat-token.maestro updatefast-forwards the recorded source and resynchronizes the runtime.maestro uninstallremoves managed repository wiring without deleting its data or the Hub room.
maestro room forget <path> removes one repository from the Hub registry
without uninstalling it. room mark is run by the installer only.
doctor, version, and hook
Section titled “doctor, version, and hook”maestro doctorchecks runtime and repository wiring read-only.maestro versionprints the package and source identity.maestro hook record --event <name> [--harness <name>] [--source <why>]records a harness event and prints the brief.
SLP plugin
Section titled “SLP plugin”The team verbs belong to the built-in plugin slp, which is off by default.
Enable it with maestro plugin enable slp in the Hub room and in the project;
maestro team start enables it in its target project. While it is off, these
verbs are refused with a line naming the enable command. See
SLP setup and storage.
A team’s seats have exactly nine public operations. Flags configure one operation; they are not separate tools.
maestro team startmaestro team stopmaestro status [work-id]maestro work addmaestro work takemaestro work notemaestro work returnmaestro work acceptmaestro decideteam start
Section titled “team start”maestro team start <project> "<objective>" [--lead-model <model>] [--peer-model <model>]Hub Supervisor authority; it runs from ~/maestro. It pins the Workspace Pack
~/maestro/SLP.md and both seat files into the project generation, opens the
Lead from its seat file and waits for it to acknowledge, creates initial
OPEN work for the Lead, and opens the generation’s runtime pane through
Maestro’s Herdr plugin. Repeating an identical running start verifies and
restores missing panes without duplicates. Every Herdr call goes over the
socket at HERDR_SOCKET_PATH; an unreachable socket fails with
HERDR_UNAVAILABLE, and a generation whose runtime pane did not open fails
with RUNTIME_PANE_FAILED naming maestro install.
--lead-model and --peer-model launch that seat with the named model
(claude --model or codex --model on its launch line) and are recorded on
the team row. The seat file’s own model is the default; the seat file and its
pinned digest are unchanged. An empty value is INVALID_OPTION, and the name
is passed through unvalidated for the harness to judge. A seat whose render is
missing fails with SEAT_NOT_INSTALLED, and a Claude seat with no seat token
fails with SEAT_TOKEN_MISSING, both before any pane opens.
team stop
Section titled “team stop”cd ~/maestromaestro team stop <team-id> --reason "<closing report>"maestro team stop <team-id> --emergency --reason "<why this generation is abandoned>"Hub Supervisor authority. Normal stop requires every work item to be DONE.
It closes the Peers, the Lead, the runtime pane, and the workspace, and
records STOPPED only once every pane and the workspace are gone; a partial
close stays RUNNING and a retry continues cleanup. --reason is the closing
report the Hub’s maestro status prints as
<team> g<n> STOPPED (supervisor): <reason>.
Emergency stop keeps each unfinished item’s four-state value and records
immutable abandonment actor, reason, generation, and time. Later generations
neither inherit nor change those records. Without --reason, Maestro records
a generic Hub emergency reason.
status
Section titled “status”maestro status [--all]maestro status <work-id> [--json]maestro status <decision-id>Read-only and scoped to the caller. At the Hub it lists team generations with
their runtime pane state, missing panes, abandoned work counts, and each
escalation waiting on the Hub as blocked for the Hub: <team-id>:<id> <note>. In a team pane it lists the team’s unfinished items (a Peer sees only
its own) with * on those waiting on the caller and collapses DONE into a
count that --all expands. The work form prints state, revision, objective,
the latest entry, linked decisions, and a next: line naming what the caller
may run; its text shows one line of the objective and --json prints it in
full. A decision id prints that decision’s choice, why and scope.
work add in a team
Section titled “work add in a team”maestro work add "<objective>"maestro work add "<objective>" --to <peer-name>maestro work add "<objective>" --to <peer-name> --freshmaestro work add "<objective>" --to <peer-name> --model <model>Without --to, the Lead opens an item for itself, OPEN with no pane opened
and no line pushed. With --to, Maestro reuses the named Peer or opens it from
the generation’s pinned Peer seat file, then wakes it with [from <role>][<id> OPEN] <objective>; read: maestro status <id> whether it was just
opened or already acknowledged. A Claude Peer is opened with
CLAUDE_CONFIG_DIR=~/.maestro/claude/peer. Inside a team, --acceptance and
--blocked-by are refused with INVALID_OPTION; write them into the
objective, which never changes.
--fresh resets a reused Peer pane to a fresh harness context first (Claude
Code /clear, Codex /new), proven by a new harness session and the same
READY check a new pane passes. It is refused with PEER_ACTIVE while that
Peer holds ACTIVE work, and with PEER_RESET_FAILED, nothing added, when the
reset does not take. --model <model> launches that one Peer with the named
model over the generation’s --peer-model. It is INVALID_OPTION without
--to, with an empty value, or on a Peer pane that is already running: drop
it to reuse that pane, or pick another Peer name.
work take
Section titled “work take”maestro work take <work-id>The assigned Lead or Peer moves OPEN work to ACTIVE. RETURNED work also
requires an unused reviewer grant for its current return revision.
work note in a team
Section titled “work note in a team”maestro work note <work-id> "<material note>"maestro work note <work-id> "<specific gap>" --reworkmaestro work note <work-id> "<what I need>" --blockedmaestro work note <work-id> "owner asked: <what>" --ownerA note adds context without changing state. --rework is restricted to the
reviewer of that return; it grants the same assignee one retake of the current
return revision. --blocked flags the note and pushes a BLOCKED line to the
seat above the caller. --owner records an owner instruction typed into the
caller’s pane: it sets no blocked flag, pushes an OWNER line to the seat
above, and is refused together with --blocked or --rework as
INVALID_OPTION. The Hub may record a plain note on the Lead’s item, which
reaches the Lead’s pane as [from hub-supervisor][<id> NOTE]; --blocked and
--owner stay refused from the Hub. No form can change the objective.
work return
Section titled “work return”maestro work return <work-id> "<result; proof; blocker; residual risk>"The current owner moves ACTIVE work to RETURNED. One concise body carries
the result and any blocker or residual risk.
work accept
Section titled “work accept”maestro work accept <work-id>maestro work accept <work-id> --outcome cancelledMoves RETURNED work to DONE. The Lead accepts Peer work; the Hub
Supervisor accepts Lead work. Nobody accepts their own return. Cancellation may
close OPEN or RETURNED work; ACTIVE work must return first.
decide
Section titled “decide”maestro decide "<choice>" --why "<reason>" \ [--work <work-id>] \ [--replaces <decision-id>] \ [--scope owner|cross-team]Writes one immutable settled decision. The Lead owns technical scope, and the
Hub Supervisor owns owner or cross-team scope. --work <work-id> links the
item and wakes the seat holding it with a DECIDED line. At the Hub, a unique
work id resolves directly; qualify an id shared by several teams as
<team-id>:<work-id>.
Work states
Section titled “Work states”OPEN -> ACTIVE -> RETURNED -> DONEwork note changes no state. Rework is work note --rework by the reviewer
followed by one assignee retake of that exact return revision. A blocker is
written in the return body, or flagged on a note with work note --blocked
while the holder keeps the item; there is no separate blocked state.
slp runtime, slp restore, and slp status
Section titled “slp runtime, slp restore, and slp status”maestro install renders ~/maestro/herdr-plugin.toml and links the Hub
room as the Herdr plugin maestro; maestro uninstall removes the link and
the file. These subverbs are not SLP operations. Herdr launches the first two
from that manifest: slp runtime is the runtime pane entrypoint
(team start opens it with MAESTRO_SLP_TEAM and MAESTRO_SLP_GENERATION in
its environment; it holds the generation’s event subscription and records
stalls, idle wakes and pane loss as the actor runtime), and slp restore is
the startup hook that reopens the runtime pane of every RUNNING generation
whose seat panes survived a Herdr restart. maestro slp status, from a team
pane, prints whether the runtime is running, the Hub pane team start
recorded, the wakes it still holds for working seats, and the wakes it dropped
as unreachable because no target could be resolved.