grok_review
Analyze a git diff with per-dimension feedback. Automatically fetches diff, supports focus areas, returns markdown or JSON with verdict and blockers for CI gating.
Instructions
Have Grok review a git diff. If no diff is provided, runs git diff <base_ref>...HEAD (default base: main). Returns a per-dimension review. Use format='json' for CI gating (verdict + scores + blockers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Unified diff to review. If omitted, runs `git diff <base_ref>`. | |
| base_ref | No | Git ref to diff against when diff is not provided. Defaults to 'main'. | |
| focus | No | Optional focus area (e.g. 'security', 'performance', 'API design'). | |
| format | No | Output format. 'markdown' (default) returns a human-readable review. 'json' returns a machine-parseable verdict suitable for CI gating. | |
| model | No | ||
| cwd | No | Working directory for git diff. Defaults to process cwd. | |
| timeout | No | Per-call timeout in seconds. Defaults to 300. Raise for long grok-4 reasoning. |