---
title: "How Baz works"
description: "What happens when you open a pull request: a verified review, help fixing what it finds, and a reviewer that learns from your team after merge."
canonical: "https://baz.ai/docs/how-baz-works"
---

# How Baz works

What happens when you open a pull request: a verified review, help fixing what it finds, and a reviewer that learns from your team after merge.

This page follows a change from the moment you open a pull request to the moment it merges, and shows what Baz does for you at each step.

## The review, end to end

You open a pull request or push new commits. Within minutes, the **Baz Reviewer** check run appears on the PR, and Baz posts one review with inline comments on the lines that matter. You reply in a thread to ask a question, push back, or ask for a fix, and Baz answers there. When the PR merges, Baz learns from how your team resolved the discussion, so the next review fits your codebase better.

### Baz picks up your pull request

Baz reviews pull requests on GitHub, GitLab, Azure DevOps, and Entire the same way. It reads the diff, the surrounding code, and the ticket the PR references (for example `ABC-123` from Jira or Linear), so it can tell an intended behavior change from a bug.

Baz skips a review when it can't or shouldn't help yet. That covers draft PRs (unless **Review draft PRs** is on), branches you told it to ignore, PRs with the `baz: pause` label, and PRs with more than 1,000 changed files. It also skips when your organization hits its usage limit or the author has no paid seat.

### Agents review in parallel

Every enabled agent reviews the change at once: [Code Correctness](/docs/agents/build/code-correctness), [Code Quality](/docs/agents/build/code-quality), [AI Coding Guidelines](/docs/agents/build/ai-coding-guidelines), [Basic Security Patterns](/docs/agents/build/basic-security-patterns), [Advanced Security](/docs/agents/build/advanced-security), and your [custom reviewers](/docs/agents/custom-reviewers). Agents read your code; they do not execute it. If you push while a review is running, Baz moves on to the new commit instead of reviewing stale code.

### Every finding is verified

Each issue an agent raises is independently re-checked before it reaches your pull request. If Baz can't show how the bug is triggered, it doesn't post it. That is why a Baz review is short and worth reading. See [Verification protocol](/docs/concepts/verification-protocol).

### Baz posts one focused review

You get a single review with inline comments, ranked so the most important findings come first and small PRs aren't buried in nits. Each finding comes with a ready-to-use fix prompt, and security findings carry their OWASP category. You can watch every run live in [Sessions](/docs/work/sessions).

### Baz stays with the PR

- Reply in a Baz thread and Baz answers: a question, a disagreement, or a request for a fix.
- On each new commit, Baz checks whether earlier findings were addressed.
- [Fixer](/docs/agents/build/fixer) applies fixes on request, and [Merger](/docs/agents/deploy/merger) tells you when the PR is ready under your rules.
- The [Verification Agent](/docs/agents/deploy/verification-agent) can test the change in a preview environment against the ticket and Figma designs.

### Baz learns after merge

When the PR merges, Baz learns from how your team resolved its discussions, giving more weight to experts and admins. The next review reflects those lessons. Merged PRs also keep your skills current through the [Skill Maintainer](/docs/agents/maintain/skill-maintainer). See [Learning loop](/docs/concepts/learning-loop).

## The lifecycle around the PR

The PR review is one stage. Before code exists, your team can agree on a [plan](/docs/work/plans) with Baz. After the review, [Fixer](/docs/agents/build/fixer) fixes findings, the [Verification Agent](/docs/agents/deploy/verification-agent) checks the change against the ticket, and [Merger](/docs/agents/deploy/merger) tells you when it's ready to merge. Once code ships, the [SRE Agent](/docs/agents/maintain/sre-agent) turns production errors into fix PRs, and the [Full Repo Security Scan](/docs/agents/maintain/full-repo-security-scan) checks the whole codebase on a schedule.

## Where your code goes

Review agents read a checkout of your repository at the PR's head commit. Code runs only where an agent needs it: Fixer and the security scanners run inside an isolated sandbox, and the Verification Agent browses your preview environment. For deployment choices such as self-hosting or keeping code in your own network, see [Data protection](/docs/security/data-protection) and [Deployment options](/docs/admin/deployment-options).

## Related

<CardGroup cols={2}>
  <Card title="Verification protocol" href="/docs/concepts/verification-protocol" icon="shield-check">
    Why every posted finding is worth reading.
  </Card>
  <Card title="Software Factory" href="/docs/concepts/software-factory" icon="layers">
    The agents for every lifecycle stage.
  </Card>
  <Card title="Sessions" href="/docs/work/sessions" icon="activity">
    Watch each stage of a review run.
  </Card>
  <Card title="Session events" href="/docs/reference/session-events" icon="file-code">
    Every timeline event Baz records.
  </Card>
</CardGroup>
