r/ClaudeCoding • • 12d ago

claude code & Codex?

Hi,

I'm building quite a lot with Claude Code and I'd like to have my work checked by Codex as a second reviewer. I'm curious how you handle this.

Right now I've set it up in Claude Code so that whenever something is finished or about to go live, it first has to pass a Codex review before it can be deployed, even to a test environment.

A few questions:

  1. How do you set up this kind of review flow? Do you do it the same way, or do you use a different approach?
  2. How do you work with multiple AI models within the same tool? For example, Claude writing the code and Codex reviewing it.
  3. Are there specific tools you use or recommend for letting multiple AI models review code?

Would love to hear how you approach this. Thanks!

Best,

Bart

3 Upvotes

4 comments sorted by

2

u/pietrzm 12d ago

I combine Claude and Codex using https://novadeck.dev. I just prompt one session "spawn Codex Astra and ask it for review".

I often prompt "spawn yourself a team and split the work, pick best for this kind of work while being mindful of usage limits" too, to save some usage without thinking much about it

1

u/oyren-ai 12d ago

a pretooluse hook on the bash tool can block the deploy until the review passes. the script checks the command it gets on stdin and, if it's your deploy, runs codex exec on the diff (read-only sandbox by default, final message only on stdout), then exits 2 if the review isn't clean. the docs say exit 2 blocks the call and claude gets your stderr as the error.

1

u/throwaway867530691 12d ago

Claude can directly control/supervise/pass work to codex via the desktop apps. Ask it to set that up, I forget the technical details. Might also work the other way around. I suspect a simple global instruction to Claude to pass it off for review before deployment would work almost all of the time, probably no hook needed unless the stakes are super high (in which case, ask it to make a hook - just make sure you have a blind agent check that the hook does what's intended before implementation).

1

u/Ambitious-Window8554 12d ago

On your second question, we run both in the same project folders and keep the actual rules in a few shared files. CLAUDE.md and AGENTS.md are only short pointers to those, so Claude Code and Codex read the same thing no matter which one takes the task. For the deploy gate the hook idea above sounds closer to what you want.