By NHI Mgmt Group Editorial TeamPublished 2026-03-16Domain: Agentic AI & NHIsSource: WorkOS

TL;DR: Cursor Bugbot reviews Claude Code pull requests with a separate model, catching different logic, security, and style issues than the generator itself, while reporting 1 million beta PR reviews, 1.5 million issues found, a 76% resolution rate, and 35% autofix merge rate, according to WorkOS. The governance lesson is that review diversity matters more than model sophistication when AI-generated output becomes the baseline.


At a glance

What this is: This is WorkOS’s analysis of using a different AI model to review Claude Code pull requests, with the key finding that model diversity catches errors and blind spots that self-review misses.

Why it matters: It matters because IAM, NHI, and autonomous governance teams need to understand how approval, review, and exception handling change when software generation and review become machine-mediated.

By the numbers:

  • 76%, resolution rate is up to 76%, and the average number of issues caught per run has nearly doubled.

👉 Read WorkOS's guide to cross-model AI code review with Cursor Bugbot


Context

Cross-model review is the practice of using one model to evaluate output produced by another model. In this article, the primary governance question is whether a single AI generator can be trusted to review its own work, especially when the review step is part of the software delivery chain.

For identity teams, the deeper issue is not code quality alone. It is the control assumption that independent review creates a meaningful second line of defence. When generation and review share the same model bias, that assumption weakens for AI-assisted delivery, which affects human oversight, non-human workflow identity, and emerging autonomous patterns alike.


Key questions

Q: How should teams prevent AI code reviewers from reproducing the same blind spots as the generator?

A: Use independent reviewers with different model behavior, different prompts, or different enforcement logic. The point is not to add more automation, but to break correlation between generation and review. If the reviewer shares the same assumptions as the authoring model, it will miss the same edge cases, style failures, and logic gaps.

Q: When does automated code review become a governance risk instead of a productivity gain?

A: It becomes a governance risk when the reviewer can change code, not just comment on it, and when the organization cannot explain who authorised those changes. At that point, the review system is acting as a privileged non-human participant in delivery, which requires clear controls over branch access, logging, and rollback.

Q: What do teams get wrong about policy files for AI review workflows?

A: They often treat policy files as documentation, when they are actually enforcement logic. If rule precedence, override rights, and directory scope are not explicit, the machine reviewer may apply inconsistent standards across branches or teams. The policy layer should be managed like code, with ownership and testing.

Q: How do security teams know whether cross-model review is actually working?

A: Look for reduced repeat defects, fewer unreviewed edge cases, and a clear drop in low-value manual cleanup before human review starts. If the system only produces comments without changing the quality of the baseline PR, the control is adding noise rather than independent verification.


Technical breakdown

Why same-model review misses the same failure modes

When the same model generates and reviews code, it tends to reproduce its own defaults, syntax habits, and error patterns. That creates correlated blind spots. In governance terms, the review step is no longer independent, because the checker and the producer are aligned in training and output preference. Bugbot’s value in this workflow is not that it is smarter, but that it is different. A different model will surface edge cases, style anomalies, and structural mistakes that the generator treated as normal. This is similar to why human peer review works best when reviewers are not already anchored to the original author’s assumptions.

Practical implication: treat model diversity as a control property, not a convenience feature.

Autofix changes the review boundary from comment to commit

The article describes Bugbot’s autofix agents as isolated cloud agents running in their own VMs, able to apply fixes and push commits back to the branch. That moves the system from passive review into delegated execution. The control question changes from "did the reviewer spot an issue" to "who is authorised to alter the code path, and under what review boundary". Once the reviewer can modify source directly, the organization needs clear branch protections, change attribution, and rollback discipline around machine-authored commits. The technical pattern is useful, but it is also a governance escalation because the review system becomes an actor in the delivery chain.

Practical implication: separate detection authority from code-change authority wherever machine fixes are allowed.

Bugbot rules turn review policy into executable guardrails

The .cursor/BUGBOT.md hierarchy described in the article is a policy layer for automated review. Team rules, project rules, and user rules define what the reviewer should flag, block, or enforce. This is important because it turns review from subjective commentary into repeatable enforcement. The mechanism is closer to policy-as-code than to a traditional code review checklist. For identity and access teams, the parallel is straightforward: a machine reviewer with rules is only as strong as the scope, order, and override model behind those rules. If the hierarchy is unclear, so is accountability for what the reviewer can accept or reject.

Practical implication: define rule precedence and override rights before allowing machine-enforced review standards.


Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Same-model review creates correlated blind spots: The article is not just about better code review, it is about the control failure that happens when the generator and the reviewer share the same bias surface. That is a familiar weakness in identity governance too, where a single source of truth can still produce a single line of reasoning. The practitioner takeaway is that independence is a control property, not a staffing detail.

Machine review is becoming a delegated control point, not a helper function: Once autofix can push commits to a branch, the review process stops being advisory and starts participating in change execution. That matters because the review system now touches code integrity, release governance, and accountability for machine-authored changes. The practitioner conclusion is that autonomous commit rights need the same scrutiny as any other privileged non-human access.

Model diversity is a useful named concept for AI-assisted delivery governance: Different reviewers catch different failure modes because they do not share the same defaults, assumptions, or linguistic habits. That is the practical reason cross-model review works, and it is the same reason monoculture is dangerous in identity systems. The field should treat reviewer diversity as an operational control, not as a productivity trick.

BUGBOT.md shows how policy becomes executable when AI enters the delivery chain: Hierarchical rules let teams express review standards in a machine-readable form, but they also make precedence and override logic part of the security model. If the policy tree is vague, the review outcome is vague. Practitioners should read this as an example of how governance moves from documentation into enforcement when non-human actors are allowed to act.

Human review still matters most where judgment, not syntax, is the risk: The article correctly separates mechanical fixes from architectural decisions. That distinction matters across IAM and NHI programmes too, where automation can remove obvious errors but cannot decide intent, risk tolerance, or release acceptance on its own. The conclusion for practitioners is to reserve human oversight for the decisions that change business exposure, not just the ones that change code.

From our research:

  • 44% of developers are reported to follow security best practices for secrets management, according to The State of Secrets in AppSec.
  • Only 27 days is the average estimated time to remediate a leaked secret, despite 75% of organisations expressing strong confidence in their secrets management capabilities.
  • For a broader view of machine identity exposure, see LLMjacking: How Attackers Hijack AI Using Compromised NHIs for how quickly exposed credentials are abused in practice.

What this signals

Model diversity is becoming a governance control, not just an engineering preference: As AI-generated code becomes routine, the review function has to be independent enough to challenge the generator’s defaults. Teams that standardise on a single authoring-and-review model risk turning code review into confirmation bias with better formatting.

The practical signal for IAM and platform teams is that machine-mediated delivery now needs identity boundaries for non-human reviewers, autofix services, and branch-writing agents. That means explicit ownership, scoped permissions, and evidence of who or what is authorised to alter code paths, not just who opened the pull request.


For practitioners

  • Separate generation from review ownership Do not let the same model or the same policy source generate code and certify it without an independent review step. Preserve a distinct reviewer identity, separate approval authority, and traceable change ownership for machine-made pull requests.
  • Treat autofix as privileged change execution If automated fixes can commit to branches, place them behind branch protections, audit logs, and rollback procedures. Review machine-authored commits as privileged changes, not as cosmetic edits, because they can alter release risk and test coverage.
  • Encode review standards in hierarchical rules Use repository-level review policy files to define blocking patterns, required tests, and dependency-change checks. Make the hierarchy explicit so team rules, project rules, and user overrides do not create hidden enforcement gaps.
  • Validate network and access boundaries for review agents If review automation needs inbound connectivity, restrict its network exposure and document any firewall or private connectivity exceptions. The review service should only reach the repositories and endpoints it needs to operate.

Key takeaways

  • Cross-model review works because independent models expose different blind spots, which makes review diversity a control property rather than a convenience.
  • When autofix can commit changes, the review tool becomes a privileged actor in the delivery chain and needs branch, audit, and rollback controls.
  • Teams should encode review standards as executable rules, then govern rule precedence and override rights as part of change management.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10A2Autofix agents can change code, making delegated tool use and approval boundaries relevant.
OWASP Non-Human Identity Top 10NHI-02Bugbot and Autofix behave like privileged non-human identities in the delivery chain.
NIST CSF 2.0PR.AC-4The workflow depends on access control and reviewer authority being clearly separated.

Scope agent write actions tightly and require human approval for code-changing operations.


Key terms

  • Cross-model review: A review pattern where one AI model evaluates work produced by another model. It reduces correlated blind spots by introducing a different training history, different defaults, and different failure patterns into the review step. The control value comes from independence, not from model size or branding.
  • Autofix: An automated remediation workflow in which a machine reviewer not only identifies an issue but also applies a code change. In practice, this shifts the tool from advisory review into delegated execution, which requires clear permission boundaries, auditability, and rollback controls.
  • Review policy hierarchy: The ordered set of rules that determines how review requirements are applied across repositories, folders, teams, and users. The order matters because it decides which policy wins when rules overlap, making precedence and override logic part of the governance model rather than an implementation detail.
  • Machine-authored commit: A source-code change written and pushed by an automated system rather than by a human developer. These commits can improve speed and consistency, but they also expand the set of privileged actors in the delivery chain, so they need the same traceability and control expectations as other high-risk changes.

Deepen your knowledge

Cross-model review, machine-authored commit governance, and non-human change control are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are formalising controls for AI-assisted delivery, it is worth exploring.

This post draws on content published by WorkOS: Using Cursor Bugbot to autoreview and fix Claude Code PRs. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-03-16.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org