Introduction
Running Claude Code and Codex CLI at the same time is easy: open two terminals and start both commands. The hard part begins five minutes later, when both agents edit the same file, one test run sees the other's half-finished changes, or nobody remembers which terminal owns which branch.
For Codex CLI alone, the shortest durable setup is one Git worktree per writing session and one tmux pane rooted in each worktree. Start Codex inside the pane, detach when you leave, and reattach to the same process later. Add Claude Code only when a second provider has a clear implementation or review role.
The reliable setup is not an elaborate agent hierarchy. It is a small operating rule: one writer per worktree, one explicit handoff point, and one terminal pane per agent. Git worktrees isolate files, tmux keeps the sessions visible and persistent, and MCP gives either agent access to the external tools it actually needs.
This guide builds that setup for one specific workflow: Claude Code implements a change, then Codex reviews the resulting commit from a separate pane. It also shows how to adapt the layout when both agents need to implement independent tasks. If you only need several Claude sessions, the existing parallel Claude Code worktree guide is the narrower route. This article is about coordinating different providers without turning a repository into shared mutable state.
Scope note: the tmux layout below is for the local Codex CLI. OpenAI also provides a Codex IDE extension and Codex cloud environments. Those are useful complementary surfaces, but they do not automatically share a local tmux pane or the same uncommitted checkout.
When the pair needs attention away from your desk, the Codex phone control guide compares OpenAI's native mobile Remote tab with a tmux-level mobile view for Codex CLI, Claude Code, OpenCode, and shell panes.








