Command reference
All commands run from the target repository’s root (the git toplevel of the current
directory) with python3 ralph_orchestrator/orch.py <cmd> (or the .venv-ralph/bin/python
created by install.sh). Configuration is always read from
ralph_orchestrator/config.yaml; e-mail and gateway settings accept environment overrides
(Configuration reference).
Subcommands
| Command | What it does | Exit codes |
|---|---|---|
|
interactive setup: banner, config sanity, agent CLI check, opencode provider reachability, ralph gateway reachability (hard stop), dependency install, plugin install |
0 ok · 1 problem/aborted · 130 Ctrl-C |
|
non-interactive environment check: base branch exists, agent CLI on PATH, python modules importable, gateway key resolvable; |
0 ok · 1 any problem |
|
|
0 ok · 1 invalid plan / file exists |
|
validate |
0 valid · 1 invalid (error list printed) |
|
print the ticket DAG as Mermaid ( |
0 |
|
execute the plan (resumable); consumes pending e-mail replies first; final report mail at the end |
0 |
|
correction agent: each cycle fetches + consumes replies and reworks pending tickets; yields to a live run; heartbeats |
0 stopped · 1 no tickets |
|
one line per ticket (status, attempts, model, title) + agent runs, peak agents, reason; needs |
0 |
|
serve the live dashboard (Dashboard HTTP API) |
0 (Ctrl-C stops) |
|
send the run report mail now (manual) |
0 |
|
capture replies to the last status mail from IMAP into |
0 · 1 (file empty) |
|
step-by-step e-mail setup check (DNS/TCP/TLS/login/send), hidden password prompt, test mail; standalone: |
0 test mail accepted · 1 any step failed |
|
render the current state to |
0 PDF written · 1 browser missing |
|
install the agent plugins (project npm plugins into |
0 |
|
remove all |
0 |
install.sh (from this repository)
./install.sh /path/to/target-repo
Copies ralph_orchestrator/ into the target (refusing if a git repo is missing or a kit
already exists), creates .venv-ralph, installs requirements.txt, excludes .ralph/ and
.venv-ralph/ locally via git info/exclude, and prints the next steps. It never commits
anything — commit the kit yourself (worktrees branch from a commit).
setup.sh (mockup)
The showcase equivalent for the dummy-agent demo: copies the kit into mockup/demo-repo,
installs the showcase config and tickets, creates the git history. See 2-minute offline showcase.
Notes
-
orch.pyis the only entry point that matters day to day;dashboard.py,bus.pyandmail_check.pyare also directly executable (the bus runs asbuson agents' PATH). -
Every command that builds
Statetouches.ralph/state.json(creating it if absent);check,graph,plan,preflightdo not. -
Timeouts: agent runs and acceptance commands use
orchestrator.iter_timeout; git operations 300 s; the wizard’s gateway probes 15 s (60 s for the chat fallback).