Skip to content

Improving Claude's PR reviews with risk assessment and multi agent reviews#1641

Merged
dr-bizz merged 5 commits intomainfrom
better-pr-reviews
Feb 27, 2026
Merged

Improving Claude's PR reviews with risk assessment and multi agent reviews#1641
dr-bizz merged 5 commits intomainfrom
better-pr-reviews

Conversation

@dr-bizz
Copy link
Contributor

@dr-bizz dr-bizz commented Feb 25, 2026

Description

With PRs being written faster and with the PR review bottleneck, I wanted to implement a few new features to Claude's PR review command that will help us spread the PR review workload across more devs.

Adding Risk Assessment to the /pr-review command

During the review, it will inform you of a suggested risk assessment. It will score the PR from 0 - 10 on the scale of risk. Depending on what it edits, what time or day it is (Friday), knock on affects etc.

The suggested Risk assessment is a guide to help the dev know who to ask for a review.
Low or Medium risk means an entry-level or mid-level engineer can review it.
Critical or High risk means a senior dev should review it

Again, this is just a suggestion, and nothing is stopping you from asking a senior to review a low-risk PR.

Multi-agent review /agent-review

With the release of teams on Claude, we're able to spin up multiple agents and give each one a skill (an area they are focused on, like Security, Architecture, Data, Testing or UX) which we run 2 rounds of debate to provide deeper analysis and ensure we review the PR with different lenses to ensure we catch errors or bugs that could be released into production.

We should run the ultimate review only once per PR, as it costs $0.80-$2.50 to run.

Screenshot 2026-02-25 at 1 28 34 PM

Checklist:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels (Add the label "Preview" to automatically create a preview environment)
  • I have run the Claude Code /pr-review command locally and fixed any relevant suggestions
  • I have requested a review from another person on the project
  • I have tested my changes in preview or in staging
  • I have cleaned up my commit history

…ling if the PR needs a senior review. I will say that if it says low-risk and you want a senior review, nothing is stopping you from asking for one. This isa just a guide.
…0 each time to run, but will catch a lot of things.
@dr-bizz dr-bizz changed the title Better pr reviews Improving Claude's PR reviews with risk assessment and multi agent reviews Feb 25, 2026
@dr-bizz dr-bizz requested a review from canac February 25, 2026 19:01
@github-actions
Copy link
Contributor

Bundle sizes [mpdx-react]

Compared against 218dce0

No significant changes found

@dr-bizz
Copy link
Contributor Author

dr-bizz commented Feb 25, 2026

Screenshot 2026-02-25 at 1 28 53 PM Screenshot 2026-02-25 at 1 42 04 PM

Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The agent swarm is interesting! I'm wondering if you have any data about it catching more than the original PR review command?

**Model Configuration**:

- Security: Sonnet (deep reasoning needed)
- Architecture: Sonnet (system thinking needed)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not Opus here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think because that would make it super expensive

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've switched them to opus. Good call

@dr-bizz
Copy link
Contributor Author

dr-bizz commented Feb 25, 2026

The agent swarm is interesting! I'm wondering if you have any data about it catching more than the original PR review command?

I do, It caught the cache issue on #1639 when /PR-review missed it.

@dr-bizz dr-bizz merged commit 9f34450 into main Feb 27, 2026
24 checks passed
@dr-bizz dr-bizz deleted the better-pr-reviews branch February 27, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants