review_diff
Get a second-opinion code review of your diff using a local model. Provide diff text or a git range to receive structured findings with severity and suggestions.
Instructions
Second-opinion code review of a diff by a LOCAL model; returns structured findings.
Give either diff text, or git_range and let the server run git diff in cwd
(defaults: cwd = current dir, range = HEAD i.e. all uncommitted changes). Examples:
git_range="--staged", git_range="main...HEAD". focus narrows the review
("concurrency", "error handling"). Findings carry file, line, severity
(critical/major/minor/nit), summary and suggestion.
Use it as a first pass before or alongside your own review, then verify each finding against the code — it is a cheap second opinion, not a verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| diff | No | ||
| focus | No | ||
| think | No | ||
| git_range | No | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| notes | No | ||
| seconds | No | ||
| summary | Yes | Two or three sentences on overall quality and risk | |
| verdict | Yes | ||
| findings | Yes | ||
| diff_chars | No | ||
| output_path | No |