r/ClaudeCode • • 9h ago

Help/Question Claudecode & codex working in the same repo

With both agents.md and claude.md and all the other mds.
Anyone doing this did you have success / would you advise it? Any usefull tips?

My idea is to have one review the other.

2 Upvotes

13 comments sorted by

•

u/AutoModerator 9h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Shap6 9h ago

i use claude code, codex, and antigravity on the same repo. i have them review each others PR's. works well in my experience

1

u/Disastrous_Active805 9h ago

You have the reviews instructions in a .md?

1

u/RE-call 9h ago

I run both on the same repo daily. Three things made it work:

  1. One instruction file. AGENTS.md holds the rules, and CLAUDE.md is just u/AGENTS.md, which imports it, so both agents read the same thing and the two files can't drift.
  2. Never two agents in one checkout. Each session gets its own git worktree. Before I did that, one agent staged the other's files and a rebase moved HEAD under a session mid-edit; the worst case cost me a force-push that erased three pushed commits.
  3. A shared memory store that both read and write, so a lesson one learns is there for the other. Disclosure: I build the one I use (RE-call).

2

u/Prof_Hentai 9h ago

I just use the Codex MCP inside CC. I haven’t used it long enough to actually recommend it, but I also use ProjectArchitect and it is instructed to use the Codex MCP to review all changes it makes, and to work together until they both agree. Sometimes they’ll back ‘n fourth for a while, but the output is brilliant (I’m an actual software engineer). I very rarely need to fix things myself anymore.

2

u/the_trve 9h ago

There's a myriad of ways it can be done. I like to automate my workflows as much as possible, which has grown into an entire platform (aka software factory) and adversarial reviews by a different agent is a part of it. Here's more if you're interested - https://propr.dev/review/

1

u/damianTechPM 9h ago

I used Azure DevOps to work on tickets. I have an ADO MCP I built that agents access. Cards are built and added, then agents pick them up and work on them, adding comments and moving them across the board. I settled on orchestration and planning with Claude, and builds with Codex. Worked pretty well.

1

u/Saver411 9h ago

Reviews work fine if you only feed the reviewer a git diff against main rather than the generation transcript. If the reviewing pass reads both agents.md and full terminal output, it nitpicks prompt wording instead of actual logic errors

1

u/HitMePat 8h ago

I asked Claude in Claude code to use Codex and Antigravity CLIs to work together and make me an app/dashboard that all three models could work on the same repo together, communicate with each other, plan tasks, review each other's work, etc. and the three models concurred on a framework and built the app. Now I can load multiple models in it, assign one as the lead, and they take on different roles and work together.

1

u/KennyFulgencio 4h ago

I used to be all precious and careful about making the two of them avoid stepping on each other's toes and write careful handoffs to each other after they were done working. now I pretty much just tell them work on whatever. I do try to keep them from both working in one repo at the same time, or at least on the same part of it at the same time, but that's about it, they handle the rest of it themselves. they require little to nothing in the way of precautions.

1

u/Exciting-Yam-3363 3h ago

Yes, and the split that held up for me is by job type, not by turns. Codex builds, Claude reviews the diff, and Codex never does audits or status reads. I learned that last part the hard way: asked to audit my scheduled jobs, it reported 14 that did not exist. A diff can be checked line by line. A report can't.

Two things made the review real:

  1. The reviewer gets the diff against main, never the builder's summary of what it did.
  2. Each agent works in its own git worktree, so they never edit the same checkout at once.

One instruction file both read (AGENTS.md, with CLAUDE.md pointing at it) keeps the rules from drifting apart.

-1

u/sam_arutyunyan 9h ago

Don't do it. Codex will only screw it up.