What Breaks First When You Run Multiple Coding Agents?¶
Ralph Workflow is a free, open-source command-line tool that lands coding-agent work directly on main, automatically, with no pull requests. It runs the coding-agent CLI you already use, on your own machine.
This page is for developers who already run Claude Code, Codex, OpenCode or similar tools in parallel, with worktrees or branches, and find that the agents are not the slow part any more.
The first thing that breaks is usually not Git¶
When people say “multiple agents broke,” they rarely mean a raw merge conflict. More often it is one of these:
Shared-boundary drift. One branch changed a schema, a config shape or an interface that another branch quietly depended on.
A stale base. Each branch was checked against the
mainit started from. By the time it lands,mainhas moved, and a green check on the old base says nothing about the commit that lands.The review queue. Every branch becomes a pull request. Agents produce them faster than anyone can read them, so people either rubber-stamp them or become the bottleneck.
Wrong intent. Much rejected agent work is wrong about what was wanted, not about code quality. Reading the diff happens after the expensive mistake.
Scope creep. The agent kept going, and the task stopped being one you can check in one sitting.
More agents make all of these worse.
Guardrails that help¶
Write the intent down first. A spec that says what done means and how to check it is the part that does not go stale when
mainmoves. Approve that, not the diff.One owner per shared boundary. If a task touches auth, schemas, build config or a shared interface, give one task clear ownership of it. Other tasks consume that boundary; they don’t change it in parallel.
Integrate continuously. Rebase each piece of work onto current
mainas it is committed, instead of letting branches age.Check the state that actually lands. The only check that means anything is one run on the exact commit that becomes
main.Keep tasks small. Small tasks keep conflicts small and make it quick to see what landed and revert it if it is wrong.
What Ralph Workflow does about it today¶
Ralph Workflow covers some of these and not others. Here is where each stands.
Intent first: partly. You write the spec in
PROMPT.mdbefore the run. Ralph Workflow refuses to run while the starter marker fromralph --initis still at the top. Nothing records an approval of the spec yet.Continuous integration onto
main: works today. After each commit, Ralph Workflow rebases it onto your localmain; the agent resolves conflicts. It then pushes the whole localmaintoorigin/main, never forced. Iforigin/mainmoved first, the push fails and the work rebases again. If the agent can’t finish a rebase, the engine falls back to a merge commit, and that merge commit can land.No review queue: works today. There is no pull request. Nobody merges the agent’s work by hand.
Checking the state that lands: not built. Today the push runs without checks. The agent is asked to run the checks in
PROMPT.md, but nothing enforces them, and its own review pass runs after the push. Your CI runs afterwards, onmain. The gate (your suite and acceptance checks, run on the exact commit before every push) will close this. It is the top engineering priority and has not shipped.
So today, Ralph Workflow removes the review queue and keeps each commit rebased onto current main. It does not yet stop a bad commit from reaching main.
How to evaluate it honestly¶
Because pushes are unchecked today, start on a repository where a bad commit costs one git revert, and that already has tests.
Pick one real task, narrow enough to check in one sitting.
Write
PROMPT.md: the outcome, the checks, and what is out of scope.Run
ralph.Check what landed on
mainagainst the spec. Run your tests and look at CI onmain.If a commit is wrong,
git revertit. If the spec was unclear, tighten it and run again.
Next reading¶
Getting Started: the shortest path to a first run
Which Agent Should I Start With?: use the agent already working on your machine
Claude Code + Codex Workflow: splitting work between Claude Code and Codex
Why Worktrees Are Not Enough: why isolation alone does not get work onto
mainHow to check what landed on main: what to look at after a run