grok_code_review
Get a strict second-opinion code review focusing on correctness, security, and regression risks. Uses predefined rules and disabled web search for focused analysis.
Instructions
Ask Grok for a strict second-opinion code review.
This tool is intended to run after CodeHelper or manual analysis. It sends
strict run-scoped review rules, disables web search, and passes large
prompts via --prompt-file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional Grok model id passed to `--model`. | grok-4.5 |
| question | No | Review focus. | Find concrete correctness, security, and regression risks. |
| timeout_s | No | Maximum seconds to wait. Default 300, capped at 600. | |
| workspace | No | Working directory for Grok. Defaults to this server's cwd. | |
| raw_output | No | Return text plus raw stdout/stderr when true. | |
| self_check | No | Pass `--check` for an extra verification loop. Costs more time/quota. | |
| code_or_diff | Yes | Code, diff, or focused snippets to review. | |
| max_findings | No | Maximum findings to request. Must be 1-10. | |
| primary_analysis | No | Optional CodeHelper/manual findings to challenge. | |
| reasoning_effort | No | Optional reasoning effort string passed through. | high |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |