r/azuredevops • • 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> --preview to 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:

https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/main/docs/VALIDATION.md#martian-code-review-bench-2026-11-05-and-06

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 Upvotes

11 comments sorted by

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.

1

u/Competitive_Rate1454 19d ago

Thanks for walking through your setup. If you already have a /pr command with your own scripts and repo notes, AZPR probably wouldn't feel simpler to you. What I'm aiming for is a reusable review workflow for Azure DevOps: in review and deep modes, it reads the source at the PR's commits, sends candidate findings through separate verifier sessions, and prepares comments for you to review before publishing.

On scope, the reviewers are instructed to report concrete defects introduced or exposed by the PR, and to exclude unrelated pre-existing issues. AZPR also accepts supplementary context for an individual review, but that isn't the same as your workflow for maintaining team notes and deferred work. The benchmark didn't test that distinction.

How do you switch between "just catch breakage and security issues" and a detailed review in your setup: repo notes, per-run instructions, or both?

1

u/fell_ware_1990 19d ago

They always have the information.

But mostly with just low/medium/high and the last is an extra argument, as focus on XYZ. But i think still having the actual repository information is the part that wins on the long run.

This means it also takes my old comments on the same code along, so if a review is done. It checks the file / lines and checks with treesitter for similar lines.

So if i already commented about it being for a refactor, or can’t touch cause XYZ. It marks it, but it still saves the need to fix it.

1

u/Competitive_Rate1454 17d ago

Makes sense, thanks! Carrying earlier comments forward keeps the issue and the reason it was deferred on record, without treating it as a new fix request in every PR. AZPR only looks up threads on the current PR; it doesn’t automatically retrieve decisions from earlier PRs.

1

u/fell_ware_1990 17d ago

I’m currently also experimenting with a RAG on this.

Basically :

- All code with all commits
- All PR’s connected with commits.
- PR’s connected to comments and commits
- Pipelines, succes, failures and again what commit caused and solved it.
- Work items connected to it.

I want to see what useful history i can get out of it, things like. What fails, what fixes solve the problems, where do we see the same kind of problems.

In the end this could help me lint on code before PR and help with reviews, cause it can check what does part’s did before the PR ( yes i know git history , but not the pipeline fail rate, etc, or why it changed again ).

I’m not a 100% sure what i’ll will get out of it but fun experimenting.

1

u/Competitive_Rate1454 12d ago

Tbh mapping pipeline failures to the commits that fixed them sounds super useful for spotting recurring bugs and which fixes actually stick.

One thing that might get tricky is stale context though, like old PR comments saying "temp fix until the refactor" when that refactor already happened 6 months ago. Retrieval might get messy if it can't tell which old comments still apply.

Definitely curious to see how it pans out!

1

u/fell_ware_1990 12d ago

Luckely you commits are dated, so you can use that haha :)

1

u/[deleted] 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

u/[deleted] 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.