Browse docs
Connect repositories for Autopilot
Install the Axoryn GitHub App, link repositories to a project, protect the default branch and turn on automatic error fixes.
Autopilot reads your code and opens pull requests through the Axoryn GitHub App. This page shows owners and admins how to install the app, link repositories to a project, set up default-branch protection, and turn on automatic error fixes.
Before you start
- Autopilot runs need the Autopilot plan and an active subscription. See Autopilot.
- Installing the GitHub App on an organization needs a GitHub account that can manage that organization’s apps.
- Automatic error fixes also need a connected Sentry or Rollbar integration. See Connect Sentry.
Install the GitHub App
You can install the app from two places:
- Autopilot page. Open the project, select Autopilot, then select Manage or Fix in the repositories strip. In the Repositories panel, select Install the GitHub App (or Add more GitHub repos once some are installed).
- Account settings → GitHub. Select Account settings and go to the GitHub section (Axoryn GitHub App). Owners and admins see Install GitHub App, Add repositories or Manage repositories. Members see Owners and admins choose which repositories are shared. The GitHub section is hidden on plans without repository access.
On GitHub, pick the repositories Axoryn can access. GitHub then sends you back to Axoryn. When it works, Account settings shows GitHub App connected successfully.
If the app is already installed on GitHub but not connected to your workspace, select Already installed? Connect it in Account settings → GitHub and sign in to GitHub with an account that manages the organization.
Note: The app opens pull requests only. Pull requests only: we never push to your default branch.
If the connection fails
| Message | What to do |
|---|---|
| ”This GitHub installation already belongs to another Axoryn account…” | An administrator of the GitHub organization can uninstall the app on GitHub and install it again from Account settings → GitHub. |
| ”We could not confirm that your GitHub account can access this installation…” | Sign in to GitHub with an account that manages the organization and try again. |
| ”GitHub did not respond, so nothing was connected…” | Try again in a few minutes. |
| ”Your GitHub account has no installation of the app to connect…” | Install the app first. |
Link repositories to a project
Installing the app makes repositories available. Linking tells a project which repositories its fixes may read and open pull requests in.
- Open the project and select Autopilot.
- Select Manage (or Fix) in the repositories strip to open the Repositories panel.
- Under Installed on GitHub, select Link next to a repository, or Link all (N) to link every unlinked one.
Link every codebase the product spans. Investigations read all linked repositories, and one fix can open more than one pull request.
Rules for linking:
- A repository can only belong to one project. A repository linked elsewhere shows Linked to and the other project’s name.
- You can only link a repository the GitHub App can reach. Otherwise the link fails with Install the GitHub App on this repository first.
- Linking a repository starts a Repo onboarding run so the agent can learn the codebase. It uses no credits.
When nothing is installed yet, the panel shows “No repositories are installed yet. Install the GitHub App, then link the repositories this product spans.”
Protect the default branch
“Fixes are delivered as pull requests, so each linked repository needs a protected default branch.” Axoryn reads the repository’s rulesets on GitHub. A default branch counts as protected when an active ruleset targets it, requires a pull request before merging, and has nobody on its bypass list.
The Repositories panel shows the result under each linked repository. A repository not checked yet shows Branch protection not checked yet. with Check protection. The Autopilot page also checks unchecked repositories on its own when it loads.
Fix “The default branch isn’t protected”
Select Fix repository protection under the repository to see the steps, then Open branch settings to go to GitHub:
- Open the repository’s Settings → Rules → Rulesets on GitHub.
- Add a branch ruleset that targets the default branch, with nobody on the bypass list.
- Turn on Require a pull request before merging with at least one approval.
- Set enforcement to Active, save, then select Check again in Axoryn.
Fix “The default branch protection can be bypassed”
- Open the repository’s Settings → Rules → Rulesets on GitHub.
- Open the ruleset that targets the default branch.
- Remove every entry from the Bypass list, including the Axoryn app, organization admins and repository roles.
- Save, then select Check again in Axoryn.
Note: Axoryn reads rulesets only. A classic branch protection rule does not count as protection here.
Suspended GitHub App installations
If GitHub suspends the Axoryn app on an account, the Repositories panel shows The GitHub App is suspended, so the coding agent is paused and lists each suspended account. The repositories strip shows how many installations are suspended.
An owner of that GitHub account can unsuspend the Axoryn app in GitHub settings. Select Open GitHub installations to go there. Runs resume right after.
Turn on automatic error fixes
Automatic error fixes let new errors from your error tracker start an investigation and a reviewed pull request, without you starting each one. They are set per linked repository and error tracker, on the project’s Integrations page, in the Automatic error fixes card. Only owners and admins can turn them on, pause or change them.
- Open the project and select Integrations.
- In Automatic error fixes, select Set up automatic error fixes.
- Fill in the fields below.
- Read What you are agreeing to and check the consent box.
- Select Consent and enable, or Save without enabling to keep it off.
| Field | What it does |
|---|---|
| ”Repository” | A linked repository. |
| ”Error tracker” | A connected integration. Sentry and Rollbar support automatic fixes. Raygun and Better Stack show automatic fixes not supported. |
| ”Budget per fix (USD)“ | AI spend cap for one fix. “One fix includes the investigation, the pull request, reviews and up to 2 reworks.” The help text shows the minimum and maximum. |
| ”Monthly budget (USD)" | "Total for all fixes in a calendar month (UTC).” Must be at least the per-fix budget. |
| ”Which errors are eligible" | "Warning”, Error and Critical. Error and Critical are selected by default. |
What you agree to, as the form states it:
- Axoryn investigates an eligible error, writes a fix and opens a pull request only after an automated review passes. Nothing is merged or deployed automatically.
- Each fix uses 1 credit for the investigation and 5 credits for the pull request.
- AI spend in USD is separate from credits and capped by your per-fix and monthly budgets.
- Errors with unknown severity always wait for you.
- If a fix can’t finish within budget or doesn’t pass review, it is handed back to you with the reason.
Requirements to enable
Axoryn checks these when you enable, resume, or raise a budget or add a severity. If one fails, the form says which:
- The error tracker supports automatic fixes and is active.
- The repository’s GitHub App installation is active.
- The repository’s default branch is protected. If not, the form lists the steps to fix it.
- Your account has enough credits for one full fix (6 credits) and an active subscription.
Raising a budget or adding a severity needs your consent again.
Statuses and controls
Each setup shows its repository, Errors from the tracker, its budgets, eligible severities, and who gave consent and when. Its status is Active, Paused, Off or Consent required.
| Control | Effect |
|---|---|
| ”Pause” / Resume | Pausing stops new automatic fixes, and queued and running fixes stop at their next step. Resuming checks the requirements above again. |
| ”Turn off” | Turns automatic fixes off for this setup. |
| ”Edit” | Changes budgets and severities. |
To pause or resume every setup in the project at once, use Pause or Resume in the automation strip on the Autopilot page. If one setup can’t resume, none of them change and Axoryn shows the reason.