Skip to content

Can Claude Code and Codex work on the same repo at once with git worktrees?

Short answer. Yes. Git worktrees give each agent its own checkout, so file changes do not collide. They do not share what each agent learned. Pair them with one owner per issue and shared project records, so both agents read the same decisions and failed attempts.

Updated by Contextingo.

What worktrees solve

Separate working directories and branches for each agent.

What they do not

  • Two agents choosing different designs.
  • One agent retrying what the other ruled out.
  • Deciding which issue each one takes.

A workable setup

  1. One issue per agent, assigned on the Team board.
  2. Both connected to the same project.
  3. Small pull requests, accepted by a person.

Questions

Good to know.

Does Contextingo create worktrees?

No. It shares knowledge and ownership; you create worktrees yourself.

Nothing learned is lost. Nothing unchecked is done.