Open-Source AI Coding Orchestrator: What Ralph Workflow Is Actually For

If you are searching for an open-source AI coding orchestrator, you will find many tools that start agents, run several at once, and show you what they are doing.

Ralph Workflow does one narrower thing: it lands coding-agent work directly on main, automatically, with no pull requests.

It is a free, open-source command-line tool (AGPL-3.0-or-later) that runs on your own machine with the coding-agent CLI you already use.

What it does

  1. You write the spec. PROMPT.md says what done means and how to check it. You approve the intent before any code is written, not the diff afterwards.

  2. Your agent plans, builds and commits. Claude Code, Codex, OpenCode, Cursor, Kimi, Nanocoder, Pi or Google’s Antigravity CLI, signed in with your own account. The default is 2 developer cycles; --quick gives 1, --long 5 and --thorough 10. Wall-clock timeboxes also apply. Caps limit cycles and time, not money.

  3. Each commit is rebased onto your local main. The agent resolves conflicts. If it can’t, the engine falls back to a merge commit.

  4. Your whole local main is pushed to origin/main. A plain push, never forced. If origin/main moved first, the push fails and the work rebases again.

  5. The agent’s own review pass runs after the push. It can loop back and fix things in new commits.

Nobody opens a pull request, and nobody merges by hand.

What it does not do yet

Today the push runs without checks. The agent is asked to run the checks in PROMPT.md, but nothing enforces them. “Verify” in the loop is an agent review, not an executed check. Ralph Workflow does not read CI results; your CI runs after the push, on main.

The gate will close that gap: your suite and acceptance checks will run on the exact commit that will land, before the push, and a failing commit will go back to the agent instead of landing. It is the top engineering priority and has not shipped. Until it does, no push is verified.

Other limits worth knowing before you install:

  • It pushes your whole local main, including commits you have not pushed yet and the engine’s own commits (AGENTS.md, CLAUDE.md, its policy files, its skill bundle and .gitignore). Nothing checks for committed secrets.

  • Agents run without permission prompts, in their unattended mode, so they can run commands and edit files without asking.

  • Uncommitted work on main can be cleared. If files in the checkout that holds main are 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 protected main that requires pull requests rejects the push. The run carries on and the commits stay on your local main.

What a good first run looks like

Pick a repository that already has tests, and a task small enough that you can check the result in one sitting. Then:

pipx install ralph-workflow     # Python 3.12+
ralph --init                    # config and a starter PROMPT.md
ralph --diagnose                # is the agent CLI on PATH? (not: is it signed in?)
# edit PROMPT.md: the outcome, the checks, and delete the starter marker
ralph

When the run ends, the commits are already on origin/main. Check what landed against your spec: read the commits, run your tests, look at what CI says on main. If something is wrong, git revert it, like any other commit.

A good spec makes that check fast. For example:

Task: Reject an empty project name in the CLI create flow

Done when:
- `create ""` exits non-zero with a clear message
- a test in tests/test_create.py covers it
- the full test suite passes

Out of scope:
- reserved names

Where to go next

Source and feedback