Guide Agent Setup

Cursor Bugbot: Set Up PR Reviews and Tag It With bugbot run

Connect the repository once, let it review every push or only when someone comments bugbot run, and teach it your rules in BUGBOT.md.

Last checked against the sources on November 30, 2026

What Cursor Bugbot does

Bugbot is Cursor's pull request reviewer. Once a repository is connected, it reads the diff of each pull request, looks for bugs, security issues and code quality problems, and leaves review comments with an explanation and a suggested fix. It runs on every update to a pull request, or only when someone on the team comments bugbot run or cursor review.

It is set up from Cursor's dashboard, not from a workflow file in your repository, so it works like the hosted @codex review in our Codex GitHub integration guide rather than the workflow-based Claude Code GitHub Actions.

What it means
Triggered byEvery pull request update (automatic review), or a bugbot run or cursor review comment on the pull request
Works withGitHub (including GitHub Enterprise Server), GitLab (including self-hosted), Bitbucket (including Data Center), Azure DevOps Services and Cursor's own Origin
Set up inThe Cursor dashboard: connect source control, then manage repositories under Bugbot in Automations
Posts to GitHub asThe Cursor GitHub App, with review comments and a check named Cursor Bugbot
Fixes what it findsNot by default: each finding has Fix in Cursor and Fix in Web links, and Autofix can hand the findings to a Cloud Agent
Paid withUsage-based Bugbot billing on a personal or team Cursor account

Before you start

  • A Cursor account with Bugbot billing. Individuals subscribe in account settings; teams subscribe from the team dashboard. Teams on the older seat-based Bugbot plan follow Cursor's legacy pricing page instead.
  • For a GitHub organization: Cursor admin access and GitHub organization admin access. Connecting the Cursor GitHub App needs both.
  • For GitHub Enterprise Server: a Cursor team admin, admin rights on the GHES instance, and network access between Cursor and your instance (an IP allowlist, or private connectivity on Enterprise plans). Cursor's GitHub integration page lists the addresses and options.
  • For Autofix only: additional usage available on your account (prepaid credit, or on-demand usage on a legacy Cursor plan), and storage turned on rather than Legacy Privacy Mode.

Connect GitHub and turn Bugbot on

  1. Open Integrations in the Cursor dashboard (cursor.com/dashboard/integrations) and select Connect next to GitHub, or Manage Connections if it is already connected.
  2. Install the Cursor GitHub App and choose Selected repositories rather than All repositories, picking only the repositories Bugbot should review.
  3. Open Bugbot in Automations (cursor.com/automations/from-cursor/bugbot) and check which repositories it is on for. On GitHub, connecting turns Bugbot on for the repositories you granted, except when someone who isn't a team admin connects an enterprise team, or the team already has Bugbot on.
  4. Open a small pull request in one of those repositories. Bugbot reviews it on its own, or comment bugbot run to start a review by hand.

On GitLab, Bitbucket, Azure DevOps and Origin, Bugbot isn't turned on by connecting: switch it on per repository in Automations. Team members who can't change an installation's settings see Request access instead of the switch, which emails the team's admins a one-click link to turn Bugbot on.

Each GitHub App installation belongs to one Cursor account or team. If another Cursor team already owns the installation, connecting it from yours fails, and the owner's admin has to share it with your team from the same Integrations page.

bugbot run, cursor review and automatic reviews

Bugbot has no @ mention for reviews. Either of these comments on a pull request starts one:

bugbot run
cursor review
bugbot run verbose=true
  • Bugbot reads the diff and the pull request's existing comments, top-level and inline, so it builds on what reviewers already said instead of repeating it.
  • verbose=true adds a table of every rule the review used, flags rules that were cut off, and gives a request ID for Cursor support.
  • Bugbot ignores these commands when a bot account or a GitHub App posts them, so another agent can't start reviews by commenting.
  • By default each review after the first looks only at what changed since Bugbot's last review. Turn off Incremental Review in Automations to review the whole diff on every push.
  • Very large pull requests are skipped with a comment asking you to split the change, and a skipped run isn't billed as a review. Files marked linguist-generated in .gitattributes are left out of the review and the size count.

@cursor is a different command. A comment that starts with @cursor on a GitHub pull request or issue starts a Cursor Cloud Agent to do the work in the comment, not a review. Inside Bugbot it has two uses: @cursor remember (see the rules section below) and @cursor push, which applies an Autofix commit to a stacked pull request.

When to review is a setting at three levels. A repository can be set to run only once per pull request. Each person can choose, for their own pull requests, to run Bugbot only when mentioned, only once per pull request, or also on drafts. Team admins can also set a repository to manual trigger only through Bugbot's Admin API (manualTriggerOnly), where bugbot run and cursor review still work but nothing runs on its own.

Configure it per repository in bugbot.yaml

Settings can also live in the repository, in .cursor/config/bugbot.yaml. Every field is optional; this is the full shape from Cursor's docs:

# .cursor/config/bugbot.yaml
version: 1

triggers:
  drafts: false
  frequency: everyPush # everyPush | oncePerPr

review:
  effort: default # low | default | high | smart
  smartPrompt: ""
  incremental: true

prSummary:
  mode: comment # disabled | description | comment
  riskScore: true

autofix:
  mode: disabled # disabled | newBranch | existingBranch
  • Bugbot reads the file from the pull request's base branch, never its head, so a pull request can't change how it is reviewed. Protect the file with CODEOWNERS so changes to it get a named reviewer.
  • A PR author's personal settings win for their own pull requests, then this file, then the team and organization settings in the dashboard.
  • autofix.mode can lower the dashboard's Autofix setting but can't raise it: the file can't turn Autofix on when the dashboard has it off.
  • Effort levels trade review depth against time and usage, and are available only on usage-based Bugbot plans. smart lets Bugbot pick an effort level per pull request from instructions you write in smartPrompt.
  • prSummary sets where Bugbot writes its summary of the pull request: into the description (the dashboard default), as a comment, or not at all.

Teach the review your rules in BUGBOT.md

Bugbot follows rules from four places and merges them into one block for each review, in this order: team rules from the dashboard, .cursor/BUGBOT.md files in the repository, learned rules, then manual rules.

project/
  .cursor/BUGBOT.md          # always included
  backend/
    .cursor/BUGBOT.md        # included when backend files change
  frontend/
    .cursor/BUGBOT.md        # included when frontend files change
  • The root .cursor/BUGBOT.md is always read; nested ones are read when a changed file sits beneath them. That is how each package of a monorepo keeps its own review rules; our piece on coding agent setup on Nx or Turborepo monorepos covers laying those files out.
  • Cursor's project rules in .cursor/rules/*.mdc don't apply to Bugbot. Put review rules in BUGBOT.md, or link a rule file from it; each linked file counts as its own rule.
  • Each rule is cut off at 30,000 characters and the combined rules for one review at 100,000, so keep rules short and specific. Run bugbot run verbose=true to see which made it in.
  • Write each rule as a condition and an outcome, as Cursor's examples do: which files, what pattern, and whether the finding blocks. Start with two or three rules your reviewers keep explaining by hand.
  • Comment @cursor remember followed by a fact on any pull request to save it as a learned rule for future reviews. With Automatically Learn Rules on for the organization, Bugbot also learns rules when pull requests are merged or closed; each learning run uses Bugbot usage, and turning learning off also stops manual rules from applying.

Fixing what Bugbot finds

Each finding comes with Fix in Cursor, which opens it in the editor, and Fix in Web, which opens it in Cursor's agents page. Autofix goes a step further: when a review finds bugs, it starts a Cloud Agent to fix them and comments on the pull request with the result. Turn it on in Bugbot in Automations, where admins set a team default and each person can override it for their own pull requests:

Autofix modeWhat happens
OffNo agent runs; use the Fix in Cursor or Fix in Web links
Create New BranchThe fix goes on a new branch for a person to review and merge. Cursor recommends this mode, and it is available on GitHub and Origin only
Commit to Existing BranchThe fix is pushed to the pull request's own branch, with at most three attempts per pull request. Not on Azure DevOps

On a stacked pull request, whose base isn't the default branch, Commit to Existing Branch delivers the fix on a new branch instead on GitHub, and you apply it by commenting @cursor push with the commit's SHA. Autofix runs on Cloud Agent usage at your plan's rates and uses your default agent model. Your branch rules still apply to anything it pushes; see least-privilege branch protection rules for agent commits.

Making the review count before merge

Every review publishes a GitHub check named Cursor Bugbot (with Autofix on, there can be a separate Cursor Bugbot Autofix check). Its conclusion is one of three:

  • success: no issues found, and no unresolved Bugbot comments from earlier runs.
  • neutral: issues found, the run was cancelled by a newer commit, or Bugbot hit an internal error. This is what a review with findings reports by default.
  • failure: issues found and the check is set to fail on unresolved issues.

Making Cursor Bugbot a required check in branch protection makes sure a review ran before merge, but on its own it doesn't block on findings, because findings report neutral. To block on unresolved findings, turn on fail-on-unresolved-issues where your organization has it. Either way, keep a person as the required reviewer: Bugbot comments, it doesn't approve.

Locking it down

  • Grant the Cursor GitHub App selected repositories only. The same app also serves Cursor's Cloud Agents, and asks for contents, pull requests, issues, checks, actions and workflows, and read access to administration settings. Our piece on GitHub App permission scopes for coding agents covers how to weigh each one.
  • On public repositories, check the Public repositories switch in Bugbot's Team settings: it decides whether automatic reviews cover pull requests from people outside the team and from bots, and it defaults differently depending on when the team was created. It doesn't affect bugbot run comments.
  • On private repositories Bugbot reviews every contributor's pull requests, team member or not. Use the allowlist or blocklist in team settings to choose whose pull requests use the team's Bugbot.
  • Keep Autofix on Create New Branch while the team builds trust in it, so no agent commit lands on a branch without a person merging it.
  • Bugbot skips the contents of files that look like credentials (.env, *.pem, credentials.json, *.tfvars, Terraform state), but still reviews source code that hard-codes a key. Keep secrets out of the repository regardless.
  • Enterprise admins can turn on Protected Git Scopes so only their own Cursor organization can use the GitHub organization's repositories with Bugbot and Cloud Agents.
  • If another agent also reviews or comments on the same repository, make sure neither can set the other off. See running multiple coding agents in the same repository.

When Bugbot doesn't respond

SymptomCheck
No review and no check on a new pull requestBugbot is on for the repository in Automations, the Cursor GitHub App has access to it, and the PR author's personal settings don't say only when mentioned
bugbot run does nothingThe comment was posted by a person, not a bot or app; then comment bugbot run verbose=true for logs and a request ID
Bugbot comments that the pull request is too largeSplit the change, or mark generated files linguist-generated in .gitattributes
A rule is ignoredIt is in .cursor/BUGBOT.md, not .cursor/rules/; check verbose=true for rules that were truncated or omitted
bugbot.yaml changes have no effectThe file is committed on the base branch, under 64 KB, and isn't overridden by the author's personal settings
Connecting GitHub fails with "already connected to another Cursor target"Another Cursor account or team owns the installation; ask its admin to share it with your team
Autofix never runsYour account has additional usage available, storage is on (not Legacy Privacy Mode), and the mode is one your provider supports

What it costs

Bugbot is billed by usage. Each review is billed once, to the personal or team account that has Bugbot on for the repository, whoever wrote the pull request. Rule learning runs and @cursor remember use Bugbot usage too, and higher effort levels use more per review. Autofix bills separately as Cloud Agent usage. Cursor changed Bugbot pricing in May 2026 and rates change, so check Cursor's pricing page for current numbers rather than a figure copied into a guide.

Sources

  1. Bugbot - Cursor Docs
  2. GitHub - Cursor Docs
  3. Cloud Agents - Cursor Docs
  4. Pricing - Cursor

← All guides