Codex code review
codex_reviewRun Codex's native read-only code review in a git repository, targeting uncommitted changes, a branch, or a commit. Add focus or adversarial mode to challenge design and assumptions.
Instructions
Run Codex's native code review (read-only) in a git repo. The review text comes back in the "review" field. Pass focus and/or adversarial: true for a steerable review that challenges the design, not just bugs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute path inside the git repository. | |
| focus | No | What to concentrate on, e.g. "concurrency and error handling". | |
| model | No | ||
| effort | No | ||
| target | No | uncommitted changes, the branch vs base_branch, or one commit_sha. | uncommitted |
| commit_sha | No | ||
| adversarial | No | Challenge the approach and assumptions, not just find bugs. | |
| base_branch | No | ||
| wait_seconds | No | Seconds to block before returning a progress snapshot (default 240). Returns early when the turn finishes or Codex needs an answer. The turn keeps running after this returns. |