Git worktrees with codex
Resolved 💬 1 comment Opened Feb 28, 2026 by scharalambous3 Closed Feb 28, 2026
What variant of Codex are you using?
CLI
What feature would you like to see?
Running multiple codex agents in parallel requires giving each agent its own copy of the codebase so that there is no interference. This can be done using worktrees. Claude code offers an interface for automatically running such a workflow with claude --worktree. It would be great to also be able to run a similar command with codex-cli codex --worktree or codex --worktree=<branch>
Additional information
I have implemented this and have been using it myself already - I just need your approval to create a PR
Related Issues
#12862
#12889
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗