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#

ScopeCommandFindings appear on
Your uncommitted changesReview Workspace ChangesThe files themselves; Apply is available
A branchReview Branch…A diff of the branch
A commitReview Commit…A diff of the commit
Files, not just a diffScan 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.

From a scope to findings in the editor
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#

  1. 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.
  2. 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.
  3. 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#

  1. Start it Open the Code Review view and pick a scope, or run one of the commands above.
  2. Watch progress The view shows the mode, the files being reviewed and the results. Cancel Review stops it.
  3. 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.
  4. Decide on each finding Apply makes the suggested change and saves the file. Discard dismisses the finding.
  5. 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 @ocr in 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:

ToolWhat it does
ocr_previewLists which files a review would cover, without calling a model. Free and fast.
ocr_reviewReviews the current changes, a branch or a commit. Findings also appear in the editor.
ocr_scanScans files, not just a diff.
ocr_list_sessionsLists saved reviews.
ocr_session_commentsReads the findings of a saved review.
ocr_compare_sessionsCompares two reviews.
ocr_statusReports 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#

SettingValuesDefault
ocr.binaryPathPath to the review programEmpty (IZ Code manages it)
ocr.effortlow, medium, high, or emptyEmpty (the reviewer's saved setting)
ocr.concurrencyNumber, 1 or more8
ocr.maxTokensBudgetNumber; 0 means no limit0
ocr.noFiltertrue, falsefalse

ocr.maxTokensBudget caps the tokens one review may use. ocr.noFilter keeps every comment instead of letting the model filter out weak ones.

Last updated: December 1, 2026Was this page helpful?