Skip to content

AI PR Reviews

An AI PR review adds an AI-powered security reviewer to your pull request workflow. When enabled, Fencer can review the changeset in a pull request and post findings and suggested fixes as comments on it, and on GitHub and Cursor Origin a check run. In the product, each run shows up as an AI PR review on the Agent activity page and in the Credits history.

This is separate from standard Code Scanning, which runs a fixed suite of scanners on a schedule or webhook trigger, and separate from Automated Remediation, which opens a full pull request for a specific vulnerability. An AI PR review focuses on the diff itself and leaving inline suggestions in the same pull request.

  • A plan that includes AI PR reviews. Reviews count against your plan’s AI review limit.
  • A connected source code integration whose repository supports pull requests (GitHub, GitLab, Bitbucket, Azure DevOps, or Cursor Origin — plain Git repositories don’t support this feature).
  • AI PR reviews enabled for the repository or as your organization’s default.

Three settings control reviews, and each one resolves separately: a repository’s own setting wins, otherwise the organization default applies, and all three are off until you turn them on.

  • Enabled — Whether Fencer offers a review on the repository’s new pull requests.
  • Run automatically when a pull request opens — Off by default. When off, Fencer posts an invitation comment on each new pull request and waits for confirmation. On GitHub, check the box in that comment to start the review; on GitLab, Bitbucket, Azure DevOps, and Cursor Origin, reply with /fencer review instead. When on, Fencer skips the invitation and starts a review as soon as the pull request opens.
  • Re-run automatically on each push — Off by default. When on, each new commit pushed to an open pull request starts a fresh review without waiting for confirmation.

Pull requests that Fencer opens itself for an AI fix are not offered a review.

Once started, the review’s progress appears live on the Agent activity page. When it finishes, Fencer posts inline comments on the specific lines with findings, plus a summary comment, and updates the invitation comment to say the review is complete. On GitHub and Cursor Origin, Fencer also syncs a check run (named AI Security Review on GitHub) that fails when the review finds a critical issue and passes otherwise. Cursor Origin has no line-anchored comment API, so on Origin pull requests every finding is collected into the summary comment with a path:line prefix instead of being posted inline.

If the pull request changes while the review is running, Fencer discards the results instead of posting findings for code that no longer matches, and the comment offers a fresh run. Completed and failed reviews also carry the checkbox (GitHub) or the /fencer review reply option so you can re-run them.

If a pull request is merged without addressing a finding, later code scans of the repository keep looking for that vulnerable code and report it as a vulnerability while it remains.

Each finding is classified two ways:

  • Category — a specific finding type (for example, IDOR, SSRF, missing authorization, weak cryptography, business logic flaw), which rolls up into a domain (Authentication, Authorization, Data Handling, Cryptography, API Integration, Concurrency, Configuration, Logic & Design, or Other).
  • Severity (Info through Critical) and Confidence (Low, Medium, High) — tracked separately from category, so you can judge both how serious a finding is and how sure the reviewer is.

Where applicable, a finding includes a suggested fix — a description and, where possible, a suggested patch — shown inline in the review comment. This is a suggestion for you to apply yourself; it does not open a pull request. To have Fencer generate and open a PR for a specific vulnerability, use Automated Remediation from that vulnerability’s detail page instead.

Each comment tells developers how to say whether it helped: react 👍 or 👎 on GitHub and GitLab, like the comment on Azure DevOps, resolve it on Bitbucket, or reply to it on Cursor Origin.

  1. To set the organization default, go to Settings > Organization and find AI PR reviews. Turn on Enable for all repositories by default, and optionally Run reviews automatically when a pull request opens and Re-run reviews automatically on each push. Click Save changes.
  2. To override the default for one repository, open the repository on Posture > Code, go to its Settings tab, and find AI PR Reviews under Automation. Set AI PR reviews for this repository, Run automatically when a pull request opens, and Re-run automatically on each push to Use organization default, or to an explicit on or off value. Repository settings save as soon as you change them.
  3. A repository-level setting always overrides the organization default.

If your repository requires confirmation (the default):

  1. Open a pull request on a repository with AI PR reviews enabled.
  2. Fencer posts an invitation comment. On GitHub, check the box in that comment; on GitLab, Bitbucket, Azure DevOps, or Cursor Origin, reply with /fencer review instead. On GitHub, GitLab, and Bitbucket, only people with write access to the repository can start a review.
  3. Watch progress on the Agent activity page while the review runs.
  4. When it finishes, review the inline findings and summary comment on the pull request itself.

If your repository (or organization) is set to run reviews automatically, this happens without any of the above — a review starts as soon as the pull request is opened, and Fencer posts a comment saying it is running.

Besides pull request reviews, you can have an AI agent review a whole repository once. This needs a plan that includes both AI PR reviews and AI codebase reviews. An AI codebase review is billed on usage, so you approve an estimate before anything runs.

  1. Open the repository on Posture > Code and click Review repository (on the promotion banner, or on the Reviews tab once a review exists).
  2. Fencer analyzes the repository and shows an estimate: the number of files and lines of code. Under Scope and ignore, you can add Notes for the reviewer, a Scope of paths or globs to review, and paths or globs to Ignore. Click Update estimate after changing the scope.
  3. Click Start review.

Only one AI codebase review of a repository can run at a time. Reviews also count against your plan’s review attempts: when they run out, Start review is disabled with No review attempts remaining, and the dialog links to upgrading your plan.

Results appear on the repository’s Reviews tab, with a verdict (from No issues to Critical risk) and the findings. Select a finding to see the flagged code, the recommendation, and a suggested patch. Each run also appears as an AI codebase review on the Agent activity page. Starting a review needs a role that can execute scans.

  • No invitation comment appears — Confirm AI PR reviews are enabled for the repository (or its organization default), that your plan includes AI PR reviews, and that the repository’s provider supports pull requests. Plain Git repositories aren’t eligible. Also check whether the repository is set to run reviews automatically — in that mode, Fencer posts a “running” comment instead of an invitation.
  • The comment says Fencer needs additional access — On GitHub, the checkbox needs the Fencer GitHub App’s updated permissions. An organization admin must approve them on GitHub, and then reopening the pull request turns the comment into the normal invitation.
  • The comment says your organization reached its AI review limit — Upgrade your plan, then check the box (GitHub) or reply with /fencer review again to retry.
  • Checking the box doesn’t start a review — The checkbox only works on GitHub. On GitLab, Bitbucket, Azure DevOps, and Cursor Origin, reply with /fencer review instead.
  • Fencer replies that only people with write access can start a review — On GitLab and Bitbucket, /fencer review starts a review only for someone with write access to the repository. Ask a maintainer to reply with it.
  • No check status on the pull request — Check runs are synced for GitHub and Cursor Origin. Findings still post as comments on GitLab, Bitbucket, and Azure DevOps pull requests.
  • No inline comments on a Cursor Origin pull request — Expected. Origin’s comment API is general-discussion only, so findings are listed in the summary comment with a path:line prefix.