Overview
/diff to view specific code diffs, and /review to perform a structured code review and identify fixable issues.
Both features are Git-based and must be used within a Git repository.
View Changes (/diff)
/diff to view the code diff in the current workspace:
Review Changes (/review)
/review performs a code review on the changes to identify fixable issues. It can be used in two ways:
Interactively Select Review Scope
When run without arguments,/review prompts you to select the review scope:
- Current changes: Review staged, unstaged, and untracked files.
- Compare with Base Branch: Select a local branch and review the changes in the current branch relative to it.
- Specific commit: Select a commit from the recent commit list for review (up to 100 commits are listed).
- Custom instructions: Enter custom review requirements.
Provide Review Instructions Directly
When run with arguments, the arguments are passed directly to Qoder as review instructions:Review Scopes
When selecting “Compare with Base Branch”, if the
main or master branch exists locally, it is prioritized as the default base branch.
Recommended Workflow
- Have Qoder complete a modification.
- Use
/diffto quickly view what it changed. - Use
/reviewto perform a structured review and identify potential issues. - Based on the review results, have Qoder make further corrections.
Both/reviewand/diffmust be run in a Git repository. If you are not in a Git repository, or if no branches or commits are available, Qoder will display an appropriate prompt.