evaluate_git_diff
Analyzes code changes from a git diff by running multi-dimensional quality checks on only the changed lines to catch issues before merging.
Instructions
Evaluate code changes from a git diff. Parses the unified diff from a git repository, identifies changed files and lines, and runs the full tribunal on each changed file — filtering findings to only those on changed lines. Supports both live git repos (provide repoPath + base ref) and pre-computed diffs (provide diffText).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Git ref to diff against (e.g., 'main', 'HEAD~1', 'origin/main'). Default: 'HEAD~1' | |
| config | No | Optional inline configuration (same format as .judgesrc) | |
| autoTune | No | Apply feedback-driven auto-tuning to reduce false positives (default: false) | |
| diffText | No | Pre-computed unified diff text. When provided, repoPath is used only for reading file contents. | |
| repoPath | No | Absolute path to the git repository. Required when not providing diffText. | |
| maxPromptChars | No | Maximum character budget for LLM prompts. Controls truncation of deep-review prompts. Set to 0 to disable all truncation. Default: 100000. | |
| confidenceFilter | No | Minimum confidence threshold for findings (default: no filter) |