# Custom Reviewers

### Custom Reviewer Concept

A custom reviewer is a code review agent that users configure by writing a dedicated reviewer system prompt. This reviewer functions according to the unique configurations set by the user, evolving over time with adjustments. We recommend writing domain & language specific system prompts so Baz will be sure to invoke the correct custom reviewer when your diffs include changes relevant to this review.

<figure><img src="/files/xEr7RXzH3U0qx9eDWNfN" alt=""><figcaption></figcaption></figure>

#### Steps to Implement

1. **Write System Prompt:** Define the criteria and objectives for the review process.
2. **Configure Baz:** Set up the tool to invoke the custom reviewer based on your configurations.
3. **Test on CRs:** Use the Reviewer Creator to test and refine the reviewer prompt on real change requests (CRs).

<figure><img src="/files/3DHb31SgdVv4K2USFMWw" alt=""><figcaption><p>Write and run your own custom code reviewers</p></figcaption></figure>

By fine-tuning the system prompt and managing configurations, users can continually enhance the effectiveness of their custom reviewer.

## FAQ

<details>

<summary>What is a custom reviewer in Baz?</summary>

A custom reviewer is a user-defined agent governed by a system prompt tailored to your domain, rules, or patterns.

</details>

<details>

<summary>How do I create a custom reviewer?</summary>

You write a system prompt defining the behavior, configure where or when it should run, and test it on change requests (e.g. via Playground) to refine it.

</details>

<details>

<summary>When will Baz invoke a custom reviewer vs default reviewers?</summary>

Baz dispatches custom reviewers when diffs match the criteria or contexts you specify. You can tune those triggers (e.g., by file path or rule).

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.baz.co/agents/customized-agents/custom-reviewers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
