---
title: "Fix findings"
description: "Have Fixer turn a Baz finding into a commit on your branch or a new pull request, from your Git provider or the Baz app."
canonical: "https://baz.ai/docs/work/fix-findings"
---

# Fix findings

Have Fixer turn a Baz finding into a commit on your branch or a new pull request, from your Git provider or the Baz app.

Every Baz finding comes with a fix prompt. When [Fixer](/docs/agents/build/fixer) is enabled, Baz can also apply the fix for you: it composes a minimal patch in an isolated sandbox, validates it, and pushes a commit to your branch or opens a new pull request. You trigger it from the comment itself, so fixing a finding takes one click or one reply.

## Before you begin

Turn on Fixer in **Software Factory → Build**. Fixer pushes code, so Baz needs [write access](/docs/connect/github#write-access) to your repository. It also needs a place to run: a [sandbox](/docs/integrations/sandbox) set up for your repository, or the **Generic Runtime** option if you don't have one.

## Ways to start a fix

<Tabs>
  <Tab title="Git provider">
    Fixable comments include **Baz can fix this**.

    - **Check the box.** Tick **Apply fix with Baz** in the comment. Fixer commits the fix to the PR branch.
    - **Reply `apply commit`** to push the fix as a commit on the PR branch.
    - **Reply `apply pr`** to open a separate PR with the fix against your branch.
    - **Reply `apply pr to <branch>`** to open the fix PR against another branch, for example `apply pr to main`.
    - **Reply with changes** to adjust the plan first, for example "use the existing helper instead", then reply `apply commit` or `apply pr`.
  </Tab>
  <Tab title="Baz app">
    On the PR page, open a comment and select **Fix with Baz**, then choose:

    - **Insert new commit** to push the fix to the PR branch.
    - **Open new PR** to open the fix as a separate PR.

    **Fix with Cursor**, **Copy fix prompt**, and **Copy all prompts** hand the fix to your own coding agent instead.
  </Tab>
</Tabs>

## What Fixer does

You reply `apply commit` (or tick the box). The **Baz Fixer** check appears on your PR while Fixer works in an isolated sandbox. It makes the smallest change that fixes the finding and runs your formatter, linter, and type checker on it. If everything passes, the fix lands on your branch as a commit, or as a new PR if you asked for one. If it doesn't pass, Fixer pushes nothing and tells you why.

Every fix run is recorded as a **Fixer session** in [Sessions](/docs/work/sessions), with the sandbox setup, the agent's steps, the validation results, and the commit or the diagnostics. A failed run still tells you why nothing was pushed.

## Update a skill from a comment

Some comments offer to update your AI coding guidelines. Reply `apply skill update`, and Baz turns the discussion into a minimal edit to the matching skill and opens it as a PR. See [Skill learning](/docs/brain/skill-learning).

## Related

<CardGroup cols={2}>
  <Card title="Fixer" href="/docs/agents/build/fixer" icon="wrench">
    Configure Fixer and its environments.
  </Card>
  <Card title="Sandbox" href="/docs/integrations/sandbox" icon="layers">
    Set up the environment Fixer runs in.
  </Card>
  <Card title="PR commands" href="/docs/reference/pr-commands" icon="terminal">
    Every reply command Baz understands.
  </Card>
  <Card title="Pull requests" href="/docs/work/pull-requests" icon="git-pull-request">
    The PR page and comment actions.
  </Card>
</CardGroup>
