Feat/v2 agent scanner pr diff annotation#57
Merged
Conversation
- File-by-file scanning via Pydantic-AI Agent with structured FileScanResult output - GitHub integration for inline PR review comments - [CHANGED] line markers when scanning PR diffs or local git changes - Diff parsing helpers (get_pr_changed_line_numbers, get_local_changed_line_numbers) - Agent prompt updated to prioritise [CHANGED] lines while retaining full file context - Eval harness and 5 fixture files for regression testing
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.
⏺ V2 Agent Scanner + PR Diff-Aware Analysis
Summary
This PR introduces a production-ready V2 scanning codepath powered by Pydantic-AI, alongside a smarter PR review mode that focuses the agent's attention on the
lines that actually changed.
What's new
V2 Agent Scanner (core/runner_v2.py, core/code_scanner/agent_scanner.py)
GitHub PR Integration (core/utils/github_integration.py)
PR Diff Annotation (core/utils/file_extractor.py)
new-file line numbers that changed
Eval harness (evals/)
CLAUDE.md