review-changes
Run an automated code review of your current repository using Codex CLI to inspect uncommitted changes, specific commits, or diffs against a base branch.
Instructions
Run a code review against the current repository using Codex CLI native review subcommand
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "review-changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Review changes against a specific base branch (e.g., "main", "develop") | |
| model | No | Optional model override. Known: gpt-6.1-sol, gpt-6-astra, gpt-6.1-terra, gpt-6-sol, gpt-6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna. If omitted, uses your Codex CLI default (~/.codex/config.toml). | |
| title | No | Optional title to display in the review summary | |
| commit | No | Review the changes introduced by a specific commit SHA | |
| prompt | No | Custom review instructions or focus areas (cannot be used with uncommitted=true; use base/commit review instead) | |
| timeout | No | Maximum execution time in milliseconds | |
| workingDir | No | Working directory to run the review in (passed via -C as a global Codex option) | |
| uncommitted | No | Review staged, unstaged, and untracked changes (working tree) - cannot be combined with custom prompt | |
| reasoningEffort | No | Reasoning depth for the review. Default: high (code review benefits from deep reasoning). | high |