CLI Reference¶
New to Ralph Workflow? Start with Getting Started if you want the same flow with more context.
Ralph Workflow is invoked as ralph (or python -m ralph). Running ralph with no flags starts the normal workflow.
Discovery and diagnostics¶
Flag |
Short |
Default |
Description |
|---|---|---|---|
|
|
List configured agents and their status |
|
|
|
List available AI providers (OpenCode API) |
|
|
|
|
Run pre-flight diagnostics and print a status table |
|
|
|
Load and validate configuration, then exit |
|
|
Validate custom MCP server definitions, then exit |
|
|
|
Validate the active pipeline policy and print a summary |
|
|
|
Print the current checkpoint contents |
--check-policy example¶
ralph --check-policy
This validates the active pipeline policy and prints a summary of the authored block model, compiled phases, drains, artifact contracts, and routing limits Ralph Workflow will use.
Use --explain-policy-dir to point at a custom policy directory:
ralph --check-policy --explain-policy-dir /path/to/policy/dir
See Policy Explanation for the deeper inspection view.
Setup¶
Flag |
Short |
Default |
Description |
|---|---|---|---|
|
|
Scaffold |
|
|
|
Create |
|
|
|
Rewrite config files from bundled defaults and keep backups as |
Quick mode¶
Run one developer iteration with an inline prompt:
ralph -Q "do a quick change"
-Q / --quick forces developer_iters=1 and lets you pass an inline prompt instead of using PROMPT.md. Ralph Workflow writes that inline prompt to .agent/CURRENT_PROMPT.md for the run.
ralph -Q "add a /healthz endpoint"
ralph -Q --prompt "add a /healthz endpoint"
Prompt helper¶
The --prompt-helper flag launches a dedicated interactive prompt-refinement flow. Unlike the normal pipeline, this mode is simpler and does not use multi-stage workflows, drain configuration, or fallback agents. Instead, it runs a single PM-style agent that asks you what you want to build and helps you refine the idea into a structured PROMPT.md.
ralph --prompt-helper
The helper asks follow-up questions about users, goals, constraints, success criteria, product behavior, and UX/UI expectations. It periodically shows you a polished draft and asks for review. When you approve, it writes a structured PROMPT.md to the workspace root.
This is a simpler alternative to writing PROMPT.md by hand, not the standard pipeline. The resulting PROMPT.md can be used directly with the next ralph run.
The ralph-prompt executable is an alternate entrypoint for the same experience. Both ralph --prompt-helper and ralph-prompt launch identical interactive sessions:
ralph-prompt
ralph-prompt ships with Ralph Workflow and is installed automatically by pip install ralph-workflow. No separate install is needed.
Thorough mode¶
Use the thorough preset when you want a longer unattended run budget:
ralph -T
-T / --thorough forces developer_iters=10. It cannot be combined with -Q.
Pipeline tuning¶
Flag |
Short |
Default |
Description |
|---|---|---|---|
|
Override a named budget or loop counter declared in |
||
|
|
|
Maximum developer iterations per run |
|
|
|
Quick mode: one developer iteration with optional inline prompt |
|
|
|
Thorough mode: ten developer iterations |
|
|
(from config) |
Override the developer agent by name |
|
(from config) |
Forward a model flag to the developer agent binary |
Execution control¶
Flag |
Short |
Default |
Description |
|---|---|---|---|
|
|
|
Suppress all output except errors |
|
|
Enable trace-level debug output |
|
|
|
|
Set output verbosity: |
|
|
|
Resume from the saved checkpoint if one exists |
|
|
Ignore the checkpoint and restart from the beginning |
|
|
|
Run the pipeline structure without invoking agents |
Note: Verbosity defaults to
verboseso the run looks visibly alive by default. Use--quietin CI when you only want errors.
Commit-message helpers¶
These flags support Ralph Workflow’s commit-message generation flow and the ralph --generate-commit command that agents may be instructed to call.
Flag |
Default |
Description |
|---|---|---|
|
|
Generate a commit message from the current repo changes |
|
|
Generate and apply the commit message in one step |
|
|
Print the most recently generated commit message |
Git identity¶
Flag |
Default |
Description |
|---|---|---|
|
(from git config) |
Override git |
|
(from git config) |
Override git |
Miscellaneous¶
Flag |
Short |
Default |
Description |
|---|---|---|---|
|
|
(auto-discovered) |
Path to a specific config file |
|
|
|
Print the Ralph Workflow version and exit |
Sub-commands¶
ralph cleanup¶
Remove Ralph Workflow-generated working files from the current project, such as checkpoints, MCP sockets, and temporary artifacts. It does not remove .agent/ config files or PROMPT.md.
ralph cleanup