Skip to main content
Managing sessions and changes

Reviewing Changes

Overview

After Qoder modifies code, you usually want to see what it changed and give the changes a review. Qoder CLI CN provides two capabilities: view the concrete code differences with /diff, and run a structured code review on the changes with /review to find fixable issues. Both capabilities are based on Git, so they must be used inside a Git repository.

Viewing changes (/diff)

Use /diff to view the code differences in the current workspace:
/diff
It shows the concrete changes in modified and newly added (untracked) files, helping you quickly confirm what Qoder changed.

Reviewing changes (/review)

/review runs a review over the code changes and finds fixable issues. It can be used in two ways:

Interactively choose the review scope

Run without arguments and /review lets you choose the review scope:
/review
The available review scopes are:
  • Current changes: review staged, unstaged, and untracked files.
  • Base branch: pick a local branch and review the current branch's changes relative to it.
  • Commit: pick one commit from the recent commit list to review (up to 100 commits listed).
  • Custom instructions: enter custom review requirements.

Give review instructions directly

Run with arguments, and the arguments are submitted to Qoder directly as review instructions:
/review Focus on concurrency safety and error handling in this change

Review scopes explained

ScopeWhat is reviewed
Current changesStaged, unstaged, and untracked files in the workspace
Base branchThe current branch's diff relative to the selected local branch
CommitThe changes introduced by the selected commit
Custom instructionsA review according to the requirements you enter
When choosing "Base branch," if a local main or master branch exists, it is preferred as the default comparison branch.

Suggested flow

A common "change — view — review" flow:
  1. Have Qoder complete a modification.
  2. Use /diff to quickly see what it changed.
  3. Use /review to run a structured review and surface potential issues.
  4. Have Qoder keep fixing based on the review findings.
When you need strict gatekeeping over a whole set of changes before committing, the "Base branch" or "Commit" review scopes are especially useful.
Both /review and /diff must run inside a Git repository. If you are not in a Git repository, or there is no usable branch/commit, Qoder shows a corresponding message.