Skip to main content

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.

  1. Pick the repository

    One you can push to, with a remote named origin and a branch named main. Start where a bad commit costs one git revert: today the push runs without checks.

  2. Install and initialise

    pipx install ralph-workflow, then ralph --init in the repository. It creates your configuration and a starter PROMPT.md.

  3. Check your setup

    Run ralph --diagnose and fix what it reports until every line is green. It confirms your agent CLI is on your PATH; sign in to the agent yourself first.

  4. Write the spec

    Edit PROMPT.md with the outcome and the checks you expect, and delete the starter marker at the top. Ralph Workflow refuses to run while it is there.

  5. Run it

    Run ralph. Your agent plans, builds and commits for two cycles by default. After each commit, your whole local main is pushed to origin, unchecked.

  6. 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 revert it like any other commit.

Before you install

  • Pushes are unchecked until the gate ships. Auto-push to origin/main is on by default. Your agent is asked to run the checks in PROMPT.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 to AGENTS.md, CLAUDE.md, its policy files, its skill bundle and .gitignore. Nothing checks for committed secrets before the push.
  • Uncommitted work on main can be cleared. If the checkout that holds main has uncommitted or untracked files in the way, they are saved under refs/ralph-reclaim/ (kept up to 30 days) and removed. Set auto_integrate_reclaim_target_worktree = false under [general] in ralph-workflow.toml to 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 main rejects the push. The push uses the git credentials on your machine. If your forge requires pull requests on main, the push fails, the run carries on, and the commits stay on your local main.
  • 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=1 turns 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.md that 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.