Code review
The built-in code review extension runs an AI review of your changes, a branch, a commit or whole files, and puts its findings as comments right in the editor. You can apply a suggested fix with one click, and agents can run a review themselves.
What it reviews#
| Scope | Command | Findings appear on |
|---|---|---|
| Your uncommitted changes | Review Workspace Changes | The files themselves; Apply is available |
| A branch | Review Branch… | A diff of the branch |
| A commit | Review Commit… | A diff of the commit |
| Files, not just a diff | Scan Repository… | The scanned files |
All commands are in the Command Palette. The review runs as a separate program that the extension downloads and checks for you; you do not need Node.js or anything else installed.
flowchart TD
S["Changes, branch, commit or files"] --> R[Review program]
G[Agent] -->|ocr_review| R
R --> F[Findings as comments]
F --> D{Apply or Discard}Set it up#
- Install the extension Open Extensions and install the code review extension from the built-in extensions. A review icon appears in the Activity Bar, with the Code Review view.
- Get the review program The extension downloads a pinned version the first time it is needed. You can also run Download / Update CLI from the Command Palette.
- Choose a model The reviewer calls a language model of its own. Run Open Configuration to set the model provider and key, then Test LLM Connection to check it.
Run a review#
- Start it Open the Code Review view and pick a scope, or run one of the commands above.
- Watch progress The view shows the mode, the files being reviewed and the results. Cancel Review stops it.
- Go through the findings Each finding is a comment thread on the line it is about. Use Next Finding and Previous Finding to move between them.
- Decide on each finding Apply makes the suggested change and saves the file. Discard dismisses the finding.
- Clean up Clear Findings removes all comments from the editor.
Apply works for reviews of your workspace changes. For branch and commit reviews, comments are attached to the right side of the diff, and you make the change yourself.
Earlier reviews#
Reviews are saved as sessions:
- Show Review Sessions lists them.
- Resume Session… continues a branch or commit review.
- Compare Sessions… compares two reviews.
- Open Session Viewer starts a viewer for your review sessions.
- Type
@ocrin the chat to attach a session's findings to a message for any agent.
Let agents review#
The extension gives every agent tools through IZ Code's tools server:
| Tool | What it does |
|---|---|
ocr_preview | Lists which files a review would cover, without calling a model. Free and fast. |
ocr_review | Reviews the current changes, a branch or a commit. Findings also appear in the editor. |
ocr_scan | Scans files, not just a diff. |
ocr_list_sessions | Lists saved reviews. |
ocr_session_comments | Reads the findings of a saved review. |
ocr_compare_sessions | Compares two reviews. |
ocr_status | Reports whether the review program is ready. |
Ask, for example, "Review my changes and fix the important findings." The agent can run ocr_review, read the results and make the fixes, with your usual approvals. See Permissions and tools.
Settings#
| Setting | Values | Default |
|---|---|---|
ocr.binaryPath | Path to the review program | Empty (IZ Code manages it) |
ocr.effort | low, medium, high, or empty | Empty (the reviewer's saved setting) |
ocr.concurrency | Number, 1 or more | 8 |
ocr.maxTokensBudget | Number; 0 means no limit | 0 |
ocr.noFilter | true, false | false |
ocr.maxTokensBudget caps the tokens one review may use. ocr.noFilter keeps every comment instead of letting the model filter out weak ones.