---
title: "PR commands"
description: "Comment commands, reply commands, the fix checkbox, and labels that control Baz on a pull request."
canonical: "https://baz.ai/docs/reference/pr-commands"
---

# PR commands

Comment commands, reply commands, the fix checkbox, and labels that control Baz on a pull request.

You talk to Baz in the pull request itself. Baz reads a comment when it mentions Baz by name or when it is a reply in a thread that Baz started, then works out what you are asking for. This page lists the requests Baz recognizes, the exact reply commands for fixes, and the labels Baz reads and writes. On GitLab, everything here applies to merge requests.

## How Baz reads a comment

Baz does not use a fixed command syntax. It reads any comment on the PR that contains the word `baz` (any case), and any reply in a thread Baz started, as long as the reply is meant for Baz and not for another person.

Baz then classifies the intent of the comment. If the comment is addressed to another person, or is human-to-human discussion that only mentions Baz in the third person, Baz does nothing. Comments written by bots that are not linked to your organization are ignored.

:::note
Every request except a review needs the PR author to have a paid Baz seat. Without one, Baz skips the request. See [Users and permissions](/docs/admin/users-and-permissions).
:::

## Mention commands

The phrasings below are examples. Any comment with the same intent works.

| Intent | Example comment | What Baz does |
| --- | --- | --- |
| Review | `baz review` | Runs a full review of the latest commit. A requested review runs even when an automatic one would be skipped: on a draft, with the `baz: pause` label, over the hourly limit, or above 1000 files. |
| Summarize | `Baz summarize` | Posts a summary of the PR. |
| Spec review | `Baz spec review` | Runs the [Verification agent](/docs/agents/deploy/verification-agent) against the linked ticket and design. You can add a preview URL to the comment, for example `baz spec review https://preview.example.com`. |
| Product review | `baz product review` | Reviews the change from a product perspective, against product requirements or user stories. |
| Recheck a finding | `baz, did this fix it?` | Checks whether the latest commits address the Baz comment in this thread. |
| Question | `baz, why is this a problem?` | Answers in the thread, using the code and the diff. |
| Feedback | `baz, this is intentional: the cache is rebuilt on startup` | Acknowledges the pushback in the thread. Baz can resolve the thread, and the explanation is a source for [memories](/docs/brain/how-memory-works) once the PR merges. |

You can also make review, summary, and spec review automatic for every PR in **Settings → Configurations**: **Automatic Review**, **Automatic Summary**, and **Automatic Spec Review**. See [Configurations](/docs/admin/configurations).

:::tip
Feedback works best with a reason. A bare "this is wrong" is ignored, because it gives Baz nothing to learn from. A reply that explains a codebase convention or a constraint is routed as feedback.
:::

## Reply commands in Baz threads

When the [Fixer](/docs/agents/build/fixer) is set up for a repository, Baz comments that it can fix end with **Baz can fix this** and the hint to reply `apply commit` or `apply pr`. Reply in that thread with one of these commands. Baz matches the phrase anywhere in the reply, so `Nice catch, apply pr` works.

Reply `apply commit` to have Baz push the fix straight to your PR branch, or `apply pr` to get the fix in a separate pull request (`apply pr to main` picks its target branch). If the comment came from a Baz skill you disagree with, `apply skill update` changes the skill based on the thread.

Any other reply in the thread changes the plan for the fix before you apply it. On comments from the AI Coding Guidelines agent, the footer also suggests `apply pr to [branch name]` to update your guidelines from the comment, or `apply skill update` when the guideline is a Baz skill.

If the Fixer is not set up for the repository, the comment shows **Want Baz to fix this for you?** with an **Activate Fixer** link instead.

## The fix checkbox

When fixing from comments is enabled, a Baz comment includes a checkbox:

```markdown
- [ ] **Apply fix with Baz**
```

Tick it to start a fix for that comment. Baz rewrites the comment to show who asked for the fix and links to the session logs, and adds a **Baz Fixer** check run while it works. See [Fix findings](/docs/work/fix-findings) for commit and PR modes.

## Replies in pull requests Baz opened

Pull requests that Baz opens (from the Fixer, the SRE agent, a full repository security scan, or the Skill Maintainer) accept plain replies. Reply in a thread to ask a question or to ask for a change, and Baz answers or pushes a follow-up fix to the same PR.

## Labels

You can add two labels yourself. `baz: pause` stops automatic reviews on the PR until the next push after you remove it, though `baz review` still works. `baz-monitor-in-prod` asks Baz, on GitHub, to watch the PR in production after it deploys, which needs the [Datadog](/docs/integrations/observability/datadog) integration.

Baz adds the rest to tell you where a PR stands. Merger writes `baz: ready to merge`, `baz: needs human review`, or `baz: pending` (for drafts). `baz approved` appears when a review finds nothing and the **Baz Approved** toggle is on in Merger settings.

See [Merger](/docs/agents/deploy/merger) for how verdicts are reached.

## Related

<CardGroup cols={2}>
  <Card title="Check runs" href="/docs/reference/check-runs" icon="check-check">
    What the Baz Reviewer and Baz Fixer checks show for each outcome.
  </Card>
  <Card title="Fix findings" href="/docs/work/fix-findings" icon="wrench">
    Fix Baz comments with a commit or a new pull request.
  </Card>
  <Card title="Pull requests" href="/docs/work/pull-requests" icon="git-pull-request">
    Read and act on Baz reviews in your provider and in the Baz app.
  </Card>
  <Card title="Configurations" href="/docs/admin/configurations" icon="settings">
    Turn automatic review, summary, and spec review on or off.
  </Card>
</CardGroup>
