review_diff
Review a code diff for compliance with repository conventions, using RAG over indexed code and docs. Automatically computes git diff if not provided.
Instructions
Review a diff against this repo's own conventions, grounded via RAG over its
indexed code/docs/config (run index_repo first). If diff is omitted, computes
git diff base_ref..head_ref in repo_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | ||
| base_ref | No | HEAD~1 | |
| head_ref | No | HEAD | |
| repo_path | Yes | ||
| max_findings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| findings | Yes | ||
| trace_id | Yes | ||
| hunks_reviewed | Yes | ||
| duration_seconds | Yes | ||
| findings_suppressed_by_critic | Yes |