Commit 7ec19ae
authored
feat: improve AI reviewer assumption handling to reduce spam (#13)
* feat: improve AI reviewer assumption handling to reduce spam
Update the prompt to prevent the AI from spamming users with questions
about unverifiable issues. Changes:
- Default to skipping issues that can't be verified from the diff
- Only ask for clarification on critical issues (security, breaking bugs, data loss)
- Require explicit labeling of inferences as "Inference (not verified)"
- Emphasize focusing on directly visible issues in the diff
This makes reviews more honest and actionable while avoiding noise
from assumptions about code not shown in the diff.
* debug: temporarily enable debug output to diagnose empty response
* debug: add API response logging when content is empty
* feat: add structured review format with verdict and overall feedback
- Require short overall feedback summary at the start (1-2 sentences)
- Enforce one of three verdicts at the end: Approved, Approved with recommendations, or Request changes
- Remove debug logging and restore DEBUG_MODE conditional
- Ensure every review has clear approval status1 parent 508d037 commit 7ec19ae
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
222 | 233 | | |
223 | 234 | | |
224 | 235 | | |
| |||
231 | 242 | | |
232 | 243 | | |
233 | 244 | | |
| 245 | + | |
234 | 246 | | |
235 | 247 | | |
236 | 248 | | |
| |||
0 commit comments