Codex code review
codex_reviewRun a read-only review of a git repository's changes, a branch against its base, or a specific commit. Add focus or adversarial mode to target concurrency, edge cases, and design 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 assumptions and edge cases.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cwd": "<cwd>"
},
"name": "codex_review"
}
}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 120). Returns early when the turn finishes or Codex needs an answer. The turn keeps running after this returns. |