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_

View original on GitHub ↗

6 Comments

scharalambous3 · 6 months ago

I have already implemented the codex --worktree feature in https://github.com/scharalambous3/codex
Hoping OAI engineers will allow me to open a PR soon
Curious to hear your thoughts - I'm open to feedback!

etraut-openai contributor · 6 months ago

@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.

solomatov · 5 months ago

@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).

kendonB · 5 months ago

you can achieve worktrees in codex CLI by asking the agent to use a worktree

kendonB · 3 months ago

I'm going to close this since it's basically already possible by just asking codex with auto review on

solomatov · 3 months ago

@kendonB What do you mean? How could I use it in this way?