[DEVEX-1523] Overhaul AI reviewer prompt to reduce noise#124
Conversation
PR SummaryLow Risk Overview Adds a configurable Reviewed by Cursor Bugbot for commit 818d233. Bugbot is set up for automated code reviews on this repo. Configure here. |
3953f4f to
2d5b60c
Compare
2d5b60c to
c469e1f
Compare
- Check existing review threads before posting; never re-raise issues a human already responded to - Three clear options: silent approve, inline comments only, or defer on complex PRs - No summary comments on approval — just approve silently - Skip very large diffs (>1500 lines) entirely - Never post duplicate comments Co-authored-by: Cursor <cursoragent@cursor.com>
c469e1f to
818d233
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 818d233. Configure here.
| 2. If the diff exceeds ${{ inputs.max_diff_lines }} lines changed, or the PR is too complex to confidently review (many files, complex logic across multiple systems, architectural changes), defer to human review: | ||
| `gh pr review ${{ github.event.pull_request.number }} --comment --body "AI Review: Deferring to human review — this PR exceeds the automated review threshold."` | ||
| Then stop. Do NOT approve. Do NOT post inline comments. | ||
| 3. Run `gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments` to read ALL existing inline review comments and reply threads. Also run `gh pr view ${{ github.event.pull_request.number }} --comments` for top-level PR comments. |
There was a problem hiding this comment.
Review comments fetch not paginated
Medium Severity
Step 1 tells the reviewer to load all existing inline comments via gh api, but the command has no --paginate. GitHub returns about 30 review comments per page, so busy PRs can hide older threads and the model may re-raise resolved issues or duplicate comments despite the new rules.
Reviewed by Cursor Bugbot for commit 818d233. Configure here.


Summary
JIRA: DEVEX-1523
Made with Cursor