Ralph Workflow vs Codex CLI¶
If you already use Codex CLI, the simplest difference is this:
Codex CLI is a coding agent you drive directly, in your terminal.
Ralph Workflow runs Codex (or another supported agent CLI) for you, and lands the work directly on
main, automatically, with no pull requests.
Ralph Workflow does not replace Codex. It needs a coding agent to run. It is a free and open-source CLI (AGPL-3.0-or-later) that runs on your own machine, with no daemon.
The core difference¶
With Codex CLI, you stay in the loop. You prompt, read, redirect and decide what to keep.
With Ralph Workflow, you step out of the loop and approve the intent instead. You write a spec in PROMPT.md that says what done means and how to check it. Then Ralph Workflow:
runs the agent to plan, build and commit, for a set number of developer cycles (2 by default;
--quick1,--long5,--thorough10);rebases each commit onto your local
main, with the agent resolving any conflicts;pushes
maintoorigin/mainwith a plain push, never forced; andruns the agent’s own review pass after the push, which can loop back to fix things in new commits.
Nobody opens a pull request, and nobody merges by hand.
Using Codex with Ralph Workflow¶
The default config names only Claude Code. To run Codex:
Install the Codex CLI and sign it in.
Uncomment the
codexblock in~/.config/ralph-workflow-agents.toml.Name
codexin the[agent_chains]section of~/.config/ralph-workflow.toml, for the jobs you want it to do. You can give every job to Codex, or only development and keep another agent for planning and review. See Claude Code + Codex Workflow for an example.
Ralph Workflow starts Codex with --dangerously-bypass-approvals-and-sandbox, so it runs commands and edits files on your machine without asking. Use a machine, container or VM you are willing to hand to the agent. Codex uses your own login or API key, so its usage is billed to you. Caps limit cycles and time, not money.
What is not built yet¶
Today the push runs without checks. The 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, which will run your suite and acceptance checks on the exact commit before every push, is our top engineering priority and has not shipped. Until it does, we do not call any push verified. Watch what lands and git revert anything wrong.
Choose Ralph Workflow when¶
you can write what done means, and how to check it, before any code;
the repository already has tests;
the task is bounded: a feature slice, a narrow refactor with tests, a cleanup with an obvious check;
a bad commit on
maincosts onegit revert; andyou are willing to run the agent without its approval prompts or sandbox, on a machine you can hand over.
Choose Codex CLI on its own when¶
you are exploring a codebase and do not yet know what done means;
you want Codex’s approvals or sandbox in place;
you are making small changes while you watch; or
the work should not reach
mainuntil you have looked at it.
Using both¶
Use Codex CLI directly to explore and shape the task. When you can write the spec, hand it to Ralph Workflow and let it run.
Fastest honest first test¶
Before you start, have Codex CLI (or another supported agent CLI) installed and signed in on your machine.
pipx install ralph-workflow
cd /path/to/your/project
ralph --init
ralph --diagnose
$EDITOR PROMPT.md
ralph
ralph --initcreates the config and a starterPROMPT.md. Delete the starter marker at the top; Ralph Workflow refuses to run until you do.ralph --diagnosechecks that the agent CLI is on yourPATH. It does not check that you are signed in.
Use one real task, not a demo. When the run ends, check what landed on origin/main against the spec.
Before you install, know that the push sends your whole local main, including commits you had not pushed and the engine’s own commits (AGENTS.md, CLAUDE.md, policy files, a skill bundle, .gitignore), and that nothing checks for committed secrets. If your forge requires pull requests on main, the push is rejected and the commits stay on your local main.