Quickstart¶
New to Ralph Workflow? Start with Getting Started if you want the same flow with more explanation.
Coding-agent work lands on main. No pull requests.
Ralph Workflow runs the coding-agent CLI you already use, rebases each commit onto your main branch, and pushes it.
High-velocity development without pull requests.
Ralph Workflow is a free and open-source CLI (AGPL-3.0-or-later). It runs on your own machine, with no daemon. You write what done means in PROMPT.md, and Ralph Workflow runs your coding agent, rebases each commit onto your local main, and pushes it to origin/main. Nobody opens a pull request, and nobody merges by hand.
Today the push runs without checks. Your agent is asked to run the checks in PROMPT.md, but nothing enforces them, and your CI runs after the push, on main. The gate (your suite and acceptance checks, run on the exact commit before every push) is the top engineering priority and has not shipped. Until it does, no push is verified. Start on a repository where a bad commit costs one git revert.
Ralph Workflow does not replace your coding agent. It runs the agent CLI you already have, signed in with your own account, so the agent’s usage is billed to you. Ralph Workflow makes no model calls of its own.
Before you start¶
You need:
Python 3.12+
git
one supported agent CLI, installed and signed in: Claude Code, Codex, OpenCode, Cursor, Kimi, Nanocoder, Pi or Google’s Antigravity CLI
a repository with a remote named
originand amainbranch you can push to
Know what you are handing over:
The agent runs without permission prompts. Ralph Workflow starts each agent in its unattended mode (for example Claude Code with
--dangerously-skip-permissions), so it can run commands and edit files without asking. Use a machine, container or VM you are willing to hand to the agent.It pushes your whole local
main. That includes commits you have not pushed yet and the engine’s own commits (AGENTS.md,CLAUDE.md, policy files, a skill bundle,.gitignore). Nothing checks for committed secrets before the push.Uncommitted work on
maincan be cleared. If the checkout that holdsmainhas uncommitted or untracked files in the way, they are saved underrefs/ralph-reclaim/(kept up to 30 days) and removed. Setauto_integrate_reclaim_target_worktree = falseunder[general]inralph-workflow.tomlto make it refuse and retry instead.A merge commit can still land. If the agent cannot finish a rebase, the engine falls back to a merge commit. The first gate will remove that path.
A protected
mainrejects the push. If your forge requires pull requests onmain, the push fails, the run carries on, and the commits stay on your localmain.Some data leaves your machine. Telemetry is on by default: session events and crash reports go to Sentry under a persistent pseudonymous ID (
RALPH_DISABLE_TELEMETRY=1turns it off). The agent can search the web (DuckDuckGo by default) and fetch pages. Ralph Workflow checks PyPI for updates (RALPH_DISABLE_UPDATE_CHECK=1turns that off).
Install¶
pipx install ralph-workflow
ralph --version
pip install ralph-workflow also works.
Initialize the repository¶
cd <your-project>
ralph --init
This creates:
PROMPT.mdin the project root: a starter spec with a marker comment at the topuser-global config in
~/.config/(or$XDG_CONFIG_HOME), includingralph-workflow.toml, created once and reused across projectsa
.agent/entry in.gitignore, so the agent’s working notes are not committed
In a git repository, ralph --init commits the starter PROMPT.md itself, with the subject chore(config): update agent configuration. That commit is on your local main, so the first run pushes it along with the agent’s commits.
If one repository needs its own copy of the config, run ralph --init-local-config. It writes an optional full local override under .agent/.
Write the spec in PROMPT.md¶
PROMPT.md is the spec. It is the one thing you approve: you decide what is acceptable before any code exists, not by reading a diff afterwards.
Replace the example with one real, bounded task. Say what done means and how to check it. If you are unsure what a good first task looks like, read Choose Your First Ralph Workflow Task. For copy-paste shapes, read First-Task Prompt Templates.
# Goal
Add validation so the CLI rejects empty project names before creating files.
Keep the rest of the flow unchanged.
## Acceptance criteria
- Empty or whitespace-only project names fail with a clear error
- No project files are created for invalid names
- Existing valid-name behavior stays unchanged
- Tests cover the new validation
Delete the <!-- ralph:starter-prompt ... --> marker at the top once you have replaced the example. Ralph Workflow refuses to run while it is there.
Check your setup¶
ralph --diagnose
This checks your config and setup, including that your agent CLI is on your PATH. It does not check that the agent is signed in, so make sure it is before you run. Fix anything it reports first.
Run Ralph Workflow¶
ralph
Ralph Workflow plans, builds and commits for 2 developer cycles by default (--quick runs 1, --long 5, --thorough 10). Wall-clock timeboxes also apply. These caps limit cycles and time, not money.
After each commit, Ralph Workflow rebases onto your local main and pushes the whole local main to origin/main. The push is plain, never forced. If origin/main moved first, the push fails and the work rebases again. The agent’s own review pass runs after the push and can fix things in new commits. That review is the agent reading its own work, not an executed check.
If a run is interrupted, continue from its last checkpoint:
ralph --resume
Check what landed¶
When the run ends, the commits are already on origin/main, and nothing checked them before the push. Until the gate ships, this part is on you:
Read your CI result on
mainfor each new commit.Run the checks from your spec yourself.
Read the new commits (
git log origin/main) and compare them with the spec.If something is wrong,
git revertit, like any commit onmain, then sharpen the spec.
How to Review AI Coding Output After It Lands on Main walks through this in more detail.
Where to go next¶
Choose Your First Ralph Workflow Task: pick a first task whose result is easy to check
First-Task Prompt Templates: starter specs for common tasks
How to Review AI Coding Output After It Lands on Main: check what landed against the spec
What Good Ralph Workflow Output Looks Like: what a run leaves behind, and what it does not prove
Example Review Bundle: a small sample spec and the notes an agent writes
Which Agent Should I Start With?: pick the agent with the least setup
Getting Started: fuller first-run walkthrough
Concepts: terminology and mental model
CLI Reference: all flags and sub-commands
Configuration Reference: config files and precedence
Python API Reference: package documentation
The source is on GitHub, the primary repository: https://github.com/Ralph-Workflow/Ralph-Workflow. Codeberg remains available as the mirror: https://codeberg.org/RalphWorkflow/Ralph-Workflow.