DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a GPT-5 review of a branch diff with Codex Bridge

Pipe a branch diff into Codex and get a single final answer back.

Short answer: Complete the install steps for the Codex CLI, codex login, and the plugin; then open a terminal in the repo that has the branch you want reviewed; run git diff main...HEAD | codex-run -C . --timeout 1200 -. All steps.

Who it is forA developer about to open a pull request who wants a second look at the branch from GPT-5.

The problemReviewing a large diff by hand takes time, and running it through a chat window loses the repo context.

The outcomeA written review of the branch diff, printed as Codex's final answer.

What you need first

  • Claude Code (any current version)
  • Codex CLI installed with `npm i -g @openai/codex` or `brew install codex`
  • Logged in with `codex login`, confirmed by `codex login status`
  • A ChatGPT Plus, Pro, or Team plan
  • macOS or Linux (Windows is not tested)

Steps

  1. Complete the install steps for the Codex CLI, codex login, and the plugin.
  2. Open a terminal in the repo that has the branch you want reviewed.
  3. Run git diff main...HEAD | codex-run -C . --timeout 1200 -.
  4. Read the final answer, then ask a follow-up with codex-run -C . -r "now show me the minimal patch".
  5. Check each finding against the code before acting on it.

Prompt for your agent

In the Sateezg/codex-bridge plugin setup, pipe the diff of <branch> against main into codex-run with -C . and --timeout 1200, and report Codex's final answer. Verify that each finding names a real file and line in the repo before reporting it.

Caveat. Codex runs in read-only mode by default, and a long review can take 10 or more minutes, so the example sets --timeout 1200.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for Sateezg/codex-bridge and "Run a GPT-5 review of a branch diff"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer