-
Notifications
You must be signed in to change notification settings - Fork 1
feat: improve AI reviewer assumption handling to reduce spam #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
AI Code Review❌ Error: AI returned empty response Review by Friendly AI Reviewer - made with ❤️ |
AI Code Review❌ Error: AI returned empty response Review by Friendly AI Reviewer - made with ❤️ |
AI Code Review🔴 Critical IssuesSecurity Vulnerability - Debug Logging Exposes Sensitive Data
Cannot Verify from Diff - Please Confirm
🟡 High-Value ImprovementsPrompt Enhancement (Excellent)
🟢 Code Quality NotesBest Practices
Performance
Review by Friendly AI Reviewer - made with ❤️ |
- 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 status
AI Code ReviewOverall Feedback: The prompt improvements effectively address spam concerns by establishing clear rules for handling missing context and enforcing structured review output. The changes are well-structured and should significantly improve review quality. Detailed Findings:
✅ Approved Review by Friendly AI Reviewer - made with ❤️ |
Summary
Changes
Updated the AI reviewer prompt in
ai-reviewer.shto handle assumptions more carefully:Test plan