Skip to content

Cursor Bugbot Guide (2026): Setup, BUGBOT.md Rules, Autofix and Pricing

8–12 minutes
Woman in a home lab with a PC tower holding a tablet with a BUGBOT card, hook AI catches your bugs

Cursor Bugbot is an AI code reviewer that reads your pull requests and leaves comments on bugs, security issues and code quality problems, often with a one-click fix.

It works with GitHub, GitLab, Bitbucket and Azure DevOps, runs automatically on every PR update, and can be steered with a simple rules file in your repo.

This guide walks through setting Bugbot up, triggering reviews by comment, writing .cursor/BUGBOT.md rules, configuring bugbot.yaml, using Autofix, choosing an effort level, and keeping costs under control now that Bugbot has moved to usage-based billing.

It is based on Cursor’s official Bugbot documentation and help pages as read on 27 November 2026. Where Cursor’s own pages disagree (mainly on pricing), we say so.

TL;DR

  • What: automatic AI pull request reviews from Cursor, with inline comments and suggested fixes.
  • Set up: cursor.com/dashboard/integrations, connect GitHub/GitLab/Bitbucket/Azure DevOps, then choose repos in Bugbot settings.
  • Run by hand: comment bugbot run or cursor review on a PR. Add verbose=true for logs.
  • Rules: put review instructions in .cursor/BUGBOT.md. Normal .cursor/rules/*.mdc files do not apply.
  • Settings in code: .cursor/config/bugbot.yaml for triggers, effort, PR summaries and Autofix.
  • Price: usage-based since mid-2026; Cursor says an average run costs about $1.00 to $1.50. Use “run only once per PR” to save money.

What Is Cursor Bugbot?

Bugbot is Cursor’s automated pull request review product. It analyses the diff of each PR and posts inline comments explaining what looks wrong and how to fix it.

  • Finds: logic bugs, security issues and code quality problems.
  • Runs: automatically on each PR update, or when you ask with a comment.
  • Reads context: existing PR comments (top-level and inline) are used as context.
  • Fixes: each finding can open in Cursor or on the web, and Autofix can push fixes for you.
  • Platforms: GitHub (including Enterprise Server), GitLab (including Self-Hosted), Bitbucket (including Data Center), Azure DevOps Services, and Cursor’s own Origin.

New to Cursor itself? Start with our how to use Cursor AI guide.

Set Up Bugbot

  1. Open cursor.com/dashboard/integrations and go to the Integrations tab.
  2. Connect your provider (GitHub, GitLab, Bitbucket, Azure DevOps or Origin) and finish its setup flow, for example installing the Cursor GitHub app on the repos you choose.
  3. Open Bugbot in Cursor’s Automations page to see your repositories.
  4. On GitHub, Bugbot switches on for the repos you granted access to. On GitLab, Bitbucket, Azure DevOps and Origin, switch it on per repository.
  5. Open or update a pull request. Bugbot reviews it and posts comments within a few minutes.

On a team, members without permission see a Request access button on repos where Bugbot is off. It emails admins a one-click approval link, and the button changes to Requested.

Self-hosted GitHub Enterprise Server, GitLab Self-Hosted and Bitbucket Data Center need extra networking setup; follow the matching integration page in Cursor’s docs.

How Reviews Are Triggered

Trigger How
Automatic Every PR update (each push), unless you change the frequency
Manual comment cursor review or bugbot run on the PR
Verbose run bugbot run verbose=true adds logs, loaded rules and a request ID
From your agent /review-bugbot or /review in Cursor 3.7+, cursor.com/agents or the Cursor CLI, before you open the PR
API (Enterprise) POST https://api.cursor.com/bugbot/review

Comments posted by bot accounts or GitHub Apps do not trigger a review. Running /review locally stores a patch ID, so the matching PR review is skipped and you are not charged twice.

Personal settings let you choose Run only when mentioned, Run only once per PR, and whether to review draft PRs (off by default).

Write Bugbot Rules (BUGBOT.md)

Rules tell Bugbot what matters in your codebase: patterns to flag, conventions to enforce, areas to ignore.

  1. Create .cursor/BUGBOT.md at the root of your repo. It is always included.
  2. Add more BUGBOT.md files in sub-folders for area-specific rules. Bugbot loads the ones found by walking up from each changed file.
  3. Write plain-language instructions, for example: “Flag any SQL built with string concatenation” or “All API handlers must validate input with zod”.
  4. Commit the file. Bugbot reads it from the PR’s base branch.
  5. Run bugbot run verbose=true on a PR to see which rules loaded and whether any were cut off.

Important: Cursor project rules in .cursor/rules/*.mdc do not apply to Bugbot. If you already have editor rules, copy the review-relevant parts into BUGBOT.md. Our Cursor rules guide covers the editor side.

Other rule types

  • Team rules: admins add them in Bugbot settings; they apply to all enabled repos.
  • Repository rules: created in the dashboard with a name, the rule text and optional path globs such as src/components/**.
  • Learned rules: switch on Automatically Learn Rules and Bugbot learns from merged and closed PRs (not available on Azure DevOps).
  • Inline: reply @cursor remember [fact] on a PR to save a rule.

Rules merge in this order: team rules, project BUGBOT.md files, learned rules, then manual rules. Each rule can be up to 30,000 characters, and all rules combined are capped at 100,000 characters per review.

Configure bugbot.yaml

For settings you want in version control, add .cursor/config/bugbot.yaml (read from the base branch; files over 64 KB are ignored):

triggers:
  drafts: false
  frequency: oncePerPr   # or everyPush
review:
  effort: default        # low | default | high | smart
  incremental: true
prSummary:
  mode: comment          # disabled | description | comment
autofix:
  mode: newBranch        # disabled | newBranch | existingBranch

Precedence is: the PR author’s personal overrides first, then this file, then the dashboard settings. The autofix.mode in the file can only lower the dashboard setting, never raise it.

Fix Findings: Autofix, Fix in Cursor, Fix in Web

  • Fix in Cursor: opens the finding in the Cursor editor with context loaded.
  • Fix in Web: opens a cloud agent at cursor.com/agents.
  • Autofix: automatically starts a Cloud Agent to fix findings, pushes to a branch and comments on the PR.
Autofix mode What happens
Off No automatic fixes
Create New Branch (recommended) Fixes go to a new branch for you to review
Commit to Existing Branch Fixes are committed to the PR branch, at most 3 attempts per PR

GitHub and Origin support both modes; GitLab and Bitbucket only support committing to the existing branch; Azure DevOps supports neither. Autofix uses your default agent model, needs additional usage (prepaid credit or on-demand) and is billed at Cloud Agent rates. Our Cursor pricing guide explains those rates.

Effort Levels

Effort Use when
Low Cheaper reviews with quality close to Default
Default Most PRs
High Risky changes; costs more and may find more bugs
Smart You describe in plain language when to use each level; it looks at the title, author, repo and diff

The docs say effort settings are only for usage-based plans and live under Settings in Bugbot. A Cursor staff reply on the forum in May 2026 described effort as a Team plan feature, so individual access may vary.

Bugbot Pricing in 2026

Cursor announced on 11 May 2026 that Bugbot was moving from per-seat to usage-based billing. The new billing applies from your first renewal after 8 June 2026 (annual plans switch at their next annual renewal).

Item Details
Average cost About $1.00 to $1.50 per run, depending on PR size and complexity (Cursor help page; staff confirmed it is per run, not per PR)
Individuals Included usage first, then on-demand if enabled; otherwise Bugbot pauses until the next cycle
Teams Billed from prepaid credit or on-demand usage (Cursor’s pages word this differently)
Who pays The account that has Bugbot enabled on the repo, not the PR author’s team
Also uses usage Learning runs, @cursor remember and backfills
Too-large PRs Skipped, with no usage recorded
Legacy plan $40/month for up to 200 PRs, or $40 per user per month on Teams

Cursor’s main pricing page still showed the old $40 per month wording when we checked, and no official per-token rate card was published, so check cursor.com/pricing before you budget.

How to keep Bugbot costs down

  • Set frequency: oncePerPr or Run only once so every push does not trigger a paid run.
  • Keep Incremental Review on (default) so later runs only look at new changes.
  • Use Run only when mentioned on busy repos and trigger with bugbot run.
  • Leave draft PR reviews off, and mark generated files with linguist-generated in .gitattributes.
  • Use Low effort for routine PRs and High only on risky ones.

Team Admin Settings

  • Enable or disable repos, and set allowlists (“Only…”) or blocklists (“Everyone but…”) for who uses team licences.
  • The Public repositories switch controls automatic reviews on PRs from outsiders and bots. It is off by default for teams created since 22 October 2026.
  • PR summaries: in the description (default), as a comment, or off.
  • Team rules, Autofix default, effort, and MCP tools (Team and Enterprise).
  • Admin API at api.cursor.com/bugbot/... to list repos, enable repos and manage users, plus an analytics endpoint for review stats.

Use Bugbot as a CI Check

Bugbot reports a status: Cursor Bugbot on GitHub, cursor-bugbot on Bitbucket and cursor-bugbot/review on Azure DevOps. With findings it reports neutral by default. To block merges, enable the fail-on-unresolved option so it reports failure, then make the check required in branch protection. Requiring the check alone does not block merges.

Limits and What Bugbot Skips

  • Very large PRs (by changed lines and diff size) are skipped with a comment asking you to split them.
  • Files marked linguist-generated are skipped and do not count toward size.
  • Files that look like secrets (.env, id_rsa, *.pem, credentials.json, *.tfvars, Terraform state) are never read. .env.example is reviewed.
  • Bot-authored PRs have a per-team review cap.

Troubleshooting

Problem Fix
Bugbot does not review a PR Comment bugbot run verbose=true, check the repo is enabled in Bugbot settings, and confirm the provider integration is installed
Manual command ignored It was posted by a bot or app account; post it as a user
Rules not followed Use .cursor/BUGBOT.md, not .mdc rules; check the verbose table for truncated rules
Reviews on every push cost too much Switch to once per PR or mention-only
“PR too large” comment Split the PR or mark generated files
Autofix does nothing Check additional usage is enabled, your provider supports the mode, and Legacy Privacy Mode is off
Bugbot paused mid-month Included usage ran out and on-demand is off

FAQ

Is Cursor Bugbot free?

No free tier is listed. Bugbot uses included usage on paid plans first and then bills per run, about $1.00 to $1.50 on average.

How do I run Bugbot manually?

Comment bugbot run or cursor review on the pull request.

Does Bugbot work with GitLab?

Yes, including GitLab Self-Hosted. Bitbucket and Azure DevOps are supported too.

Where do Bugbot rules go?

In .cursor/BUGBOT.md at the repo root and optionally in sub-folders. Editor .mdc rules are not used.

Can Bugbot fix the bugs it finds?

Yes. Autofix starts a Cloud Agent that pushes fixes to a new branch or the existing one, billed at Cloud Agent rates.

Does Bugbot read my secrets?

Files that look like credentials, such as .env and private keys, are not read.

Can I use Bugbot without the Cursor editor?

Yes. It runs on your PRs in GitHub, GitLab, Bitbucket or Azure DevOps; you only need a Cursor account with Bugbot enabled.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a home lab with a PC tower holding a tablet with a BUGBOT card, hook AI catches your bugs