r/azuredevops • u/Competitive_Rate1454 • 19d ago
I built an OpenCode plugin for Azure DevOps PR reviews and compared 12 model configurations on 50 real PRs
I’m the author of AZPR, an MIT-licensed OpenCode plugin for reviewing Azure DevOps Services pull requests from a URL.
Code, setup instructions, screenshots, and demo:
https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2

AZPR reads the source at the PR’s commits without checking out the repository, configuring an MCP server, or adding a CI pipeline. You use the models configured in OpenCode.
The workflow I recommend is:
Run
/pr-review <PR URL> --previewto review the PR and prepare comments without posting them.Inspect the findings, exclude any you don’t want to publish, or change their severity. The model generates a new comment preview without rerunning the review.
Read that preview, then explicitly publish the saved comments. Eligible high- and medium-severity findings can become inline comments; low findings stay in the PR summary.
Review and deep modes use functional and risk reviewers followed by separate model verification against the source. Recent updates also changed how severity is assessed: concrete harm and realistic triggers determine priority, and repeated mistakes are reported separately when each location needs its own fix.
I wanted evidence beyond a demo, so I compared 12 model and reasoning-effort configurations on Martian’s open Code Review Bench: 50 real PRs from cal.com, Discourse, Grafana, Keycloak, and Sentry.
One useful result: more reasoning effort didn’t consistently improve the overall score. With Claude Opus 5.5 across all three review roles, medium and high effort produced similar F2 scores in the initial comparison: 51.6 versus 51.2. High found more reference issues but had lower precision. Extra-high effort produced more findings and a lower F2 score. That comparison used Claude Opus 5.5 as the judge; each configuration ran once.
I then scored the selected medium-effort /pr-deep run using the benchmark pipeline and the dashboard’s default judge, Claude Opus 4.5:
67.7% recall over 158 core reference issues
74.2% recall on High and Critical issues
30.0% benchmark precision
54.1 F2
Compared with the 21 tools displayed in the dashboard’s Core view in our November 6 snapshot, that run would have the highest recall and place sixth by F2. These are self-run results; AZPR is not an official leaderboard entry.
The trade-off is more findings to triage. Unmatched issues count against benchmark precision even when they describe valid problems, but additional comments still require a reviewer’s attention. The preview and adjustment steps let you decide which findings are worth posting.
The benchmark used a local Azure API adapter to serve the GitHub PRs and did not exercise comment planning or publication. All 12 configurations, the scoring method, and limitations are documented here:
AZPR 0.3.5 is tested with OpenCode 2.2.4 on Ubuntu 22.04 / WSL2. Setup requires a tool-capable model and an organization-scoped Azure DevOps PAT. Source context goes to your configured model providers, and reviews and previews can incur charges or consume subscription usage. This is an independent community project, not affiliated with the OpenCode team.
For people reviewing Azure DevOps PRs: would you prefer more candidate findings to inspect, or fewer findings with a stricter cutoff? I’d also appreciate feedback on the setup and preview/publish workflow.
1
19d ago
[removed] — view removed comment
1
u/Competitive_Rate1454 19d ago
Fair point. The preview keeps unwanted comments off the PR, but someone still has to read and filter the findings, and that's work even when a finding is technically correct.
For publication, only eligible High and Medium findings become inline comments; Low findings stay in the summary. That reduces inline comments, but it doesn't reduce the initial list you have to assess. I haven't measured whether the workflow saves reviewers time overall. I can see the value in a shorter initial list with the rest available on demand.
What tends to make AI review findings unhelpful in your workflow—weak evidence, unclear impact, or being outside the PR's scope?
1
18d ago
[removed] — view removed comment
1
u/Competitive_Rate1454 17d ago
Solid idea. AZPR’s prompts ask for trigger and impact in the detailed findings, but the overview table lists severity, summary and location. A short “trigger → affected behavior” line would be useful, with the path inferred from the code clearly labeled as analysis, not an executed reproduction.
1
u/fell_ware_1990 19d ago
Well, i’ll wonder why the hardway?
I’ll just do a /pr ado <number> and my SDK runs a review. Not only does it first gathers a whole lot of information with scripts, it also has access to my notes about the repository so it knows to not bother me right now with or recommend fixes on code that is ‘old’ but requires a complete refactor which is incoming.
But it still notes does findings down to be triaged when we will refactor it. If set it up to also look really closely at the scope of the PR cause a lot of those AI findings are not in the scope. Yes you should fix easy stuff if you find it but with our old code base it basically means everything is in scope.
I think you should be able to ramp up reviewing from a ‘just get it shipped without breaking or security issues’ to i want it ‘finetuned’. This is the later step but for that it needs to know your code base. I always feel else it will introduce correct fixes but breaking changes somewhere else.