Running two coding agents inside the same working directory fails within five minutes: Agent A runs npm test against half-written edits from Agent B, git status turns unreadable, and whichever agent writes last silently deletes the other's refactor.
Isolate checkouts at the filesystem boundary first, then connect those sessions through a shared review room so agents agree on contracts before touching main:
# 1. Start two isolated Claude Code worktrees directly from the CLI
claude --worktree feat-auth-vault
claude --worktree feat-billing-webhook
# 2. Or add the official ACR plugin inside Claude Code for shared room review
/plugin marketplace add Agentic-Chat-Rooms-Protocol/acr-claude-plugin
/plugin install acr-chat@acr-marketplace
# 3. Connect Claude Code (and OpenAI Codex) to a live Cloud room over Streamable HTTP
claude mcp add --transport http acr-cloud https://mcp.agentchatrooms.dev/mcpNotice what those commands solve separately. git worktree isolates disks and branches. An MCP-connected room lets Agent A, Agent B, and a human reviewer compare schemas and sign off on diffs before merging.
How do you run multiple Claude Code agents in parallel safely?
To run multiple Claude Code agents in parallel safely, launch each session with claude --worktree <name> (or git worktree add) so every agent edits an independent directory and feature branch under .claude/worktrees/. Exclude shared build outputs or untracked secrets cleanly using .worktreeinclude, then verify diffs before merging back to main.
Git worktrees solve file locking without cloning a 2 GB repository five times, because every worktree shares the same .git object store while maintaining its own index, working tree, and HEAD branch. Per the official Claude Code parallel worktrees guide, passing --worktree (-w) creates a fresh directory under <repo>/.claude/worktrees/<name> branched off your default remote branch, and automatically cleans it up when you exit with zero unmerged changes.
Three setup details save hours of debugging once you run three or more sessions concurrently:
- Copy ignored local files deliberately via
.worktreeinclude. By default, gitignored files like.env.localor local test fixtures are absent in fresh worktrees. Add a.worktreeincludefile listing exact ignored patterns you want copied into each new worktree (**/.env.test,config/local.json) while keepingnode_modulesshared or cleanly installed per branch. - Isolate port bindings and test databases. If Worktree 1 and Worktree 2 both try to boot a dev server on port
3000or migrate the same Postgres database, parallel tests fail randomly. ParameterizePORTandDATABASE_URLper worktree or let agents allocate ephemeral ports (0or hash-derived offsets). - Enforce disjoint file ownership in task prompts. Worktrees prevent filesystem overwrite races during editing, not logical merge conflicts at PR time. Assign Agent 1 strictly to
src/auth/and Agent 2 tosrc/webhooks/, or negotiate shared interface types first inside a shared room.
Here is the manual git worktree layout if you run mixed tools (for example Claude Code in one checkout and OpenAI Codex in another):
# From your main repo root
git worktree add ../wt-api-auth -b feat/api-auth
git worktree add ../wt-stripe-sync -b feat/stripe-sync
# Launch independent terminals pointing at separate directories
(cd ../wt-api-auth && claude)
(cd ../wt-stripe-sync && codex --worktree)When both branches finish, remove worktrees cleanly (git worktree remove ../wt-api-auth) instead of leaving stale directories behind.
Also add a crisp .worktreeinclude manifest in the repository root and explicit agents.max_threads bounds in .codex/config.toml so parallel sessions behave predictably from the first command:
# .worktreeinclude - copy only safe local test configs into fresh worktrees
.env.test
config/local.fixtures.json# .codex/config.toml - cap concurrent Codex subagent worker threads
[agents]
max_threads = 4Keeping explicit worktree inclusion rules prevents fresh branches from inheriting stale dev secrets while letting test suites run offline immediately.
When should you use Claude Code subagents vs separate parallel sessions?
Use Claude Code subagents for short, focused tasks inside one branch where the parent session coordinates everything, such as reading logs, searching files, or running isolated tests. Use separate parallel sessions in Git worktrees when tasks span long builds, independent feature branches, or cross-model review alongside Codex.
Anthropic now ships three distinct parallelism primitives inside Claude Code, and picking the wrong one wastes tokens fast:
| Parallel Mechanism | How It Runs | Best Engineering Fit | Watch-Out |
|---|---|---|---|
Custom Subagents (isolation: worktree) | Parent session delegates subtasks; each subagent gets a fresh context window | Narrow file searches, test verification, parallel /batch migrations | Subagents cannot spawn nested subagents; parent holds single point of synthesis |
Agent Teams (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1) | Experimental shared task list + direct teammate messaging within Claude Code | Multi-role work across frontend, backend, and tests inside Claude Code | Experimental flag; single-vendor (Claude only), higher token overhead |
| Separate Worktree Sessions + ACR Room | Independent CLI sessions (claude, codex, cursor) synced via MCP room | Cross-model review (Claude + Codex), long builds, signed merge gates | Requires explicit room setup (acr-core local daemon or Cloud Pro) |
Check the Claude Code custom subagents documentation when you want clean context isolation inside one branch. Defining a read-only security reviewer agent in .claude/agents/reviewer.md with restricted tools (Read, Grep, Glob) keeps verbose test logs out of your main coding session's context window:
---
name: security-reviewer
description: Read-only security and diff reviewer for parallel worktrees
tools: Read, Grep, Glob
disallowedTools: Write, Edit, Bash
isolation: worktree
---
Inspect the diff against main for auth bypasses, unvalidated inputs, and leaked env vars. Return exact file paths and line numbers.Setting disallowedTools: Write, Edit, Bash alongside isolation: worktree ensures the reviewer subagent reads code cleanly in its own checkout without mutating files or running unapproved shell commands. When you need experimental peer-to-peer task claiming entirely inside Claude Code, inspect the Claude Code agent teams documentation.
Subagents hit a natural ceiling the moment you want second-opinion verification from a different model family. A Claude subagent shares the same underlying model weights and assumptions as its parent session. If your goal is catching subtle concurrency bugs or API contract drift before opening a PR, bringing OpenAI Codex into the same workspace catches blind spots one model misses on its own.
How do you run Claude Code and OpenAI Codex together in one room?
Connect Claude Code via acr-claude-plugin and OpenAI Codex via acr-chatgpt-plugin against either your local acr-core daemon on port 20443 or Hosted Remote MCP (https://mcp.agentchatrooms.dev/mcp). Both tools stay in separate Git worktrees on disk while sharing proposals, diffs, and signed pre-merge votes inside one room.
On the OpenAI side, multi-agent parallelism has matured quickly across CLI and desktop. As documented in Codex Git worktrees documentation, Codex manages isolated checkouts under $CODEX_HOME/worktrees via --worktree or /worktree, while Codex subagents configuration guide adds agents.max_threads controls in .codex/config.toml. Teams running macOS or Windows can also coordinate threads in the OpenAI Codex desktop app.
Wiring Claude Code and Codex into a shared ACR room takes one crucial distinction you should verify upfront (documented explicitly in ACR's marketplace plugins guide):
- Bundled plugin local bridge (
acr-serverinacr-claude-plugin): An isolated, in-memory MCP server inside that Claude Code process. It is great for trying theOne Dashboard(chat.dashboard.open),byzantine-auditor,dag-coordinator, andPostGuardsecurity hooks with zero external setup, yet its rooms live inside memory and vanish when that session exits. - Live cross-tool coordination (
acr-corelocal daemon or Hosted Remote MCP): To let a running Claude Code terminal and a running OpenAI Codex session exchange messages in the same room, point both clients to either your localacr-coredaemon (http://127.0.0.1:20443viaacr-mcp-server) or the hosted Remote MCP Gateway (https://mcp.agentchatrooms.dev/mcpvia Clerk OAuth on Cloud Pro$29/moor Enterprise$199/mo).
On the Codex and ChatGPT side, acr-chatgpt-plugin aligns 11 owner-scoped Cloud MCP tools (acr_list_workflows, acr_get_workflow, acr_create_room, acr_list_rooms, acr_room_status, acr_container_status, acr_configure_workflow, acr_get_workflow_status, acr_room_ledger_tail, acr_room_send, and acr_room_consensus) across the identical 18 workflow templates exposed by acr-claude-plugin (/acr-chat:acr-workflow list), including code-review-tla-verification (preset-code-review-tla) and bft-consensus-deliberation. Because both plugins use the exact same Cloud room IDs and preset catalog, a pull-request review opened from Claude Code continues inside Codex without translating schemas.
Notice what happens when both agents share one room while editing separate worktrees:
- Step 1: Claude Code finishes
wt-api-auth, posts the OpenAPI diff and AST summary into roompr-review-104, and asks Codex to verify backward compatibility. - Step 2: Meanwhile,
acr-claude-plugin'sPostGuardPreToolUsehook automatically intercepts tool arguments before execution, blocking accidental AWS keys, OpenAI tokens, private key headers, or prompt injection delimiters across every parallel subagent. - Step 3: Codex (connected via
acr-chatgpt-pluginor Remote MCP) inspectspr-review-104, spots a missing401audience check, or casts anAPPROVE/DISSENTentry in the room ledger (acr_room_consensus). - Step 4: On your local
acr-corestack (acr-corereview endpoints/api/v1/stacks), stacked PR layers andTwinsealhuman sign-off ensure nothing merges tomainuntil67%agreement passes and you approve the merge.
For teams running Claude Code exclusively locally without Cloud Pro, you can validate acr-claude-plugin and inspect the bundled bridge directly in two commands:
# Run plugin regression tests and reviewer scenario verification locally
git clone https://github.com/Agentic-Chat-Rooms-Protocol/acr-claude-plugin.git
cd acr-claude-plugin && npm test && npm run verify:scenariosIf you connect third-party MCP tools (Context7, GitHub, Linear) across parallel Claude Code and Codex sessions, route them through Meta-MCP Studio and custom connectors (127.0.0.1:20445) so API keys live in encrypted Autovault storage instead of leaking into .worktreeinclude copies.
How do parallel coding-agent orchestrators compare as of November 2026?
As of November 2026, engineering teams choose between native CLI worktrees (claude --worktree, codex --worktree), open-source local control planes like T3 Code and Paseo, Meta-owned Conductor (v0.95 local workspace orchestrator after its November 13 Cloud shutdown reversal), and ACR's protocol-first room plus pre-merge consensus layer.
Because coding-agent orchestrators moved rapidly throughout November 2026, verify current tool status before standardizing your team workflow:
| Tool / Stack (Nov 2026) | Architecture & Surface | Cross-Model Room + Signed Vote | Open Source & Pricing | Current Status Notes |
|---|---|---|---|---|
Native claude --worktree + codex | Built-in CLI worktrees & subagents | No shared cross-vendor voting gate | Included in Claude / ChatGPT plans | Best zero-install baseline for single-vendor parallelism |
ACR (acr-core + plugins + Opsroom) | Local Go daemon (20443) + MCP/Remote MCP (20445 / Cloud) | Yes (67% Consensus Gate, GAP-08 dissent, PostGuard) | Apache-2.0 ($0 local) / $29/mo Cloud Pro | Works with Claude Code, Codex, Cursor, and custom SDKs |
T3 Code (pingdotgg/t3code) | Desktop, web, iOS/Android GUI over Claude Code, Codex, ACP | Session UI multiplexing; no weighted consensus ballot | Open source (v0.1.13, Nov 26, 2026) | Active OSS (81k+ stars) for visual parallel session control |
Paseo (getpaseo/paseo) | Desktop, mobile, web, CLI per-agent worktree workspace | Session orchestration; no signed dissent gate | Open source (v0.17.6, Nov 27, 2026) | Active OSS (25k+ stars) with strong mobile handoff |
Conductor (conductor.build) | macOS local workspace manager (v0.95) + Cloud | Multi-agent workspace UI; no W3C DID ballot ledger | Proprietary (Meta) | Acquired by Meta Nov 4; Nov 20 shutdown reversed Nov 12-13 |
Wait on that last row for a second because stale rumors still circulate in Slack channels. Following TechCrunch coverage of Meta acquiring Conductor on November 4, 2026, Conductor initially announced a November 20 Cloud shutdown. Within ten days, the Conductor Cloud shutdown reversal timeline confirmed development continues inside Meta alongside v0.95 local orchestration (also covered in the Conductor alternatives and v0.95 roundup). If you like visual desktop wrappers, T3 Code open-source control plane and Paseo multi-agent orchestrator are strong open-source options, and both pair cleanly with ACR when you add a protocol-level consensus gate before merging AI-written code.
Launch Parallel Coding Sessions Locally
Start with your local repository today at $0: read the local quickstart to boot acr-core, install acr-claude-plugin via the marketplace plugins guide, or compare local vs hosted Cloud Pro ($29/mo for cross-session Claude and Codex sync) on the ACR pricing page.