Fix PR review agent to post inline comments and only review changed code#1485
Merged
dgageot merged 1 commit intodocker:mainfrom Jan 23, 2026
Conversation
Two issues fixed: 1. Agent was commenting on existing code near changes, not just changed lines - Added CRITICAL RULE sections to all three agents - Verifier now DISMISSes issues not in changed code - REQUEST_CHANGES only allowed for bugs in changed code 2. Agent stopped posting inline comments, put everything in body instead - Added structured output format (FILE/LINE/SEVERITY/ISSUE/DETAILS) - Requires exact line numbers, not "around line X" - Clear instructions for converting to gh api JSON format - Verifier preserves structured format with VERDICT field
dgageot
approved these changes
Jan 23, 2026
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.
Fix PR review agent to (1) only comment on changed code and (2) post inline comments at the correct line numbers.
Problems
1. Reviewing existing code
The agent was finding bugs in existing code near the PR changes and reporting them. Example from PR #1391: flagged issues in
Rerank()with note "existing code, not changed by this PR".2. No inline comments
The agent used to post inline comments at specific lines but stopped doing so. All issues were dumped into the review body instead of being attached to the relevant lines.
Solution
Only review changed code
Restore inline comments
The old config had a single agent that directly posted. The multi-agent refactor broke the data flow.
Fixed by adding structured output format:
gh apiJSON