When something breaks in production, the monitoring tool is usually only the beginning of the fix. It gives an engineer the error, the request that triggered it, and the stack trace. The engineer still has to move into the codebase, find the relevant part of the application, work out what changed, make a patch, and open a pull request.
That handoff is where useful context can get lost. The signal lives in one place; the code and review process live somewhere else.
Auto-Fix brings those steps closer together. For an eligible new or returned Incidence, Insider can use the available production context to generate a proposed code change. The proposal is presented inside Insider for an engineer to review. When the engineer accepts it, Insider creates a GitHub draft pull request against the project's configured base branch.
It is a proposed fix, not an automatic deployment. Your team remains in control of what gets written to the repository and what eventually ships.
From Footprints to Incidences
Auto-Fix builds on the way Insider already organizes production signals.
A Footprint captures the context of a request from your application. When similar errors occur, Insider groups their Footprints into an Incidence, giving the team one place to understand and track the problem rather than treating every occurrence as a separate issue.
That distinction matters. Auto-Fix is scheduled when an Incidence is first created or when a previously resolved Incidence returns. It does not generate a new proposal for every repeated occurrence of an Incidence that is already open. A recurring error should not create a new patch request every time another Footprint arrives.
When Auto-Fix can generate a proposal
Auto-Fix is deliberately gated. A proposal is generated only when the project and account meet the requirements for the feature:
- Auto-Fix is enabled for the project. Project opt-in is off by default.
- The account's plan entitlement and monthly proposal allowance permit another proposal.
- The Incidence includes a clear, usable in-app stack frame to guide the proposed change.
- The project has a usable GitHub connection and repository configuration.
- The platform-level Auto-Fix feature flag is enabled.
These checks keep proposal generation tied to projects that are configured for it and to Incidences with enough information to make a useful attempt.
The proposal stays in Insider first
When an eligible Incidence triggers Auto-Fix, Insider creates a FixProposal and stores it in the product. The proposal moves through its generation lifecycle until it is ready for review, or until generation is marked as failed or skipped.
The generated change is not written to your repository at this stage. Nothing is committed, and no pull request is opened just because a proposal has been generated.
On the Incidence detail page, the Auto-Fix review experience presents the proposed changes as a diff. Engineers can inspect the affected files, additions, and deletions before deciding what to do with the proposal. They can discard a proposal or retry generation; accepting it is an explicit action.
Review first. Then create a draft pull request.
Only a teammate with the required project permissions can accept a proposal. That acceptance is the point at which Insider begins writing to GitHub.
Insider creates a branch using the insider/fix/<incidence-id> naming pattern, commits the proposed file changes, and opens a draft pull request against the configured base branch. The resulting pull request URL is saved with the proposal so the team can continue the normal review process in GitHub.
Auto-Fix does not merge the pull request. It does not bypass your review, CI checks, or branch protection rules. The patch remains a draft for your team to inspect, test, discuss, and decide whether to merge.
Guardrails are part of the workflow
The distinction between a generated suggestion and an accepted repository change is intentional:
- Project opt-in: Auto-Fix is disabled for a project until someone enables it.
- Eligibility checks: plan entitlement, usage allowance, stack-frame context, and GitHub configuration are checked before generation.
- No write on generation: proposals are stored and reviewed inside Insider first.
- Explicit acceptance: a permitted engineer must accept the proposal before Insider publishes anything to GitHub.
- Draft PR only: Insider opens a draft pull request; it does not merge code.
Auto-Fix uses the GitHub connection already configured for the project, through its existing OAuth or personal access token setup. It does not require a separate GitHub App installation for this feature.
Getting started
To use Auto-Fix, connect the repository and enable the feature on the project you want to use it with:
- Connect GitHub through the project's integration settings and confirm the repository configuration.
- Enable Auto-Fix in the project's settings. It is off by default.
- Choose the base branch for pull requests. The default is
main. - Open an eligible Incidence and review its proposal when one has been generated.
- Accept the proposal when you're comfortable with the diff to create a GitHub draft pull request.
To start sending production context to Insider, install insider-python or insider-node and configure your project DSN.
Bring the next production error closer to its fix.
Capture request-level Footprints, group related errors into Incidences, and give your team a clearer path from production context to code review.
Start with Insider Read the docs