Use git worktrees to achieve parallel agents
Resolved 💬 6 comments Opened Dec 27, 2025 by kendonB Closed May 18, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
I would like to be able to use git worktrees to achieve parallel agents just like how it works in Cursor.
Additional information
_No response_
6 Comments
I have already implemented the
codex --worktreefeature in https://github.com/scharalambous3/codexHoping OAI engineers will allow me to open a PR soon
Curious to hear your thoughts - I'm open to feedback!
@scharalambous3, glad to hear you got something working in your fork, but we are not generally accepting PRs. A feature like this would need to go through significant UX and design review to ensure that it works, is properly exposed via app server APIs, and is implemented in all of the codex surfaces.
@etraut-openai Is your PR policy strict, or are you ok with accepting something which was discussed and approved by you? (Not about this issue, but just in case).
you can achieve worktrees in codex CLI by asking the agent to use a worktree
I'm going to close this since it's basically already possible by just asking codex with auto review on
@kendonB What do you mean? How could I use it in this way?