Review against repo guidelines
diffgate_guidelinesReview code diffs against local coding guideline files (AGENTS.md, CLAUDE.md, .cursorrules) per directory to validate changes before application.
Instructions
Review the diff against the repo's own coding guideline files (AGENTS.md, CLAUDE.md, .cursorrules, etc.), scoped per directory (nearest file wins). IMPORTANT: if the result has mode='host', NO external model was used — this is a SELF-REVIEW, not an independent gate: YOU (the calling agent) evaluate each group's hunks against its guidelines text using your own model. Treat host-mode results as ADVISORY only — never block the change on them. If mode='model', findings were produced by the configured provider and are returned directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repo root. Defaults to process.cwd(). | |
| mode | No | Diff scope. Default: working. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | 'host' = self-review (advisory only); 'model' = an external provider produced findings. | |
| groups | No | Per-guideline-file groups of hunks (host mode) or findings (model mode). |