r/ClaudeCode • • 44m 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

10 comments sorted by

•

u/AutoModerator 44m 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 37m 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 24m ago

You have the reviews instructions in a .md?

1

u/RE-call 23m 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 38m 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 35m 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 15m 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 13m 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

0

u/sam_arutyunyan 32m ago

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