Background Agents and Bugbot require the Cursor GitHub app to clone repositories and push changes.

Installation

  1. Go to Integrations in Dashboard
  2. Click Connect next to GitHub
  3. Choose repository either All repositories or Selected repositories
To disconnect your GitHub account, return to the integrations dashboard and click Disconnect Account.

Using Agent in GitHub

The GitHub integration enables background agent workflows directly from pull requests and issues. You can trigger an agent to read context, implement fixes, and push commits by commenting @cursor [prompt] on any PR or issue. If you have Bugbot enabled, you can comment @cursor fix to read the suggested fix from Bugbot to trigger a background agent to address the issue.

Permissions

The GitHub app requires specific permissions to work with background agents:
PermissionPurpose
Repository accessClone your code and create working branches
Pull requestsCreate PRs with agent changes for your review
IssuesTrack bugs and tasks that agents discover or fix
Checks and statusesReport on code quality and test results
Actions and workflowsMonitor CI/CD pipelines and deployment status
All permissions follow the principle of least privilege needed for background agent functionality.

Troubleshooting