← Blog

How-to5 min read

Code review with Claude Code and Codex: /review, GitHub reviews and a second opinion

Code review with Claude Code and Codex: /review for local changes, automatic GitHub PR reviews, where review rules go, and a second opinion from the other agent.

Two coding agents running side by side in Mirasim, each in its own paneTwo coding agents running side by side in Mirasim, each in its own pane

The short answer

You want to reviewClaude CodeCodex
Changes on your computer/code-review (alias /review) in a session/review in the CLI, IDE extension or desktop app
A pull request on GitHub, automaticallyCode Review, for Team and Enterprise plansAutomatic review in Codex's code review settings
A pull request, on requestComment @claude review (with Code Review on)Comment @codex review
Where review rules goREVIEW.md and CLAUDE.md in the repositoryA ## Code Review Rules section in AGENTS.md

Neither replaces a human review. Anthropic notes that a review with no findings doesn't mean the code is free of bugs or secure, and a Code Review result doesn't approve or block a pull request by itself.

Claude Code: /code-review and Code Review

In a Claude Code session
/code-review                 # the current diff
/code-review 1234            # a pull request
/code-review high --fix      # more effort, and apply the fixes
/code-review --comment       # post the findings on the PR or merge request
/security-review             # security issues on this branch vs origin's default branch
  • /code-review is a built-in skill that looks for correctness bugs in the current diff, or in a PR number, branch or path you pass, on any plan. /review does the same. The effort level, from low to max, trades time for thoroughness; ultra sends it to a deeper multi-agent review in a cloud sandbox, which needs a claude.ai account.
  • Code Review is a separate service for GitHub on Team and Enterprise plans. An Owner of your Claude organization installs the Claude GitHub App and picks repositories; reviews then run on pull request activity, or when someone comments @claude review. Several agents look in parallel, a check step drops false positives, and the findings arrive as inline comments with a summary and a check run.
  • Tune what gets flagged with a REVIEW.md at the repository root, for review-only instructions, alongside CLAUDE.md.

Codex: /review and @codex review

  • Type /review in the Codex CLI, the IDE extension or the desktop app, then choose Review against a base branch or Review uncommitted changes. A dedicated reviewer reads that diff and reports prioritized findings without changing your files. The command only appears inside a Git repository.
  • For pull requests on GitHub, connect the repository to Codex, then turn on Automatic review for it in Codex's code review settings at chatgpt.com/settings/code-review. To ask for one review, comment @codex review on the pull request; Codex reacts with 👀 and posts its review.
  • Codex follows the review rules in the AGENTS.md closest to the changed code. Put repository-wide checks at the root and service-specific ones in a nested file.
A review rule in AGENTS.md
## Code Review Rules

- Flag any new SQL built by string concatenation; parameterized queries only.
- Don't comment on formatting; CI handles it.

A second opinion from the other agent, in Mirasim

Mirasim runs Claude Code, Codex and other coding agents side by side in one window. That makes it easy to have one agent write and another review: run Codex's /review on the changes Claude Code just made in the same workspace, or the other way round with /code-review.

  • Name the other session with @ in your prompt and the reviewing agent can read it: what was asked, and what the first agent said it did. It can also send that session a message, such as the list of findings to fix.
  • The Git tab of the workspace shows staged and unstaged changes and a diff for every file, so you can read the change yourself before you commit.

Questions

Does Claude Code review need a Team plan?
Only the automatic GitHub service, Code Review. /code-review in a Claude Code session works on any plan.
Will the review change my code?
Codex's /review doesn't touch your files. Claude Code's /code-review only applies fixes when you pass --fix.
Can I review GitLab merge requests?
Claude Code's /code-review --comment can post to a GitLab merge request. On the Codex side, GitLab merge request reviews are in preview.
Why review with a different agent?
A model reviewing its own work can share its own blind spots; a second agent, on a different model, reads the change without them. You still decide what to merge.

Sources

Checked on November 26, 2026 against Anthropic's Claude Code documentation (code.claude.com/docs: Commands, Code Review, Customize Code Review) and OpenAI's documentation (learn.chatgpt.com/docs: Code review, Review GitHub pull requests with Codex). Both change often, so check those pages for the latest.

Keep reading