code_review
Run deterministic shape-level code checks for naming, comment coverage, long functions, duplicated blocks, and SEARCH/REPLACE diffs to clear shallow noise before deep review.
Instructions
Shape-level code check (deterministic regex, zero LLM): naming, comment coverage, long functions, duplicated blocks, diff review (SEARCH/REPLACE). Clears shallow noise before deep review — not a correctness verdict.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Patch to review block-by-block: SEARCH/REPLACE (<<<<<<< SEARCH ... ======= ... >>>>>>> REPLACE) or unified diff (--- a/x.js / +++ b/x.js / @@ hunks). Pass one of file/source/diff; diff wins over source/file | |
| file | No | File path relative to workspace_dir to review (reads from disk) | |
| source | No | Source code text to review (mutually exclusive with file; source wins if both passed) | |
| max_issues | No | Max issues to return (default: 50) | |
| workspace_dir | Yes | REQUIRED: absolute path of the project root to review code in |