gemini_review
Run an independent Gemini code review of a git diff, commit, or staged changes to identify candidate issues and verify each in the code before reporting.
Instructions
Independent code review of a git diff by Gemini (agy, subscription, read-only plan mode).
What to review (pick one; default = uncommitted changes vs HEAD): base="origin/main" for this
branch, commit="" for one commit, staged=True for staged changes.
intent: what the change is meant to do, in the author's words (default: commit messages).
Do not put your own review opinions here; the point is an independent second look.
models: agy models run in parallel (default gemini-4-neon-high; add gemini-4-hydrogen-high
for a fast second vote). Findings on the same place are merged; agreed = how many models.
Secret-looking lines stop the run with status STOPPED and nothing is sent; show those lines to
the user and pass allow_secret_like=True only if they say it is fine.
Takes minutes. Findings are candidates: trace each one in the code before reporting it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "gemini_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| repo | Yes | ||
| commit | No | ||
| intent | No | ||
| models | No | ||
| staged | No | ||
| out_dir | No | ||
| session_id | No | ||
| allow_secret_like | No |