Skip to main content

Coding-agent work lands on main.
No pull requests.

You write what done means. Ralph Workflow runs the coding-agent CLI you already sign in to, rebases each commit onto your main, and pushes it to origin. Nobody opens a pull request, and nobody merges by hand.

Today the push runs without checks. Your CI runs afterwards, on main. The gate — your suite, run on the exact commit before every push — is our top engineering priority and has not shipped. Until it does, we don't call any push verified, so start on a repository where a bad commit costs one git revert.

Quickstart

pipx install ralph-workflow
ralph --init
ralph --diagnose
$EDITOR PROMPT.md
ralph

Needs Python 3.12+, git, one agent CLI you have signed in to, and a remote named origin with a main branch you can push to. Delete the starter marker at the top of PROMPT.md; Ralph Workflow won't run while it is there.

From your spec to origin/main
  1. You write the spec

    What done means and how to check it, written before any code. Today that is PROMPT.md; nothing records an approval yet.

    Partly today
  2. Your agent builds and commits

    Claude Code, Codex, OpenCode or another supported agent CLI plans, builds and commits for a set number of cycles. Its own review pass runs after the push.

    Works today
  3. Rebased onto current main

    The agent resolves conflicts. If it can't, the engine falls back to a merge commit; the gate, once built, will block that.

    Works today
  4. The gate proves the exact commit

    Your suite and acceptance checks will run on the commit that will land, and a failing commit will go back to the agent, never into a pull request. It has not shipped yet.

    Planned
  5. Pushed to origin/main

    A plain push, never forced. If origin/main moved first, the push fails and the work rebases again.

    Works today

The PR is a snapshot. Mainline is a stream.

Agents write code faster, but teams don't ship faster, because the human step in the middle didn't change. The intent is the part that lasts, so people approve the spec, and once the gate ships, machines will re-prove the code every time main moves.

  1. Wrong moment

    By the time someone reads the diff, the base has moved. The review doesn't survive the rebase, and CI on a stale base says nothing about the commit that lands.

  2. Wrong layer

    Much rejected agent work is wrong about intent rather than code quality. Reading the diff happens after the expensive mistake.

  3. Wrong volume

    Nobody can carefully read everything agents produce. Reviewers rubber-stamp it or become the queue.

Your verification suite becomes your PR check.

A pull request does four jobs. Each one moves to a place that keeps up with main. Here is where each stands today.

How Ralph Workflow covers each job a pull request used to do, and whether it ships today
The PR's job In Ralph Workflow
Integration Works today Every commit rebases onto current main, the agent resolves conflicts, and the push is never forced.
Review Planned The gate: your suite and acceptance checks on the exact commit that will land, re-run whenever main moves. A later version will hold some checks back from the agent, so it can't game the tests it sees.
Rationale Partly today The spec, written before the code. Today, one PROMPT.md per run, and nothing links a push to it. Next, versioned specs per area of the codebase, each with a named approver.
Accountability Planned A landing record for every push, naming the spec, the gate result, the machine and the agent.

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.

Free on one machine.

Everything one person needs on one machine is free and stays complete: the loop, auto-push, and the gate once it ships. The engine is AGPL-3.0-or-later. Ralph-Site, a paid console we plan for running many machines at once, isn't open for sign-up.

Ralph Workflow is free and runs locally, and a star is the clearest public signal that it worked for you. If a run shipped real software for you: star on GitHub.