1. brindle
  2. Guides
  3. Codex reviews Claude Code

Have Codex review Claude Code branches before they merge

Claude Code works on its own branch while Codex reviews the finished commit. Review and your checks both have to pass before it merges.

Type
Guide
Updated
Related
Parallel agents
Rule packs
Milestone checks

A second model can catch what the first missed. Approval applies to the reviewed commit. New worker changes need another review; a clean sync from the base can carry approval forward.

Prepare the repository

You need a Git repository with Claude Code and Codex installed, and tmux, which brindle runs in. Install brindle and initialize it (the one-line installer, curl -fsSL pawdelta.com/brindle/install | sh, installs brindle and uv, and tmux too on a Mac with Homebrew; on Linux it tells you the one package to install):

uv tool install brindle
cd ~/code/myapp
brindle init

brindle init reads your manifests and lockfiles for setup and check commands and the git-ignored env files to copy into each worktree, shows what it found, then writes .brindle/config.json. Make sure its checks are commands you trust. Add a setup command if fresh worktrees need dependencies. Commit the config so your team shares it.

Workers branch from committed work, so commit or stash first.

Start a Claude task

Run brindle in the repository and describe the result, the parts of the project to change and the checks that define done. Each worker gets its own worktree and branch.

cd ~/code/myapp
brindle

For example: add a retry to a failing API request, keep the change in the client and its tests, run the relevant test file. Tight boundaries help the reviewer focus. For longer work, describe milestone checks or put the goal in .brindle/goals.md.

The sidebar shows which agents are working, idle or waiting for you.

Make Codex the reviewer

By default the built-in reviewer-sonnet-high profile (Sonnet at high effort) is the starting choice; small or docs-and-tests-only branches can use a lighter reviewer. To have Codex review Claude's work, sign in to the Codex CLI and name the built-in reviewer-codex profile in .brindle/config.json:

{"review_profile": "reviewer-codex"}

review_profile pins the profile. Setting reviewer to reviewer-codex makes it the starting choice, but review sizing can use a lighter Codex profile for a small branch. Only if you leave reviewer at its default can brindle Pro's hosted learning pick another built-in reviewer, when it has reviewed that kind of work better; a routing_locked reviewer setting disables learning and sizing. Configured reviewer_fallbacks can be tried if the chosen reviewer can't run. See Configuration.

When a worker reports, brindle runs your checks and starts the review only once they pass, so the reviewer gets the results in its prompt (with no checks configured, the review starts at once). Failing checks go back to the worker before any reviewer starts. brindle does this itself, as part of the "pipeline" setting, on by default. The reviewer sees the task, the finish line, a check summary and the changes since the last review. If it asks for changes, brindle sends them to the worker and reviews again. The suggested cap of two fix rounds (review_rounds) isn't a hard stop. With review_stall_stop on (the default), repeated findings past the cap stop automatic fixes and go to the supervisor. With it off, the supervisor is alerted while fixes continue.

Checks gate the merge

Review doesn't replace tests. A branch merges only when the work is committed, a reviewer approved that exact commit, pre-commit hooks pass and your checks pass. brindle runs the checks itself, so a model's claim that tests passed doesn't count.

On a large suite, ask for a focused test while developing and keep the merge checks for what can land. When a check fails, the supervisor sends the output to the worker to fix and rerun.

brindle caches a clean commit's passing result, so it doesn't rerun checks for the same commit. A new worker commit gets its own run. After a clean sync from the base, passing checks can be reused when the incoming changes share no files with the branch's changes and touch no common check inputs, such as dependency manifests or test configuration.

Fit the workflow to the task

For a small change, give one narrow task and a direct test command. For broader work, split it into milestones with separate checks and assign tasks in distinct areas so workers run in parallel. If the approach needs your input, ask for a plan first; brindle holds a Claude worker until its plan is approved.

Autopilot is always on. It asks when it needs a decision or stalls, skips Claude for new assignments at usage_limit (90% by default), and pauses workers only at the actual provider limit (100%) until the window resets. The pause reads subscription usage, so it doesn't apply to API-key billing. Check progress with brindle goal. The autopilot docs cover milestones.

To see the loop on a practice repo first, run brindle demo. To check your setup, run brindle doctor.