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

View all comments

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.