Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Cursor error

Cursor: Agent can't access repository

Error message
Agent can't access repository

Status: WorkaroundLast verified 3 documented fixes1 source

What it means

Cloud Agents or Bugbot cannot reach a GitHub repository through the Cursor GitHub app (documented troubleshooting symptom).

Causes

  • The Cursor GitHub app is not installed with access to the repository.
  • Repository permissions for private repos.
  • GitHub account permissions.

How to fix it

  1. Fix 1.

    Install the GitHub app with repository access, check repository permissions for private repos, and verify your GitHub account permissions.

  2. Fix 2.

    For "Permission denied for pull requests": grant the app write access to pull requests, check branch protection rules, and reinstall if the app installation expired.

  3. Fix 3.

    If the app is not visible in GitHub settings, check whether it is installed at organization level, reinstall from github.com/apps/cursor, or contact support if the installation is corrupted.

More Cursor errors

All 18 Cursor errors

FAQ

What does "Agent can't access repository" mean in Cursor?

Cloud Agents or Bugbot cannot reach a GitHub repository through the Cursor GitHub app (documented troubleshooting symptom).

How do I fix "Agent can't access repository"?

There are 3 documented fixes. Start with the first: Install the GitHub app with repository access, check repository permissions for private repos, and verify your GitHub account permissions.

Is this Cursor error fixed?

Status: Workaround. No release removes the cause. The documented fixes work around it.

Sources

Last verified against 1 source: official docs, maintainer replies and release notes.

Newsletter

Fixes for the tools you use, weekly

One email per week. New coding agent releases, what broke, and how developers are working around it.