feat: improve AI reviewer assumption handling to reduce spam#13
Merged
LearningCircuit merged 4 commits intomainfrom Nov 9, 2025
Merged
feat: improve AI reviewer assumption handling to reduce spam#13LearningCircuit merged 4 commits intomainfrom
LearningCircuit merged 4 commits intomainfrom
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 ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Updated the AI reviewer prompt in
ai-reviewer.shto handle assumptions more carefully:Test plan