Install Ralph Workflow.
It is a command-line tool, not a hosted service. You run it in a git repository; it drives the coding-agent CLI you already sign in to and pushes each commit to main. No pull requests.
Today the push runs without checks. The gate that will run your suite before every push is our top engineering priority and has not shipped. Until then, use a repository where a bad commit costs one git revert, and read the list below before you start.
Install commands
pipx install ralph-workflow
cd /path/to/your/project
ralph --init
ralph --diagnose
$EDITOR PROMPT.md
ralph
No pipx? pip install ralph-workflow works too. You need Python 3.12+, git, and one supported agent CLI: Claude Code, Codex, OpenCode, Cursor, Kimi, Nanocoder, Pi or Google's Antigravity CLI.
Six steps to your first push.
Keep the first task meaningful but contained: a small feature, a focused refactor, or tests for one module. It works best in a repository that already has tests.
-
Pick the repository
One you can push to, with a remote named
originand a branch namedmain. Start where a bad commit costs onegit revert: today the push runs without checks. -
Install and initialise
pipx install ralph-workflow, thenralph --initin the repository. It creates your configuration and a starterPROMPT.md. -
Check your setup
Run
ralph --diagnoseand fix what it reports until every line is green. It confirms your agent CLI is on yourPATH; sign in to the agent yourself first. -
Write the spec
Edit
PROMPT.mdwith the outcome and the checks you expect, and delete the starter marker at the top. Ralph Workflow refuses to run while it is there. -
Run it
Run
ralph. Your agent plans, builds and commits for two cycles by default. After each commit, your whole localmainis pushed toorigin, unchecked. -
Watch what lands
Read the run summary and the new commits on
main, and check the result against your spec. If something is wrong,git revertit like any other commit.
Before you install
- Pushes are unchecked until the gate ships. Auto-push to
origin/mainis on by default. Your agent is asked to run the checks inPROMPT.md, but nothing enforces them, and your CI runs after the push. Watch what lands and revert fast. - Agents run without permission prompts. Ralph Workflow starts each agent CLI in its unattended mode, for example Claude Code with
--dangerously-skip-permissions, so it can run commands and edit files on your machine 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 haven't pushed yet and the engine's own commits toAGENTS.md,CLAUDE.md, its policy files, its skill bundle and.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 can't finish a rebase, the engine falls back to a merge. The first gate removes that path.
- A protected
mainrejects the push. The push uses the git credentials on your machine. If your forge requires pull requests onmain, the push fails, the run carries on, and the commits stay on your localmain. - Your agents, your accounts. Each agent CLI uses whatever login or API key you signed it in with, so its usage is billed to you. Ralph Workflow is not a model provider.
- 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, and Ralph Workflow checks PyPI for updates (RALPH_DISABLE_UPDATE_CHECK=1). - Not for vague prompts. It works best on a repository that already has tests, with a
PROMPT.mdthat says how to check the result.
Read the source before you let it push.
GitHub is the primary repository; Codeberg keeps a mirror. Inspect the source, pick a first task from the templates, run it, and judge the result by what landed on main.