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 main it started from. By the time it lands, main has 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

  1. 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 main moves. Approve that, not the diff.

  2. 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.

  3. Integrate continuously. Rebase each piece of work onto current main as it is committed, instead of letting branches age.

  4. Check the state that actually lands. The only check that means anything is one run on the exact commit that becomes main.

  5. 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.md before the run. Ralph Workflow refuses to run while the starter marker from ralph --init is 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 local main; the agent resolves conflicts. It then pushes the whole local main to origin/main, never forced. If origin/main moved 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, on main. 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.

  1. Pick one real task, narrow enough to check in one sitting.

  2. Write PROMPT.md: the outcome, the checks, and what is out of scope.

  3. Run ralph.

  4. Check what landed on main against the spec. Run your tests and look at CI on main.

  5. If a commit is wrong, git revert it. If the spec was unclear, tighten it and run again.

Next reading