#### AI features

# How do I set up and customize Bugbot?

Bugbot reviews your pull requests and catches bugs, security issues, and code quality problems.

## Can Grok Build review my PRs?

Yes, Bugbot is Grok Build's automated PR review product. It analyzes every pull request for bugs, security vulnerabilities, and code quality issues, leaving inline comments with explanations and suggested fixes.

## What is Bugbot?

Bugbot analyzes PR diffs and leaves comments with explanations and fix suggestions. It runs automatically on each PR update, or you can trigger it manually.

Some Teams and Individual plans include monthly Bugbot usage. You can enable usage-based billing for reviews on all PRs.

## How do I set up Bugbot?

1. Go to [grok.com/dashboard/integrations](https://grok.com/dashboard/integrations)
2. Navigate to the **Integrations** tab
3. Connect your repository provider
4. Follow the provider setup flow
5. Open [Bugbot in Automations](https://cursor.com/automations/from-cursor/bugbot) to manage which repositories Bugbot reviews

> [!NOTE]
>
> On GitHub, connecting turns Bugbot on for the repositories you grant access to. Repositories stay off when someone who isn't a team admin connects an enterprise team, or a team that already has Bugbot on. On GitLab, Bitbucket, Azure DevOps, and Origin, turn Bugbot on per repository.

For setup details, see the [GitHub](/build/agents-window/integrations/github), [GitLab](/build/agents-window/integrations/gitlab), [Bitbucket](/build/agents-window/integrations/bitbucket), or [Azure DevOps](/build/agents-window/integrations/azure-devops#set-up-bugbot) integration pages.

## How do I trigger a review?

Bugbot runs automatically when a PR is created or updated. To trigger a review manually, comment `cursor review` or `bugbot run` on any PR.

## How do I customize what Bugbot checks?

Create `.cursor/BUGBOT.md` files in your repository to give Bugbot project-specific review guidelines. Bugbot always includes the root file and traverses upward from changed files to find relevant context.

Team admins can also create organization-wide rules in [Bugbot Automations](https://cursor.com/automations/from-cursor/bugbot).

Grok Build [project rules](/build/agents-window/rules) (`*.mdc` files in `.cursor/rules/`) do not apply to Bugbot runs. Use `.cursor/BUGBOT.md` or rules configured in Automations instead.

Rules are limited to 30,000 characters each, and 100,000 characters combined per review. See [Bugbot](/build/agents-window/bugbot#rule-limits) for details.

## How do I turn Bugbot learning on or off?

Learning is set per organization.

1. Open [Bugbot in Automations](https://cursor.com/automations/from-cursor/bugbot)
2. Go to **Organizations** and select the organization
3. Turn **Automatically Learn Rules** on or off

Learning uses Bugbot usage. Bugbot runs a learning pass each time a pull request is merged or closed, and it posts nothing on the pull request. On a personal account, running Bugbot **only when mentioned** also skips that pass. A team member's personal setting doesn't stop learning for the team. `@cursor remember` and a manual backfill use Bugbot usage too.

See [Bugbot](/build/agents-window/bugbot#learned-rules) for details.

## How do I check which rules Bugbot used?

Comment `bugbot run verbose=true` or `cursor review verbose=true` on the pull request. Bugbot replies with a table of the rules included in that review and flags any that were truncated or omitted. See [Bugbot](/build/agents-window/bugbot#see-which-rules-a-review-used) for details.

## What does Bugbot include?

Bugbot includes reviews on all PRs across your repositories, access to Bugbot rules, and the ability to set the effort level Bugbot uses for reviews.

Bugbot Teams includes code reviews on all PRs, analytics and reporting, effort level controls, and advanced rules and settings.

See the [full pricing details](/build/agents-window/bugbot#pricing).

## How do I fix Bugbot not reviewing my PRs?

1. Comment `cursor review verbose=true` or `bugbot run verbose=true` on the PR for detailed logs, which Bugbot rules loaded, and a request ID
2. Check that Bugbot has repository access in [Automations](https://cursor.com/automations/from-cursor/bugbot)
3. Verify your repository provider integration is installed and enabled for the repository

Include the request ID from verbose mode when reporting issues to support.

## Related

* [Bugbot reference](/build/agents-window/bugbot)
