relevo docs
Every verb, file and state relevo has, in the order a round meets them: the round, actors and runners, remote builders, the MasterMind, what relevo shows you, the daemon, between rounds, chains, candidates and gates, the refusals, install.
First round
On a clean machine, run relevo setup once. It checks which harnesses are
installed and logged in, asks which models build, which plans and how much a builder may do without
asking, then writes the configuration and installs the agent definitions, the Claude Code plugin and the
daemon’s service. Last, it runs one real round to prove the install. Enter takes the recommended answer,
and an agent can run it for you (see install). relevo doctor
then preflights the plugin, the daemon, each harness binary and its login, and the roles, and names anything
still missing together with the literal fix command. Without the service, a command that needs the daemon
starts one (see the daemon).
relevo setup
# probe, ask, configure, prove it with one round
relevo doctor
# names what is missing and prints the fix
Then, from the MasterMind session, in the repository you want worked on:
relevo bind --name api --no-feature
# start a builder on this tree
relevo send --name api --file plan.md
# hand it the plan
relevo wait --name api --timeout 10m
# 0 closed · 3 needs you · 5 halted
relevo done api
# stop relaying
The builder writes NNN-report.md when it has finished and then creates an
empty NNN-done as its last action. relevo closes the round on that marker:
the marker is the contract, not the report. A runner that exits with a report and no marker still
closes the round, flagged unmarked; a marker with no report is noted
noreport. A builder that exits cleanly with neither is resumed once with a nudge,
then handed to the next candidate; one that exits with an error, or whose stream shows its turn cut off
mid-way, is handed over straight away. Either is halted when there is no next candidate. Nothing is read off
a terminal and nothing is guessed.
relevo makes no judgement about what came back. When the report lands, run the project’s own check
yourself and compare the diff against the plan before calling the round done. In Claude Code the plugin’s wait tool blocks until the round closes and returns the
report, or the plugin’s push hands it to the session; without the plugin, relevo wait
runs as a background command — see
how reports arrive.
demonstrationauthored from relevo’s output formats · not a capture of a session
$ relevo send --name api --file plan.md --dry-run
would send round 5 to api
runner headless claude/anthropic/sonnet
where /usr/bin/claude -p
tier edit (binding (fixed at bind; rebind to pick up config changes))
prompt /home/me/.local/state/relevo/api/005-prompt.md (staged from ./plan.md, 4.1 KiB)
report /home/me/.local/state/relevo/api/out/005-report.md
marker /home/me/.local/state/relevo/api/out/005-done
head relevo: round 5 · to runner "api" · from the MasterMind (not the human)
Your working tree is: /home/me/.worktrees/api
The round
relevo wait exits with meaning, so a shell can branch on it:
- 0
- closed on the marker, stdout is the report path
- 2
- closed without it (
unmarked,noreport, or astoppedround — verify before trusting) - 3
- needs you, stdout says what it is waiting on
- 4
- the binding is DONE or was unbound
- 5
- closed, but the report says halted or blocked — read it before sending again
- 6
- the round was never sent, so nothing is in flight
- 124
- the
--timeoutelapsed.
On every exit but 4 and 124 the wait prints the pending report itself, marked delivered, so collecting a report never means typing into your session.
The report block. A runner ends its report with a fenced
relevo block: status, one of
done, halted, blocked or
deferred; then halted_at,
changed_paths, commands_run and
not_done. relevo reads the block for its shape, never for meaning: a
halted or blocked status is what puts
relevo wait on exit 5. A report with no usable block closes the round as
unstructured, without error.
Every mutating verb ends by listing, on stderr, every other binding that is waiting on a human — how long, and the verb that resolves it. The exit code is unchanged; it is a reminder, not a refusal.
What a round leaves on disk
An open round’s files sit under ~/.local/state/relevo/<name>/,
the state root resolving through $XDG_STATE_HOME. What the runner writes
— the report, the done marker and a reader’s artifact directory — sits in its out/
subdirectory, the one directory relevo lets a harness write outside its tree. When the round closes, relevo
seals those files into relevo.db in the same transaction that closes the round,
and removes them, so the directory afterwards holds only the files of a round still open.
relevo show reads either: a live binding’s open round, or anything sealed or
archived.
- NNN-prompt.md
- The round’s plan, as the MasterMind handed it over. It opens
with an origin line:
relevo: round N · to runner "api" · from the MasterMind (not the human). - out/NNN-report.md
- The runner’s report, read back by the MasterMind. Instruction-shaped lines in it are flagged for the reader to see — never altered, never held back.
- out/NNN-done
- Empty. Its existence is the completion contract.
- out/NNN-<actor>/
- A reader round’s directory: the output file relevo names,
<label>.md, and any other file the reader leaves.relevo show --outputand--artifactsread it. - NNN-runner.jsonl
- The harness’s own stream, one JSON event per line, plus the
supervisor’s exit trailer.
relevo show --transcriptrenders it for a human. When the harness’s stream carries times, each rendered line opens with the event’s clock and how long the step took (12:41:03 +4.2s ● Bash go test ./...); codex’s stream carries no time field and is never stamped. - NNN-diff.patch
- The round’s captured patch, kept as a row in
relevo.dbrather than written beside the others.relevo show --diffprints it,--statthe summary,--driftwhat changed between rounds, and--anchorseach hunk and line with itspath:line. - NNN-question.md
- A blocked runner’s dialog, captured.
- NNN-gate.log
- The gate command’s own output, when the round runs one.
- out/.NNN-prompt.md
- agy at tier
readonly: a copy of the prompt insideout/, the one place agy may read outside its tree. Never listed or sealed; removed when the round closes.
The binding itself, its round log and the configuration are rows in relevo.db,
not files. Nothing else in the state root is a source of truth.
Actors and runners
Three words, kept apart. An actor is a role — builder,
librarian, planner, reviewer. A candidate is one way to
fill it, named harness/provider/model; each actor holds an ordered candidate list
(see candidates, actors, gates). An actor entry also names a
placement — where its rounds run, most preferred first; local
is this machine and every other entry names a servers entry; absent or empty means
["local"]; bind probes the list in order and
--server/--local override it. The runner is the
process relevo starts for the round.
One fresh process per round. A runner is the harness’s non-interactive form —
claude -p …, agy -p …,
opencode run …, codex exec … — started in the
binding’s tree with the round’s prompt, writing its own stream to
NNN-runner.jsonl and returning when it is done. The daemon renders that stream as
it grows, so relevo status and relevo ui show the round
live, about two seconds behind. It also means no memory across rounds: a plan must carry its own context. A writer round runs with a relevo
git first on its PATH that refuses
git stash — every worktree of a repository shares one stash, so a
stash pop in one could take another’s work — and passes every other command to
the real git. At tier read or edit a claude runner may
also read its own prompt and, as a chain member, the chain’s staged plans and inputs, and nothing else
outside its tree. agy cannot take tier edit, because headless agy at that tier
denies every shell command: bind --tier edit on an agy candidate is refused and
points at --tier yolo or --tier harness.
The librarian. relevo also ships librarian, a writer for documentation
only: markdown, agent instruction files, sketches and SVG diagrams, and code comments — never anything that
changes behaviour. relevo setup and relevo config init write it over the builder’s candidates with
the scope {"paths": ["@docs"], "comments": true}. A writer actor’s
scope is checked when its round closes: every path the round changed must match the
scope’s globs (@docs is markdown, .mdx,
.mmd, reStructuredText and AsciiDoc (.rst,
.adoc, .asciidoc), .svg
and .excalidraw files outside testdata, vendor and node_modules), and with
comments: true a source file may change only in comments that are not
directives. That covers Go, Python, shell, YAML, TOML, R, JavaScript and TypeScript, Java, Kotlin, Scala,
C#, Swift, Dart, the C family, Rust, SQL, Lua and Haskell: with the comments stripped, every other line must
match, so a docstring or a string literal counts as code. A file relevo cannot judge is refused, never
guessed, and a served round is judged by the server’s relevo. A round outside its
scope still closes, with its report, diff and usage recorded, but as halted: the
binding goes NEEDS YOU naming the file, and the gate does not run. A writer with no scope closes as before.
Reader actors
A reader runs like a builder — bind it, send it a plan — but its round reads and reports instead of writing.
relevo runs it in a throwaway scratch copy of the tree: it never edits the shared tree, and nothing it does is
committed. relevo names its output file,
out/NNN-<actor>/<label>.md, and the reader writes its answer there; the
file is queued to the MasterMind like any report. Only when that file is missing or empty does relevo fall back
to the reader’s last message, and relevo show --output says so. A reader that stops
with neither the file nor a closing relevo block is told to continue, up to twice;
if it still has not delivered, the round halts NEEDS YOU naming the transcript to read, and nothing is saved
as its output. A reader runs at tier edit at least, so it can write its output
file; on agy, which cannot take edit, it runs at yolo,
so binding it needs --allow-yolo unless policy.max_tier
allows yolo.
relevo bind --name webshop --no-feature --actor reviewer
relevo send --name webshop --file q.md
# q.md becomes the round's prompt
relevo show webshop --output
# the round's output file
The reader actors relevo ships are planner,
lite-planner, reviewer and
researcher. The output label follows the actor: a
reviewer writes findings.md, a
researcher notes.md, a planner
plan.md. relevo show <name> --output prints it,
and --artifacts lists the round’s other files.
relevo also ships security-reviewer, a second read-only consult that audits a
diff, area or question for exploitable issues and returns findings with severity,
file:line evidence and preconditions. relevo does not run it on its own:
relevo setup writes a security actor for it on the
planner’s model, which you bind with --actor security and a chain’s security pass
uses; the definition supports the two-round protocol (round one to one
model, its findings to a second model to confirm or refute each and hunt what the first missed), and it writes
findings.md like reviewer.
Planner actors
A planner is a reader actor too: bind a lite-planner, send it a seed, and read
its plan back from the round’s output.
relevo bind --name plan-x --no-feature --actor lite-planner
relevo send --name plan-x --file task.md
# the seed, at most 4 KiB
relevo show plan-x --output
# plan-x's plan.md
relevo send --name api --file ./plan.md
# the plan you reviewed, on to a builder
A planner round takes a seed, not a plan: the prompt is capped at 4 KiB and a larger one is refused
unless --force. Review the plan with
relevo show --output, then hand that output path to a builder. Reviewing is a human
or MasterMind step — outside a chain, relevo sends nothing automatically; a chain
(relevo chain) is the one place you ask it to pass plans along.
Several builders at once. relevo bind gives the MasterMind one builder over
the current tree. relevo bind --worktree attaches another, on its own git worktree,
so exactly one agent writes to any working tree. Each peer is an ordinary binding: its own round counter, round
log, captured diffs and budget, and its own name for every verb that takes one. Started from a subdirectory
(packages/api in a monorepo), the new worktree’s rounds, its check and a
reader’s scratch copy run in that same subdirectory; one the base commit does not have is refused, and the
worktree is removed.
Remote builders
A remote binding is an ordinary binding whose builder runs on someone else’s machine, over a signed, pinned
HTTPS connection instead of a local process. It has no worktree of its own:
relevo send ships a bundle of your branch’s history alongside the plan, and the
daemon polls the server for the round’s state the same way it polls a local builder. Nothing else about the
round changes — plan out, report back, the marker closes it.
-
outbound.
relevo sendships the round’s001-prompt.mdand a bundle ofrelevo/apito the server, over pinned HTTPS. -
The serve daemon runs a fresh headless builder in a worktree on
relevo/api. No MasterMind there. -
inbound. The closed round comes back as a fast-forward onto your own
refs/heads/relevo/api. -
Your daemon polls the server for the round’s state; with no daemon running,
statusandwaitsync first, so a laptop closed overnight still collects the round.
Set up once, per machine
- 01
- On the server host:
relevo serve init --host <hostname>once — a server private key and a self-signed certificate — then share the SHA-256 fingerprint it prints. - 02
- Each client runs
relevo config server key: this machine’s remote-builder identity, an ed25519 keypair, and the enrollment line to hand the server’s admin. - 03
- The admin runs
relevo serve enroll --label <label> --key "<line>"on the server, one line per client. Nothing is enrolled until this happens. - 04
- The client records the server and pins its certificate:
relevo config server add zen https://… --fingerprint sha256:…— and, having a fingerprint to check it against, checks enrollment at once. - 05
relevo config server list— every configured server and this client’s standing on each:enrolled as <label>,not enrolled,unreachable,cert changed.
Since v0.15.0, every request signature is bound to the destination server’s identity. A client that pins the
fingerprint signs for it and needs nothing; a client that trusts the system CA
(--ca system) or runs over plain HTTP
(--insecure) signs for the URL’s host, so the server admin starts
relevo serve --public-host <that host> (repeatable; the port is dropped),
and a server with no accepted audience refuses every signed request. The two ends upgrade together: a
pre-upgrade client against an upgraded server gets HTTP 426, and
relevo config server list marks that server with
server rejected protocol version (426); an upgraded client against a
pre-upgrade server prints server predates audience-bound signatures; upgrade relevo
on the server. Upgrade both, then enrolled as <label>. A
bind --server overrides the actor’s placement, a plain
bind follows the placement list, and --local pins
this machine. A running server picks up changes to its candidates, policy and accounts without a restart;
a new listen address, certificate, --public-host or isolation mode still needs
one.
Then, from any repository
relevo bind --name api --server zen --no-feature
# the binding, and the local branch relevo/api
relevo send --name api --file plan.md
# ships plan.md and a bundle of relevo/api
relevo status
# round state comes from the server, polled
What comes back
The closed round is fetched into your repository’s own
refs/heads/relevo/<name> — fast-forward only, exactly like a local
builder’s worktree branch. Uncommitted changes on the server land on a side ref,
refs/relevo/<name>/round-<N>, and the report names it. When no daemon
is running, every status and every wait syncs
remote bindings first; when one is, they leave the sync to it. Either way a laptop closed overnight still
collects the finished round on the next relevo status. If a server cannot be reached
while a round is open, the binding shows unreachable; past the round’s budget
plus 30 minutes it halts NEEDS YOU (<server> unreachable for <d>; round N
may still be running there), and the halt clears itself once the server answers that the round is
running. The daemon gives a server five seconds to answer; one that does not is left alone for a minute before it is
tried again, so a dead server never holds up your local rounds. A builder that breaks on the server halts the binding NEEDS YOU with the server’s own reason. A server tree left with uncommitted changes is kept through
relevo done, which names it (kept worktree <path>
(on zen: uncommitted changes)), and a later bind --resume picks it up.
relevo unbind then refuses the binding until the tree is clean or you pass
--force, here or with relevo serve unbind --force
on the host; unbind --done keeps it while the server keeps its tree, and
archives it with a server not released note when the server cannot be
reached.
What is refused, and what the server is not
relevo serve runs no MasterMind and takes no administrative verbs over the
network: administration happens on the server host. A remote binding is always created fresh, so
--cwd cannot be combined with --server, and its
builder and labels are fixed at creation: bind --resume with
--rebind or --candidate, or with a new
--feature, --no-feature or
--ticket, is refused — unbind and create it again. relevo handover refuses a remote binding:
its runner, queue and round state live on the server under this machine’s client key, so it cannot
change machines. Tenants are protected from
each other over the wire and from a passive network, not from the server’s admin; on the host, the
server’s isolation mode decides (tenant isolation).
A bind started below the repository root runs its rounds and its check in the same subdirectory on the
server; a server too old to carry that is refused by name, and a bind at the root works with any server.
Tenant isolation on the server
By default serve.isolation is "none": every served
builder runs as the serve user, so tenants are kept apart over the wire but not on the host. Two modes
isolate them, and both fail closed — a missing piece halts the round NEEDS YOU naming it, and the round
never runs unisolated. "user" runs each owner’s builders as that owner’s own unix
user: the server runs as root with its state under /var/lib/relevo, and the admin
enrols each client with --user. "container" runs each
owner’s builders in a rootless podman container from
serve.isolation_image, with only that owner’s paths mounted, and needs no root.
relevo doctor names the mode in force and anything it still lacks.
relevo serve enroll --label <label> --key "<line>" --user <unix user>
# user mode: this client's builders run as that user
relevo config set policy.serve.isolation '"user"'
# or '"container"', with policy.serve.isolation_image
The MasterMind
The MasterMind is the session you drive — the Claude Code or opencode session you run
relevo bind and relevo send from. relevo does not
pick its harness and does not start it. What relevo provides is the definition, so the same architect runs on
any kind; relevo config agents --agent architect installs it, and the harness’s
own flag starts it:
claude --agent architect --model opus
opencode --agent architect -m openrouter/deepseek/deepseek-v4-pro
The plugin
A Claude Code MasterMind installs relevo as a plugin. The plugin carries
relevo mcp — the MCP server that exposes status,
send, wait, done,
show and gate as tools — and two hooks:
SessionStart runs relevo mastermind init, so relevo
knows which session is calling, and UserPromptSubmit runs
relevo mastermind notice, which tells the session when its MasterMind was
enabled, disabled or renamed. It also carries the slash commands /relevo:status
and /relevo:show beside the consent commands, the
planner-loop skill that walks the send → wait → read → verify → done loop, and a
mod for a Claude Code that loads plugin mods (how reports arrive). Every hook,
the MCP server and every command run through small scripts in the plugin that call
relevo from your PATH: without the binary, the hooks
stay silent and the server and commands print one install hint. relevo never reads your own Claude Code
conversation. The plugin ships with relevo’s releases.
/plugin marketplace add fuad-daoud/relevo
/plugin install relevo@relevo
Claude Code caches an installed plugin by version, so after upgrading relevo, update the plugin to match —
relevo doctor warns when the two differ:
claude plugin marketplace update relevo && claude plugin update relevo@relevo
Repository consent
relevo registers a session as a MasterMind only with your consent, and the slash commands answer for you:
/relevo:enable says yes for this session,
/relevo:enable-repo yes for this repository from now on,
/relevo:disable no for this session,
/relevo:disable-repo never in this repository, and
/relevo:reset asks the question again. They run
relevo mastermind enable, enable --repo,
disable, disable --repo and
reset. relevo mastermind list shows the records, and
relevo mastermind rename <id|name> <new-name> gives one a name of your
own. A round’s process is not a consent candidate: it runs with exactly one
RELEVO_RUNNER=<binding name> and relevo strips its own identity variables,
so a builder or reader session is never asked the repository consent question, never briefed and never
registered as a MasterMind.
How reports arrive
A report reaches the MasterMind by exactly one of four routes, and by nothing else.
The wait. In Claude Code, the send tool’s result ends by pointing at the
plugin’s wait tool with the round’s budget. wait
blocks until the round closes, needs you or times out, and returns the report; a progress notice every half
minute keeps the call alive. Where there are no MCP tools, the MasterMind runs
relevo wait --name <n> --timeout <budget> as a background command and
ends its turn, and the session wakes with the report.
The plugin’s push. In a Claude Code that loads plugin mods, the plugin’s mod runs
relevo push for the session once it is a MasterMind, and hands each report or
NEEDS YOU to the session as it arrives: it starts its own turn when the session is idle, or joins the turn in
progress. The mod confirms each one with relevo push --ack; one it could not
deliver falls back to the wait, and a wait on a report the mod already delivered says
delivered by the mod and returns nothing. In a headless claude -p session the mod starts no push, and
wait returns the report itself, in the same reply.
A harness deliverer, or your own wait. An opencode MasterMind gets each report as a new turn, and an
agy MasterMind is woken by the report itself, through credentials relevo refreshes on every command. A
relevo wait you run by hand collects it too.
Nothing is ever typed into a terminal. The mod hands a report over through Claude Code’s own plugin
interface. No verb has to guess who is calling, because the plugin’s hook exports
RELEVO_MASTERMIND.
The band. The mod also draws a band above the prompt: relevo · <MasterMind>,
up to three rows for bindings waiting on you — NEEDS YOU first, then reports to verify, oldest first — each
with a number key that drafts the next move, such as relevo show <n> --report,
into the prompt without sending it, and a rail with the rest, a chain’s progress included. A row whose round finished also carries [ done ], which runs
relevo done <name> and says whether it released the worktree; it has no
number key, so a stray digit never closes a binding. It raises a toast
only for a chain’s moves, a candidate switch or a gate, never for an arriving report. While it runs,
relevo status --line steps aside to the MasterMind line.
What relevo shows you
Three read surfaces, all text. relevo reports state and moves files; it never summarises a report or grades a round. Every specimen on this page is authored from relevo’s own output formats and labelled so — there is no capture of a real session here.
relevo status — one row per binding, attention first
demonstrationauthored from relevo’s output formats · not a capture of a session
$ relevo status
client /home/me/src/shop round 2 NEEDS YOU stale 23m
MasterMind architect-14 claude route pull
runner headless opencode idle `glm-5.3-flash`
last 13:39:02 question to_planner round 2
pending question round 2 -> mastermind
api /home/me/src/shop round 4 ACTIVE +120/-30 in 6 quiet 40s ●new
MasterMind architect-14 claude route pull
runner headless opencode working pid 51777 since 14:02 `glm-5.3-flash`
last 14:02:11 report to_planner round 4
pending report round 4 -> mastermind
docs /home/me/.local/state/relevo/.worktrees/docs round 3 ACTIVE
MasterMind architect-14 claude route pull
runner headless claude idle `sonnet`
last 13:51:40 report to_planner round 3
pending --
candidates
agy/google/gemini-3.8-flash-high rate-limited 13:58 until 15:30
1 done · relevo unbind --done to clear
Rows are ordered NEEDS YOU, ACTIVE, PAUSED, DONE — attention first, stale first inside a group, newest
last-event first — the same order relevo ui uses, so the two never disagree. DONE
rows are hidden by default and the footer counts them; --all includes them, so
--all is what shows the work you finished and not yet cleared. Naming a binding
shows only that one. Under the rows, one line names each binding this machine handed to another machine or
lost to a takeover: auth · handed over to zen or
auth · taken over by zen, with
(not yet exported: relevo db sync) until the change has left this machine.
Naming such a binding shows that line; DONE-hiding never hides it.
A bare relevo status shows the bindings of the MasterMind this session resolves to.
--mastermind <name|id> shows another’s and
--all-masterminds shows every one; if the session cannot be resolved, the command
refuses and names those two flags rather than listing everything. Naming a binding needs no identity. A chain
shows as one row in place of its members, with the halt reason under it; naming one of its members
shows that chain, and --chains lists every chain and its step. On a machine where
no MasterMind has registered yet, relevo status lists nothing and exits 0.
While a round is open, the row also carries the round’s live diff against its baseline
(+120/-30 in 6, or (shared tree) for a
--cwd binding), an ACTIVE row’s quiet <age>,
and ●new when the newest report has not been read.
--json adds the fields the prose does not spell out: branch,
waiting (cause, line, since, hint), last_seq,
live, quiet_for, unread,
wait_live (a relevo wait is polling the binding now),
account (the login a round drew from, with an account pool) and handed_over (the bindings
another machine now writes).
relevo status --line — under the Claude Code prompt
demonstrationauthored from relevo’s output formats · not a capture of a session
> MasterMind architect-14
○ api r3 · builder on glm-5.3-flash · +120/-30 in 6 · 41k tok working 12m
○ plan r1 · planner on opus ARTIFACT IN 4m
● client r1 · builder on glm-5.3-flash · question in NEEDS YOU 2m
One row per live binding of this MasterMind: ○ name rN · <actor>, then
on <candidate> (with @server when the runner is
remote), the reason when the round waits on something, the round’s live diff
(+A/-R in F, (shared) for a
--cwd binding) and its tokens; then the status column and the clock. The status
column is the first that applies: NEEDS YOU; the state of a row that is not ACTIVE
(DONE, PAUSED); REPORT IN
or ARTIFACT IN, with the report’s outcome when it has one
(REPORT IN · halted); QUESTION IN; while the round
runs, what the runner is doing (working, quiet 2m,
stalled 20m, exploring 25m,
gating 1h, exited 1,
running, queued); otherwise the round’s phase
(no prompt yet, prompt sent). The clock comes last,
ticking while the round runs and frozen once the report is in. ● marks a NEEDS YOU
row, and a chain shows as one row in place of its members. The first line names the MasterMind, so each
terminal says which one it is; while a live board runs for it, the next line is
board <mastermind> · <url>. It never probes a builder. It prints nothing
when the store cannot answer, but a session whose MasterMind it cannot resolve is refused, naming
--mastermind <name|id>. Before any MasterMind registers, it prints
relevo: no MasterMind yet. While the plugin’s mod runs for this MasterMind, it
draws these rows in its band above the prompt (the band), and
relevo status --line steps aside to the MasterMind line and the board line;
relevo status --line --json is what the band reads. One line in ~/.claude/settings.json:
"statusLine": { "type": "command", "command": "relevo status --line", "refreshInterval": 1 }
relevo ui — the cockpit
demonstrationauthored from relevo’s own golden render · not a capture of a session
◆ relevo fleet ● 1 needs you v0.19.0 14:02
7 live 1 needs you 2 working 4 idle 27 done sort attention · refreshed 0s ago
╭─ fix-433 round 2 · question · 3m ─────────────────────────────────────────────────────────────╮
│ MasterMind architect-3 · deepseek-v4.1-flash · relevo/fix-433 · +2 commits · $0.03 │
│ │
│ enter open round s send the next plan o shell x stop │
╰────────────────────────────────────────────────────────────────────────────────────────────────╯
needs you 1 a builder is waiting on an answer
▍ ● fix-433 r2 · question · 3m deepseek-v4.1-flash architect-3 $0.03
╰ “Should the dedupe also cover archived bindings, or only live ones?”
working 2 a round is running
● spool-db r1 · quiet 17s · 5m gemini-3.8-flash-high architect-2 plan
● tok-seg r1 · quiet 16s · 6m gemini-3.8-flash-high architect-5 plan
idle 4 finished, waiting for the next plan
○ oc-tui-a r6 · reported 14m deepseek-v4.1-flash architect-3 $0.20
○ oc-tui-probe r4 · reported 48m gemini-3.8-flash-high architect-3 plan
○ rl-tail r2 · reported 31m gemini-3.8-flash-high architect-5 plan
○ serve-status-json r2 · reported 1h deepseek-v4.1-flash architect-13 $0.03
✓ 27 done · 3 today · last done-01 38m ago . show
◌ gated antigravity 1d · openai 25d · the pick skips them
enter open s send x stop D done : command ? all keys q quit
The views read live and archived data. The cockpit is not read-only: every action goes through an
explicit key and confirmation (x stop, D done, u unbind, g gate, s send, r retry, o shell, E editor, b bind), and the :settings, :actors, :candidates, :agents, :servers and :workflows sections are editable in place. It still never types into a terminal. Its fourteen views are :fleet, :rounds, :round, :chains, :stats, :candidates, :actors, :workflows, :agents, :servers, :sync, :settings, :audit and :log, beside the commands :ungate <provider|candidate>, :help and :quit.
:fleet opens on a card for the selected binding — its MasterMind, candidate, branch, commits and spend, and the keys that apply to it — over the bindings grouped needs you, working, idle, on hold and done, done folded behind . and the gated providers at the foot. Opening a NEEDS YOU row lands on its report without claiming it, so the payload is left for the route that delivers it. :chains lists every chain with its status, step, plans, age and where it runs, forks nested under their parent; enter opens its steps and t its trace. :workflows lists the shipped and saved workflows a chain can run: a adds, e edits and d removes a saved one. :sync shows cloud sync’s state. :servers lists the configured servers and probes their health on demand (r); you can add (a), edit (e/enter) and delete (d) a server there; the client key stays with relevo config server key and the view never shows or edits it. A writer round has five tabs — prompt, report, transcript, diff, log — and a reader round four — prompt, artifacts, log, transcript; [ ] step back through every round the binding has run. :rounds opens every round the database has recorded, live or archived, with relevo history’s filter grammar on top.
relevo board — a page on 127.0.0.1
relevo board opens a board in your browser: one HTML page served on
127.0.0.1 with a per-run token, sandboxed so the board’s own scripts cannot reach
relevo, under a content policy that loads nothing remote. A bare relevo board
opens this MasterMind’s live board; a path ending in /board.html opens a board kept
in the repository, and a path ending in .excalidraw opens an Excalidraw whiteboard
that saves the scene beside a companion .svg. It runs in the foreground until
Ctrl-C, and while a live board runs, the status line names it on its own line. An agent reads and writes a
board without the page: relevo board comments,
relevo board comment --text …. New elements take a palette:
--theme, then the repository’s
board_theme (relevo config repo set board_theme
blueprint), then the git setting relevo.boardTheme, then
cockpit. The palettes live in the configuration, cockpit
and blueprint to start: relevo config get themes lists
them, and relevo config set themes.<name> '{…}' adds one, every colour
checked.
relevo board
# this MasterMind's live board
relevo board docs/boards/api/board.html
# a board kept in the repository
relevo board promote --to api
# copy the live board into docs/boards/api/
relevo board url
# print the live board's address
relevo show — one round, after the fact
relevo show <name> prints one section of one round:
--prompt (the default), --report,
--diff with --stat or
--anchors, --drift,
--log with --follow and
--after N, --transcript,
--gate, --findings <id>,
--output or --artifacts,
--artifact <rel> (raw bytes) and --peek (read
without claiming the pending payload). A live binding is read from
its open round’s files; anything sealed or archived is read from the database and renders the same way. Without --peek, a live read marks the pending payload delivered
only when it printed that payload — --report or --output
of that round, or --findings <id> of that consult; every other section claims
nothing. On a chain, --trace prints its ordered trace and
--workflow the workflow it runs.
relevo history -q "harness:agy outcome:halted since:30d" is round history across
every binding relevo has recorded, and --by regroups it.
The daemon
relevo daemon is the reconciler and the one process that opens
relevo.db; every other process reaches the database through the owner socket
$XDG_STATE_HOME/relevo/relevo.sock beside it, so a command that finds no daemon
starts one itself — the systemd user unit when installed, launchctl kickstart on
macOS, otherwise a relevo daemon of its own appending its output to
<state>/daemon.log. A daemon relevo started itself exits after ten minutes with
nothing to do — no client connected, no runner or gate running, no round queued and no sync to run — and the
next command starts it again; one you started by hand, or one the service manager runs, never exits on its
own. A daemon relevo started also exits when its state directory is deleted or re-created under it. So the CLI works on its own: you never have to start the
daemon first, and reports are delivered even when you run a single verb by hand instead of
relevo wait. Run it in any spare terminal, or hand it to systemd or launchd:
relevo daemon
# the reconciler, in the foreground
relevo daemon --check
# exit 0 when one is running, 1 when not
relevo daemon --pprof <path>
# net/http/pprof on a 0600 unix socket; off by default
relevo daemon stop
# stop the daemon relevo started; a service-managed one names its own stop
relevo service install
# a systemd user unit, or a LaunchAgent on macOS, shipped in the binary
relevo service uninstall
# removes the unit, never the binary
Only one daemon runs at a time. It takes an exclusive lock on
$XDG_STATE_HOME/relevo/.daemon.lock and refuses to start beside another, so a
second one started by hand is an error rather than two reconcilers racing. A running daemon moves onto a
newly installed binary by itself within a few seconds, and a round in flight is not interrupted. The service unit ships inside the binary: each time the daemon starts on a
new release, including after relevo update, it rewrites a unit an older release
installed and you never edited, and the new unit takes effect at the next restart, which
relevo doctor reports as due. A unit you edited is kept;
relevo service install --force replaces it.
relevo.db runs on the Turso engine. The first daemon to open a database written
before v0.16.0 converts it once, after backing it up to relevo.db.pre-turso beside
it, and every step survives being killed. The daemon’s lock keeps sqlite3 out, so
relevo db query '<SQL>' is the read-only way in: one
SELECT, WITH or read-only
PRAGMA, through the daemon.
The four states relevo status shows
- ACTIVE
- Someone is working. Nothing needs a human yet. A row may carry
stalled,exploringorquiet— observations: relevo does not kill, nudge or switch on them, with one exception: a stalled runner whose own output shows a provider’s rate limit is gated and switched, as if you had runrelevo gate. - NEEDS YOU
- relevo has stopped and a person must act: a dead builder process, a round past its budget, a binding at its round cap, a permission denial. relevo flags it and reports it; it never cleans it up.
- PAUSED
- An older relevo’s paused binding. Nothing sets this state today, but a binding an older release left released between rounds still reads as PAUSED, keeping its branch and round log. Nothing needs a human,
unbind --doneleaves it alone, andrelevo bind --resumerestores it. - DONE
- You declared the work verified with
relevo done. Relaying stopped deliberately, not because anything went wrong: no reports are queued and no timeouts are flagged. A clean worktree is released so the branch is free to review. A worktree with uncommitted changes is kept, and so is the binding:relevo bind --resumepicks it up with the tree as it was, andrelevo unbindrefuses it until the tree is clean, or--force.
Mid-round switching
The daemon can replace a builder while a round is open, in three cases: its process exits without a report
(straight away when it failed or its stream shows the turn cut off mid-way, after one resume of the same session
when it ended cleanly); you gate its provider with relevo gate — which is how you tell relevo a
running builder hit its limit; or a stalled runner’s own output shows a provider’s rate limit, which relevo
gates for you. It resolves builder again through the actor’s ordered candidate
list and the ledger, starts the pick in the same tree, and hands it the same round’s plan. With an
account pool, it first retries the same candidate on the provider’s next ungated
login; a rotation never counts as a switch.
The round number does not change; the round clock restarts. A switch entry in the
log says what was tried and why, the closing report names it on a Switch: line,
and relevo status counts it on the runner line
(switched 1x). Bounded by max_switches, default 2,
which the rate-limit case does not spend; a new relevo send resets the count.
After that the binding goes NEEDS YOU.
Hooks and webhooks
The daemon runs the argv lists in the configuration’s hooks section, one list per
event — state_changed, round_started,
builder_stalled and binding_stale, and on a
relevo serve host round_queued (a round waits for a
free builder slot) and round_admitted (it starts):
relevo config set hooks.state_changed '[["/path/to/script"]]'. Each runs detached,
with a 10-second timeout and RELEVO_EVENT,
RELEVO_BINDING, RELEVO_STATE,
RELEVO_OLD_STATE and RELEVO_ROUND in the environment;
runs are logged, and relevo doctor has a hooks row. While the configuration has no
hooks section, the next command fills it once from the executables in
~/.config/relevo/hooks/<event>.d/, pointing at the scripts where they are;
the scripts are never removed. An event with no argv list is a silent no-op.
notify.webhooks in the policy section posts the same events straight to a URL with
no script required — a Slack incoming webhook, a Discord webhook, or any endpoint that accepts a JSON POST, in
the slack, discord or
json format, filtered by event or by a state change
(state_changed:needs_you). A webhook is best-effort: a 5-second timeout and no
retry. The cockpit’s :settings edits the list. With cloud sync on, the
hooks section and the scripts under
~/.config/relevo/hooks/ reach every machine you joined (see
also in the box); a script named anywhere else stays on this one.
Between rounds
Verbs for the space after one round closes and before the next opens. Each is the mechanical half of something the MasterMind used to type by hand, and each stops short of the decision.
The check
A binding can carry a gate command: a shell line relevo runs in the worktree, in the subdirectory you
bound from, the instant the completion marker appears, against the tree exactly as the runner left it.
Configure it with --gate 'make check' on bind. A
repository can carry its own: relevo config repo set gate 'make check', kept in
relevo’s configuration under the repository’s first commit, so every clone and worktree of it shares it. A
bind with neither flag takes the repository’s gate, then the policy section’s
gate.default, and runs none when neither is set;
--no-gate opts out of all of them. A reader round takes no gate, even when its
repository sets one. bind and chain print where the
command came from: gate: make check (repo setting),
(--gate) or (policy.gate.default). Every round, and its gate, runs with
RELEVO_BASE set to the commit the binding was cut from, so a check can diff
against it even in a server’s worktree, which has no origin/main; a value
inherited from the daemon’s environment never reaches a round. The gate never decides
anything — it annotates. The round still closes on the marker, the report is still delivered, and the
human still judges the diff; the gate only adds a gate=<result> note, whose
result is one of pass, fail,
timeout or error.
demonstrationauthored from relevo’s output formats · not a capture of a session
Gate: make check -- FAIL (exit 2, 1m40s). Output: relevo show api --round 3 --gate
ok github.com/example/pkg 0.01s
FAIL github.com/example/pkg2 0.02s
The gate’s full output and the supervisor’s exit trailer live in
NNN-gate.log beside the round, and
relevo show <name> --gate prints it. A failing gate’s payload line carries
the last few non-empty lines of that log, so the MasterMind sees why without opening the file.
The reviewer
relevo send --verify — or the policy section’s
verify.default — marks the round: when it closes, after the gate, so the reviewer
sees the gate’s own output, relevo runs a read-only reviewer over the finished round and records its
verdict. --no-verify overrides the policy default for one send; the two flags are
exclusive.
The reviewer is a headless, one-shot reader started at round close in a throwaway worktree at the
runner’s HEAD, removed once it reaches any terminal state. That isolation is what lets it run tests without
touching the builder’s tree or your own checkout. It ends its findings with
verdict: accepted or verdict: rejected; anything else —
no block, an unreadable one, a verdict that is neither word — is recorded as
unstructured and delivered as prose. A verdict decides nothing:
rejected does not reopen the round, stop the binding or summon a human, and the
report is delivered exactly as it always was.
Repair rounds. A failing gate does nothing on its own. A binding can opt into a repair round instead,
with --regate N on bind or
send, or with regate under
gate in the policy section. relevo then opens at most N more rounds, each naming
the failed check and the last 200 non-empty lines of its log, and telling the builder to fix only what the
check reports. 0, the default, turns the loop off. A chain runs these steps for you
across a list of plans — see chains.
Done and unbind
relevo stop <name> ends an open round on purpose. The runner has no stdin,
so there is nothing to ask it: the process is killed and the round closes without a report. A stop is not a
failure — it never charges a mid-round switch and never gates a candidate.
send --candidate is refused while a live round is open — except on a served
binding halted in NEEDS YOU: there, naming the candidate continues that round, and
stop ends it.
relevo done <name> declares the work verified and stops relaying: when the
worktree is clean and no round is open, it releases the worktree so the branch is free to check out, and
relevo bind --resume --name <n> puts it back on the same branch at the same
path. A worktree with uncommitted changes is kept, and the binding stays usable: send
and bind --resume work on it, and done says so
(kept worktree <path> (uncommitted changes); relevo unbind --done retries when it
is clean).
relevo unbind <name> forgets a binding, deleting its directory;
--archive keeps it instead.
Archiving is the default where a binding is cleared in bulk:
relevo unbind --done clears every binding the MasterMind marked DONE in one pass,
archiving each, and --delete removes them instead. An archived binding keeps every
round, event and artifact, so relevo history and
relevo show still read it months later, and the name frees for a fresh binding. A binding whose worktree holds uncommitted work is not cleared: a named
unbind is refused and names relevo unbind <name> --force, and
unbind --done leaves it DONE and tries again on its next run, once the tree is
clean. --force clears it anyway.
--sweep clears the branches and refs of bindings that no longer exist, once each
is on a remote-tracking ref. A PAUSED or BROKEN binding is left alone. A flag the chosen path does not honour
is refused, not ignored: --dry-run goes with --done or
--sweep, --delete with --done,
--archive with a named binding or --pick, and --force with a named binding or --done. A running
chain owns its members: send, done and
unbind on one are refused until the chain is stopped.
relevo deletes only branches it created. unbind --done and
unbind --sweep remove a relevo/<name> branch
relevo created, and only once its commit is on a remote-tracking ref. A
bind or a chain start that fails rolls back the branch it cut seconds earlier, locally or on a
server (--server). And when a server rewrote a round’s branch, relevo resets its
local relevo/<name> to the server’s.
--branch names an existing local branch or one on the repository’s remote:
origin, or the only remote when there is no origin.
When neither has it, relevo fetches exactly that ref once, and refuses, naming
git fetch <remote> <name>, if it is still absent. With several
remotes and none of them origin, it refuses and names them.
A branch adopted with --branch is never deleted — relevo did not create
it.
Chains
A chain is an ordered list of reviewed plans that relevo runs with no MasterMind turn between rounds. For
each plan it runs the loop the last section leaves to you: the builder builds the plan, the check runs, a
reviewer reader judges the plan’s whole diff with
verdict: pass or verdict: changes, and on
changes a planner reader writes a correction plan that the builder then builds. A
red check first spends the builder’s repair rounds (--regate). Each plan gets at
most max_corrections corrections, 3 by default; past that the chain halts NEEDS
YOU. With --security, a security pass runs after the last plan: a scan, and when
it finds something, a fix plan, its build, check and review. The MasterMind hears from relevo once, when the chain finishes or
halts.
relevo chain --name auth --plan r1.md --plan r2.md --feature auth
# start it; --security adds the security pass
relevo wait --name auth
# returns once: 0 finished, 3 halted or stopped
relevo show auth --trace
# one line per step the chain took
relevo status --chains
# every chain and its step
relevo chain --resume --name auth --from review
# after a halt, re-enter at a step
relevo stop auth
# stop the whole chain
demonstrationauthored from relevo’s output formats · not a capture of a session
$ relevo chain --name auth --plan r1.md --plan r2.md --feature auth
started chain auth: 2 plan(s), status running
builder auth local builder (glm-5.3-flash)
reviewer auth-rev local reviewer (opus)
planner auth-plan local lite-planner (sonnet)
check: make check (policy.gate.default)
worktree /home/me/.worktrees/auth on relevo/auth (from main)
relevo wait --name auth
The chain creates its members: the builder under the chain’s own name, on its own worktree, and the readers
beside it — auth-rev, auth-plan, and
auth-sec with the security pass. While the chain runs it owns them:
send, done and unbind on a
member are refused
(binding "auth-rev" belongs to running chain auth; relevo stop auth first), and
relevo stop auth stops the whole chain; relevo done auth
closes a stopped or halted one and is refused while it runs. A halted, stopped or finished chain hands its members back. The plugin’s
wait tool cannot wait on a chain; run
relevo wait --name <chain> in the shell.
relevo show auth --workflow prints the workflow the chain runs.
relevo chain --resume re-runs the step the chain stopped on, taking new settings
flags and refusing by name the ones only a start takes. A start that fails removes the worktree and the branch
it cut. Started below the repository root, a chain runs its rounds and its check in the same subdirectory of its
worktree. A builder that reports done over uncommitted work halts the chain, naming the snapshot ref that holds
the work, whether the round ran here or on a server. The reviewer and the correction planner also read every
repository file the plans name, from the chain’s base branch; the reviewer is told the check the chain itself
ran, and its findings file reaches the planner whole.
The check comes from --gate, else this repository’s own gate
(relevo config repo set gate '<cmd>', see the check),
else the policy’s gate.default; with none, the chain runs and its trace says
no check. The start line names where the check came from. The reviewer, planner and security members run the actors the policy
names in chain.reviewer_actor, chain.planner_actor and
chain.security_actor — reviewer,
lite-planner and security by default — or the ones
--reviewer-actor, --planner-actor and
--security-actor name. relevo setup and
relevo config init give reviewer and
lite-planner the cheapest model a logged-in harness offers (claude’s
sonnet first) and security the planner’s, so a
fresh install can run a chain.
Resuming and switching actors. relevo chain --resume with
--reviewer-actor, --planner-actor or
--security-actor moves that member to the new actor in place, keeping its name and
rounds. A resume either applies in full or changes nothing, and it closes the open round of a member halted
NEEDS YOU itself, so no relevo stop comes first;
relevo stop <chain> ends a chain whose awaited member is gone, and
relevo done works after it. An actor of your own declares the outcomes the chain
branches on, in actors.<actor>.outputs;
relevo chain --dry-run names any that are missing and prints the
relevo config set that adds them.
Placement. Each member binds where its actor’s placement puts it, so a chain can build on a server
while its readers run here. relevo chain --server zen hands the whole chain to the
server: once the server accepts it, this machine can switch off, and the next
relevo status brings every member’s rounds back in order. A server too old for
chains is refused by name, with the feature it lacks. At v0.19.0 a server chain runs only the shipped default
workflow: --workflow, --param,
--task and --from are refused on a
--server start.
Your own workflow
The loop above is the shipped default workflow. A workflow is a YAML or JSON
file of steps — run an actor, run a check,
for-each over the plans, branch on a param with when,
or fork — each with an on map naming the next step for
each result. Save one with relevo config workflow add and run it by name with
--workflow; --param key=value fills its params, and
relevo config lists the shipped and saved ones. This one builds and checks each
plan, with no review:
name: build-check
inputs: { plans: required }
start: plans
steps:
plans: { for-each: plans, on: { next: build, empty: done } }
build: { run: builder, seed: "{{plans.current}}", on: { done: check } }
check: { check: make check, on: { green: plans, red: { halt: "check red" } } }
relevo config workflow add build-check.yaml
# validated, then saved
relevo chain --name lint --plan p.md --no-feature --workflow build-check
relevo config workflow show build-check
# also edit and rm
Candidates, actors, gates
A candidate is one way to run an actor, named by the token
harness/provider/model. harness and
provider are single segments and model is the rest, so
opencode/openrouter/z-ai/glm-5.3-flash is one token. Some harnesses take an
effort suffix on the model: claude reads opus:medium as
--model opus --effort medium, codex reads
gpt-5.6-terra:high as a reasoning effort, and opencode takes a variant as
model#variant. The suffix stays in the token, so two efforts are two candidates.
relevo ships no candidates. Which model you are entitled to run is a fact about your accounts, not
about relevo. relevo setup writes the ones your logged-in harnesses list; edit
them to what your accounts may run. Candidates, the actors, account pools, saved workflows, per-repository
settings, board palettes and the policy live in relevo.db, not in a file, and are
read and changed with relevo config:
relevo config get candidates, relevo config set
actors.builder.candidates '[…]', or relevo config edit for the whole
document. A write that drops a candidate an actor still names is refused unless
--force. A set that adds a field relevo does not read to an agent or an actor is refused, naming the fields it does read, and --force does not override that. With cloud sync on, the document is shared by your machines: an account’s
config_dir and home stay on the machine that wrote
them, and --local on set,
unset or edit keeps any other value on this machine
only (cloud sync).
Each actor holds an ordered candidate list, most preferred first. Omit
--candidate and relevo takes the actor’s first candidate that is not gated; name
one and relevo starts exactly that, gated or not. When several candidates serve an actor and nothing orders
them, relevo refuses rather than picking, and says so as would refuse.
demonstrationauthored from relevo’s output formats · not a capture of a session
$ relevo config
builder (config actors)
1 gemini-3.8-flash-high order rate-limited until 20:28
2 sonnet order <- would pick
3 glm-5.3-flash order limited 2x around 14:00 (30d)
reviewer (config actors)
1 opus sole <- would pick
The marker is computed by the same code bind runs, so it cannot disagree with
what bind does next, and every pick is written down: one line on stderr and a
pick entry in the binding’s log.
Gates
A limit gates the provider — every candidate with that provider — because that is who enforces the
quota, not the model. Without --for it stays gated until you clear it, unless the
--reason names the reset itself (Resets in 51m);
relevo does not otherwise know your provider’s schedule. relevo also records limits from a builder’s own
output, and the kind decides how long: a rate limit until the reset it names, else an hour
(limit_gate_default_ms in the policy); a provider outage, a 5xx or
UNAVAILABLE, the same way; an exhausted credit balance until you top up and
clear it, with a note saying so. A spawn failure gates that one candidate for ten minutes, and an OOM-killed
round gates nothing. Gates relevo records expire on their own. Name a gated candidate explicitly and relevo prints a
note: and proceeds — you named it.
relevo gate claude/anthropic/sonnet --reason "5-hour window"
relevo gate claude/anthropic/sonnet --for 2h
relevo gate --clear anthropic
relevo gate --clear anthropic@work
The same command tells the daemon to replace a running builder that hit its limit: see
mid-round switching. relevo status gains a
candidates block only while something is gated, and
relevo config marks a gated row unavailable:.
A gate set here also reaches every server running one of your open remote bindings, a bare provider
included; a server it cannot reach is named, with the relevo gate --serve line
that gates it there by hand. With cloud sync on, a rate limit gates the provider on every machine, while a
spawn failure stays on the machine that saw it. relevo gate --serve acts on the
local serve daemon’s gates.
Account pools
Several logins for one provider can be one pool. Each entry in the configuration’s
accounts section has a name, a
harness (claude, codex or
opencode; agy has no login to choose), the quota
groups it serves, and the one selector its harness reads:
config_dir for claude, home for codex,
integration and label for opencode. With a pool, a
limit gates one login, group@account, not the whole provider, and the next round,
or a mid-round switch, first retries the same candidate on the next ungated login.
policy.accounts.rotation is failover, the default, or
round-robin, which is refused for a group opencode logins serve, since opencode’s
active login is global to the install and relevo flips it with
opencode auth switch.
relevo gate --clear <group> clears the group and every login in it;
--clear <group>@<account> clears one.
relevo status names a round’s login on the runner line, and
relevo history --by account groups by it. With no accounts configured, nothing
changes.
relevo config set accounts '[
{"name":"work","harness":"claude","groups":["anthropic"],"config_dir":"/home/me/.claude-work"},
{"name":"home","harness":"claude","groups":["anthropic"],"config_dir":"/home/me/.claude"}
]'
relevo config set policy.accounts.rotation '"failover"'
relevo config agents
# installs the role definitions into each claude and codex account's home
relevo doctor
# one row per account: the home exists and holds a login
Several logins for one provider may breach that provider’s terms of service. Whether to configure them is your choice.
What relevo refuses to do
relevo makes no judgements. It moves files, starts processes, and records what each round did. Whether a report is good, whether a question needs a human, whether the work is done — every one of those decisions stays with the MasterMind, or with you. Six structural refusals follow from that, and each has a reason.
It makes no judgements
relevo never summarises, rewrites, or decides that work is done. It reads a report for the shape of its block, never for meaning, and it grades nothing. The decision is the one thing it does not automate — that is the whole product. Inside a chain you started, the verdict that routes the work is the reviewer model’s, not relevo’s.
The check annotates; it never decides
A gate result is a note on the round. A reviewer’s verdict is a note on the round. A round budget that runs out flags NEEDS YOU and kills nothing. relevo reads no agent’s claim for meaning, and the human still judges the diff. In a chain, the check’s exit is a result the chain routes on, because you started the chain and its workflow says where each result goes; relevo still reads the exit, not the work.
The destructive verbs need a name
done and unbind act on one loop and take its
name, or --pick. handover and takeover take a name too, and takeover also asks for --force. Neither resolves the current directory for you, and a bare
verb never opens a picker: a bare done once ended a live loop by accident,
and the recovery is relevo bind --resume. A running chain’s members refuse
send, done and unbind until
the chain is stopped.
It refuses to guess a candidate
More than one candidate serving an actor with no order set is would refuse,
not a pick. relevo lists them and names the command that sets the order, rather than choosing for you.
It deletes only branches it created
unbind --done and unbind --sweep, for a
relevo/<name> branch relevo created and that is already on a
remote-tracking ref; a bind or a chain start that fails, for the branch it cut
seconds earlier; and a round branch the server rewrote, whose local copy relevo resets. A branch holds commits,
and commits are work; an adopted --branch is never deleted. An unbind does not clear a binding whose worktree holds uncommitted work either, unless you pass --force. Nor can a builder
git stash: a writer round runs with a relevo git first
on its PATH that refuses stash, because every worktree
of a repository shares one stash and a stash pop in one lane can take
another’s work. Everything else passes straight to git.
Nothing is typed into a terminal
relevo never sends keystrokes to a terminal or a pane. A report reaches the MasterMind by the wait, the
plugin’s push, a harness deliverer, or a relevo wait you run by hand — and by
nothing else; the plugin hands a report to the session through Claude Code’s own plugin interface.
Also in the box
- bind
- Bind this MasterMind to a runner over the current working tree.
--worktreeattaches another on its own worktree,--serverruns it on a remote host,--cwdbinds an existing directory. A fresh bind names exactly one of--feature Land--no-feature, plus--ticket(a number,#N,owner/repo#N, an issue key likeABC-123, or an issue URL),--actor,--candidate,--tier,--gate,--no-gate,--regate,--local,--base,--branchand--timeout(the round budget, 24h by default).--resumeadopts an existing binding (on the machine a binding was handed to, it cuts the worktree from the branch onorigin), and--rebindwith it replaces a gone runner. - send
- Stage a plan file as the current round and start the runner:
--file,--candidate,--tier,--dry-run,--verify|--no-verify,--regate.--forcesends a planner seed over the 4 KiB cap. Refused on a running chain’s member. - status
- One row per binding: round, state, the runner’s live status, and what
is pending.
--allincludes DONE rows,--lineis the status-line form,--nameshows one binding,--jsonthe machine-readable one.--chainslists chains and their steps;--mastermindand--all-mastermindslook past this session’s MasterMind. A binding this machine handed over, or lost to a takeover, is listed at the end ashanded over to <machine>ortaken over by <machine>. - history
- Round history as JSON across every binding, live or archived:
--here,--binding,--feature,--ticket,--mastermind,--since,--limit,-q QUERY,--by,--rows,--json. - show
- One round’s prompt, report, diff, drift, gate, log, transcript or
output file, live or archived:
--round N,--diff [--stat|--anchors],--log [--follow --after N],--findings <id>,--artifacts,--artifact <rel>,--peek,--json; on a chain,--traceand--workflow; on a server host,--owner. - wait
- Block until a round closes or the binding needs you, then print the
pending report.
--timeout,--round,--any,--peek,--json. A chain’s name waits on the chain: 0 finished, 3 halted or stopped. - chain
- Run several reviewed plans in a row with no MasterMind turn between
rounds (chains):
--name,--plan(repeatable),--feature L|--no-feature,--ticket,--base,--gate|--no-gate,--regate,--max-corrections,--security|--no-security,--reviewer-actor,--planner-actor,--security-actor,--server,--workflow <name|file>,--param k=v,--task|--task-file,--dry-run,--resume [--from <step>]. - ui
- The cockpit:
:fleet,:rounds [query],:round <binding> [N]and the other views in relevo ui;--intervalsets the refresh. - board
- Open a board: one HTML page served on
127.0.0.1with a per-run token (relevo board).--board,--mastermind,--theme(a palette from thethemessection; without it, the repository’sboard_theme),--no-open;url,promote [--to SLUG] [--force],comments,comment --text,text,annotate --text. - done
- Mark a binding done; relaying stops.
--pickchooses it on screen. On a stopped or halted chain, it releases every member and marks the chain done; a running chain is refused until you stop it. - stop
- Kill the runner process and close its round without a report, unless one
is already on disk. On a running chain, it stops the whole chain; a halted one is closed with
doneinstead. - unbind
- Forget a binding, deleting its directory, or keeping it with
--archive.--doneclears every binding the MasterMind marked DONE, archiving each,--deleteremoves them instead;--sweepclears the branches of bindings that no longer exist;--dry-rungoes with--doneor--sweep, and a flag the chosen path does not honour is refused. A binding whose worktree is kept for uncommitted changes stays;--forcearchives or deletes it anyway. - handover
- Give a binding to another machine of your sync fleet: push its
branch, release its worktree and make that machine its writer.
--to <id|label>,--remote(originby default),--json. Needs sync on (cloud sync). - takeover
- Make this machine the writer of a binding another machine writes.
--forceis required: it fences the old writer’s later changes.--json. - daemon
- Run the long-running reconciler:
--interval,--check,--pprof <path>;relevo daemon stopstops one relevo started. - service
install [--force]writes the daemon’s unit that ships in this binary — a systemd user unit, or a LaunchAgent on macOS — enables it and starts the daemon;uninstallremoves the unit, never the binary.- mcp
- Run an MCP server over stdio for a MasterMind:
status,send,wait,done,showandgateas tools.--kind opencodeserves an opencode session, withoutwait;--mastermindnames the MasterMind. Push isrelevo push, not the MCP server. - push
- Hold this MasterMind’s push claim and write its reports and NEEDS YOU
to the plugin’s mod as NDJSON;
--ack <binding> <seq>confirms one. The mod runs it, not you. - setup
- The first-run wizard (the setup wizard): probe
the machine, ask what is still open, write the starter configuration, install the agent definitions,
the plugin and the service, and run one real round.
--answer <id>=<value>(repeatable) answers a question;--jsonprints the questions document and exits 3, then the result. - doctor
- Preflight check: plugin, daemon, harness binaries and each one’s login (from local files only), roles, the database and hooks. It reports; your shell acts.
- db
query '<SQL>'runs one read-only statement againstrelevo.db(--limit,--timeout,--max-bytes,--json);rename-repo --from <url> --to <url>follows a renamed remote;relabelsets the feature label of finished bindings.syncis cloud sync, wheresync enable --as <installation> --yeslets a rebuilt machine continue as the one it replaces.- update
- Replace this release binary with the latest release, checksum-verified:
--check,--to vX.Y.Z,--release. - bugreport
- Assemble a local, redacted bug-report bundle — version, machine,
doctor’s checks, bindings, the last recorded failure — and print the
gh issue createline; nothing is sent automatically.--name/--round,--logs,--raw,--out,--stdout,--title,--body,--json,--gh. - config
- Show the actors, the current pick and the candidates, and read or
change the configuration document:
init,agents,edit,get,set,unset,export,import,log,rollback,server add|rm|list|key,secret set|rm|list,workflow add|rm|show|edit,repo [set|unset|list] [--repo <path>](this repository’sname,gateandboard_theme);--probetimes each candidate once, and--forceletsset,unsetorimportdrop a candidate an actor still names, and--localonset,unsetoreditwrites this machine only. - mastermind
- Register this MasterMind or re-attach one
(
init);list,renameorforgetrecords;enable,disable [--repo]andresetanswer the consent question;guideprints the MasterMind guide. - gate
- List this machine’s active gates; gate a provider with
relevo gate <token> [--for D] [--reason S]; clear one withrelevo gate --clear <group|group@account|provider|token>.relevo gate --serveacts on the local serve daemon’s gates (--state). - serve
- Run the remote-builder server, listener and daemon. Server
administration, on the server host:
init,enroll,clients,revoke,fingerprint,status,ui,gc,unbind. Server flags:--listen(:7777by default),--state,--interval,--max-builders,--max-bundle-bytes,--public-host,--insecure-http;enroll --usernames the unix user for user isolation. - help
- Print the command list;
--jsonprints the registry document (verbs, flags, output documents, error codes). A failure is coded —relevo: <code>: <message>then anext:line. - version
- Print the relevo version.
Renamed commands. Every verb the housekeeping removed, and the form that replaces it. An
old name exits 2 and names its replacement: init →
relevo config init · candidates,
policy, roles →
relevo config · agent →
relevo config agents · client →
relevo config server · servers →
relevo config server list · add →
relevo bind --worktree · diff →
relevo show --diff · log →
relevo show --log · gc →
relevo unbind --done · pause →
relevo done, then relevo bind --resume ·
statusline → relevo status --line ·
pull → relevo wait, which prints the report ·
unavailable → relevo gate <token> ·
available → relevo gate --clear <provider> ·
planner → relevo mastermind ·
tab → relevo ui :rounds ·
stats → relevo ui :stats.
Cloud sync
Off unless you turn it on. With sync on, each machine appends its changes to a log in your own Turso
database and reads the others’, and bodies over 4 KiB go to your own R2 bucket. What travels:
round history, the configuration (a value set with relevo config set --local,
an account’s config_dir and home, and
policy.serve stay on the machine that wrote them), rate-limit gates, consent
answers, hook scripts, the agent files relevo config agents writes, provider
availability history, and an allow-list of secrets, encrypted. A passphrase keys the log:
relevo db sync unlock --new creates the key on the first machine, every entry
is signed with it, and a machine that has not unlocked keeps syncing history but holds the shared
configuration until it does. relevo db sync invite prints one join code, and
a new machine joins with relevo db sync enable --join-stdin and the
passphrase; the secrets it needs reach it encrypted. relevo db sync rekey
changes the passphrase, and every other machine stops until you run
relevo db sync unlock there with the new one. The sync verbs read the token,
the R2 secret, the join code and the passphrase from standard input, an environment variable or a
prompt, never from a flag’s value.
relevo db sync enable --url <libsql url> --token-stdin --r2-endpoint <url> --r2-bucket <name> --r2-key-id <id>
# the first machine: the token on stdin, the R2 secret in RELEVO_R2_SECRET
relevo db sync unlock --new
# create the log's key from your passphrase
relevo db sync invite
# one join code for the next machine
relevo db sync enable --join-stdin
# on that machine: the code on stdin, then the passphrase
relevo db sync rekey
# a new passphrase; then unlock on each other machine
relevo db sync status
Moving a binding. relevo handover <name> --to <machine>, run
on the machine that writes the binding, pushes its branch, releases its worktree and makes a live machine,
named by its installation id or label, the binding’s writer; once sync has brought the hand-over in, that
machine runs relevo bind --resume --name <name> from its own checkout of
the repository. relevo takeover <name> --force takes a binding from a
machine that is gone: what that machine writes to it afterwards is fenced, and when it comes back,
relevo db sync status there counts the fenced changes; nothing is deleted.
relevo db sync enable --as <installation> --yes lets a rebuilt machine
continue as the one it replaces, and leaves sync off until you restart the daemon and run
relevo db sync enable again. A hand-over is refused while a round is open, while
the binding is in a running chain, while its worktree holds uncommitted changes, and for a binding that runs
on a server. v0.19.0 moves the sync log to format 4, which an older relevo refuses without writing
anything, so upgrade every synced machine together.
relevo handover auth --to zen
# on the machine that writes it: push the branch, release the tree
relevo bind --resume --name auth
# then on zen, from its checkout of the repository
relevo takeover auth --force
# on the machine taking it from one that is gone
relevo db sync enable --as <installation> --yes
# a rebuilt machine continues as the one it replaces
Install
First the binary: a release tarball for Linux or macOS, amd64 or arm64, unpacked onto your
PATH — or, with a Go toolchain,
go install github.com/fuad-daoud/relevo/cmd/relevo@latest
A release binary updates itself with relevo update; a
go install gets its own command printed instead.
Then, in Claude Code, the plugin. It runs relevo from your
PATH; without the binary, its tools print an install hint. relevo setup installs it for you when you answer yes; by hand:
/plugin marketplace add fuad-daoud/relevo
/plugin install relevo@relevo
The setup wizard
Then, once, on a clean machine, run relevo setup in a terminal. It asks each
harness whether it is logged in and which models it offers, prints one line saying what it found, and asks only
what is still open: which models build, in the order to try them, and at what effort; who writes plans;
whether to keep what the librarian, reviewer,
security and lite-planner roles get from those picks;
how much a builder may do without asking; and whether to install the plugin and the service and run a test
round. Enter takes the recommended answer. It then writes the configuration as one revision, installs the agent
definitions, the plugin and the daemon’s service unit, and runs one real round on a throwaway repository that
must leave HELLO.md holding relevo works. Run it again
and the stored picks are the recommendations.
relevo setup
# probe, ask, configure, prove it with one round
relevo doctor
# names what is missing and prints the fix
demonstrationauthored from relevo’s output formats · not a capture of a session
$ relevo setup
checking which coding agents are installed and logged in...
claude: logged in
Press Enter on any question to take the recommended answer.
Which models build code? Pick one or more, comma-separated, in the order to try them: the first builds, the next takes over when one hits a usage limit
1. sonnet (claude/anthropic/sonnet) (recommended) -- on claude (anthropic)
2. opus (claude/anthropic/opus) -- on claude (anthropic)
3. haiku (claude/anthropic/haiku) -- on claude (anthropic)
e.g. 1,3 picks two, 1 first
>
Effort for sonnet on claude (anthropic)?
1. low -- fast, light reasoning
2. medium (recommended) -- balanced speed and depth
3. high -- deeper reasoning for complex work; slower
4. xhigh -- extra-deep reasoning; slower still
5. max -- deepest reasoning; slowest and uses the most quota
>
-> sonnet (medium)
# the planner, then the other roles from your picks: keep them or pick each
How much may a builder do without asking? yolo lets them run any command in their worktree without asking; at edit they change files but a claude builder cannot run tests or git
1. yolo (recommended) -- builders run tests, git and any command in their worktree
2. edit -- builders only edit files; a claude builder cannot run tests or git
>
-> yolo
# the plugin, the service and the test round, each recommended yes
config ok
builder: sonnet; librarian: sonnet; planner: opus; reviewer: sonnet; security: opus; lite-planner: sonnet
agents: loading the new configuration and installing agent definitions...
# one line per agent file installed
agents ok
plugin: installing the relevo plugin into Claude Code...
plugin ok
service: installing and starting the relevo user service...
service ok
smoke: binding a builder to a throwaway repository and sending it one small plan; this takes a minute or two...
builder sonnet is working on it
smoke ok
builder sonnet: closed in 1m24s
HELLO.md: relevo works
next: relevo doctor
next: open Claude Code in a repository and ask it to plan something
Installed by an agent. Off a terminal, relevo setup --json prints the open
questions with their recommended answers and exits 3 with nothing written; run it again with
--answer <id>=<value> for each. When an agent installs relevo for you,
it relays each question; answer tier, how much a builder may do without asking,
yourself. relevo config init is the scripted install: it writes the same starter
configuration with every recommended answer and leaves the plugin, the service and the round to their own
verbs. Until one of them has run, every verb that needs a configuration ends by saying
relevo is not set up yet: run relevo setup.
Answer yes to setup’s service question, or run
relevo service install, to keep the daemon running as a systemd user unit, or a
LaunchAgent on macOS; it refuses a unit you edited unless --force, and
relevo service uninstall removes the unit, never the binary. Without it, the
first command that needs a daemon starts one.
Requirements
- Two harnesses
- One for the MasterMind, one for the builder. relevo knows how to start
claude,opencode,agyandcodex.relevo setupasks each harness whether it is logged in and which models it offers. By default claude’sopusplans, one model per logged-in harness builds (claude’ssonnetamong them), the docs-onlylibrarianwrites over the same builders, andreviewer,securityandlite-plannerread; opencode models are written only when you pick them. There is no terminal manager and no terminal multiplexer to install. - git
- Optional. Without it relevo works normally, but rounds capture no diffs.
- Linux or macOS
- Both are exercised in CI. Windows is not supported: the tree cross-compiles for
windows/amd64and refuses at runtime with a clear error rather than running without a state lock. - Go 1.25+
- To build from source. Not needed for the plugin or a release binary.
Upgrading
relevo update installs the latest release over the running binary by an atomic
rename, and --check prints what it would do without changing anything;
--to vX.Y.Z installs an exact tag, a downgrade included. A running daemon moves
onto the new binary by itself, and a round in flight is not interrupted. A local build is left alone unless relevo update --release turns it into a release binary. The daemon’s service unit ships inside the binary too: a daemon starting on a new release rewrites a unit you have not edited, so relevo update alone carries an upgrade forward, with no checkout. The new unit takes effect at the next daemon restart, and relevo doctor says when one is due. The first daemon on v0.16.0 or later converts an older relevo.db to the Turso engine once, keeping the original as relevo.db.pre-turso. With cloud sync on, upgrade every machine together: v0.19.0 moves the sync log to format 4, which an older relevo refuses, writing nothing, and a hand-over waits until its target has synced once on v0.19.0.
Claude Code caches an installed plugin by version, so update it to match:
claude plugin marketplace update relevo && claude plugin update relevo@relevo
The remote ends upgrade together: a pre-upgrade client against an upgraded server gets HTTP 426, and an upgraded client against a pre-upgrade server is told the server predates audience-bound signatures.