---
title: "Custom reviewers"
description: "Write your own review agent from a prompt, test it on a real pull request in the playground, and use reviewers Baz recommends from your team's past comments."
canonical: "https://baz.ai/docs/agents/custom-reviewers"
---

# Custom reviewers

Write your own review agent from a prompt, test it on a real pull request in the playground, and use reviewers Baz recommends from your team's past comments.

Custom reviewers add review agents that check what only your team knows: domain rules, framework conventions, or lessons from past incidents. You write the prompt, or start from one Baz recommends from recurring feedback in your merged pull requests, test it on a real change, and activate it. Custom reviewer findings are posted alongside the Build agents, tagged with the reviewer's name.

:::tip
If the rule is already written in a `CLAUDE.md`, `AGENTS.md`, Cursor rule, or skill, you do not need a custom reviewer. [AI Coding Guidelines](/docs/agents/build/ai-coding-guidelines) enforces those files directly.
:::

## Create a reviewer

<Steps>
  <Step title="Choose a type" icon="layers">
    Open the **Reviewer Creator** and pick a type under **Choose your reviewer type**: Code Quality & Maintainability, Architecture & Design, Security, Performance, Documentation, Testing, Error Handling, Code Style, API Design, or Other.
  </Step>
  <Step title="Describe it" icon="file-code">
    Enter a **Reviewer title** and a **Short Description**. Baz can generate the prompt from the description, or you write **Your agent prompt** yourself. Write domain and language specific prompts so the reviewer runs only where it applies.
  </Step>
  <Step title="Test on a real PR" icon="flask-conical">
    In the **Reviewer Playground**, **Select a CR** (an open pull request under 100 files) and run the prompt. The **Reviewer comments preview** shows the comments exactly as they would be posted. Use **Improve prompt** and run again until the comments are right.
  </Step>
  <Step title="Scope and activate" icon="check-check">
    Set the repositories and path globs (for example `services/payments/**/*.ts`) under **Reviewer Path**, then **Save & Activate Reviewer**.
  </Step>
</Steps>

For ready-made prompts, browse the **Awesome Reviewers library**, a public collection of reviewer prompts built from review comments in open source repositories.

## Recommended reviewers

Baz reads review comments from your merged pull requests, labels them by topic (for example Concurrency, Error Handling, Database, React, Security, Performance), groups similar feedback, and proposes a reviewer for each recurring theme. Each recommendation includes:

- A reviewer prompt
- The past discussions it is based on
- Suggested paths, as glob patterns
- The category and repository it came from

Inspect the prompt and source discussions, test it in the playground, adjust the scope, and activate it. How often Baz generates recommendations is set by **Recommended agents generation cycle** in [Configurations](/docs/admin/configurations).

## How a custom reviewer runs

A custom reviewer runs only on pull requests that change files in its scope. Its findings are re-checked and capped like the built-in agents, so a new reviewer can't flood your pull requests, and each comment is tagged with the reviewer's name. Replies to its comments feed [memory](/docs/brain/reviewer-memory), and [Evaluation](/docs/insights/evaluation) tracks how often your team accepts its findings.

## Who can edit

On Enterprise plans, editing reviewers and using the playground require the Admin role or Expert status for the repository. On other plans, write access to the repository in your VCS is enough. See [Users and permissions](/docs/admin/users-and-permissions).

## Related

<CardGroup cols={2}>
  <Card title="AI Coding Guidelines" href="/docs/agents/build/ai-coding-guidelines" icon="file-code">
    Enforce rules your team already wrote.
  </Card>
  <Card title="Agent settings" href="/docs/agents/agent-settings" icon="settings">
    Severity, scope, and memory.
  </Card>
  <Card title="Evaluation" href="/docs/insights/evaluation" icon="gauge">
    Acceptance and rejection per reviewer.
  </Card>
</CardGroup>
