# Code review

> For the complete documentation index, see [llms.txt](https://learn.chatgpt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

Use ChatGPT or Codex to understand code changes, investigate potential issues,
and prepare review feedback.





















<a id="start-a-review"></a>

## Review local changes

Codex's built-in `/review` command reviews changes in your Git checkout, while
the Code Review plugin works with pull requests.
Choose your client for the steps that apply.







Type `/review` to open the CLI review presets. Codex starts a dedicated reviewer
that reads the selected diff and reports prioritized, actionable findings
without changing your working tree.





## Choose a review scope







Choose one of these `/review` scopes:

- **Review against a base branch** finds the merge base and reviews your branch diff.
- **Review uncommitted changes** includes staged, unstaged, and untracked files.
- **Review a commit** reviews the exact change set for a selected commit.
- **Custom review instructions** focuses the review on criteria you provide.





## Work with review results







The review appears as a turn in the transcript. Set `review_model` in
`config.toml` when you want reviews to use a different model from the current
session.









If you ask Codex to apply the fixes it finds, your normal [sandbox and approval
settings](https://learn.chatgpt.com/docs/sandboxing) apply.