Running Parallel Coding Agents without Branch Collisions
Opening four terminal tabs in the same repository checkout works until Agent A runs git checkout or formats a shared file while Agent B is running tests. True parallel throughput requires filesystem isolation, warm build caches, and clean diff integration.
Why two agents in one checkout corrupt each other's work
Even when two tasks touch unrelated directories, sharing one working directory breaks in three predictable ways:
- Shared Git index and HEAD: Any
git stash,git switch, or staging command by one agent silently moves the floor under every sibling agent. - Lockfile and build-artifact races: Concurrent
cargo test,next build, ortscruns fight over the same output directory (`dist/`, `.next/`, `target/`), producing phantom failures agents waste turns debugging. - Unattributed diffs: When five tasks edit 18 files in one tree, you cannot revert Task 3 cleanly without untangling Tasks 1, 2, 4, and 5 by hand.
Subagents vs Git worktrees vs colocated Jujutsu (`jj`) workspaces
| Approach | Filesystem isolation | Cold cache penalty | Conflict handling | Best for |
|---|---|---|---|---|
| In-session subagents | Shared checkout by default | None (same tree) | Agents overwrite shared files | Read-only codebase research & audits |
| Manual git worktree | Full directory per branch | High (fresh node_modules / target) | Blocks rebase on first conflict | 2 to 3 long-lived manual branches |
| Rudder jj + OverlayFS | Isolated workspace per agent | Near-zero (COW / shared caches) | First-class jj conflict states + auto-rebase | 5 to 20+ parallel worker agents |
Rudder colocates Jujutsu (`jj`) on top of your existing `.git` repository. Every worker agent gets its own working copy backed by an anonymous `jj` change, with no throwaway branch names cluttering `git branch`. On Linux Cloud machines, OverlayFS mounts share `node_modules` and warm compiler caches copy-on-write so a new agent starts editing in milliseconds instead of running a 3-minute `npm install`.
How Claude Squad, Conductor, Superset, Agent Teams, and Rudder compare
| Tool | Harnesses | Where agents run | Phone & web steering | Subagent visibility |
|---|---|---|---|---|
| Claude Code Agent Teams | Claude Code | Local terminal / tmux | No | Teammate panes in terminal |
| Claude Squad | Claude Code, Codex, Aider | Local tmux + git worktrees | No | Raw terminal buffer only |
| Conductor (conductor.build) | Claude Code, Codex | macOS local worktrees | macOS desktop only | Desktop chat view |
| Superset (superset.sh) | CLI coding agents | Local desktop worktrees | Desktop focused | Terminal panes |
| Rudder | Claude Code, Codex, OpenCode, Gemini | macOS, Linux CLI, & Cloud + 16-CPU burst builders | Native Mac app, iPhone app, Web, TUI | Live nested subagent cards + file chips |
Decomposing multi-file features with `/plan`
When a project crosses four or five interdependent subsystems, launching independent prompts is not enough: database migrations must land before API routes, which must land before UI tests. Typing `/plan` in Rudder drafts a dependency DAG where independent nodes run in parallel across Claude, Codex, or Gemini, and downstream nodes automatically rebase onto upstream completions.
Rudder snapshots each agent's isolated `jj` workspace automatically and merges verified changes cleanly back into `main` with a single keypress (`m` in the TUI or Merge in the app).