---
title: "How memory works"
description: "Baz learns from how your team resolves review discussions, so the same mistake or false positive doesn't come back on the next pull request."
canonical: "https://baz.ai/docs/brain/how-memory-works"
---

# How memory works

Baz learns from how your team resolves review discussions, so the same mistake or false positive doesn't come back on the next pull request.

Most AI reviewers forget a correction as soon as the pull request closes. Baz remembers it. When you explain why a finding is wrong, or why your team does something a certain way, Baz turns that into a memory and applies it on every future review.

## What this means for you

- **You correct Baz once.** Push back on a finding with a reason, and Baz won't raise the same false positive again.
- **Reviews fit your codebase.** Conventions your team states in review threads become guidance every agent follows, in the repositories and paths they apply to.
- **Nothing slows down.** Learning happens after the pull request merges, so reviews never wait on it.
- **Every finding respects memory.** Before Baz posts a finding, it checks your memories for that exact case. If a memory says the behavior is intended, the finding isn't posted.

## How a discussion becomes a memory

1. Baz posts a finding on your pull request.
2. You reply with a reason: a fix you want, a boundary, or a convention your team follows.
3. The pull request merges.
4. Baz turns your reason into a narrow guideline. If a matching memory already exists, Baz reinforces or refines it instead of adding a duplicate. If your reply contradicts an existing memory, Baz records that on the memory so you can review it.

Replies like "thanks", "done", "later", or a rejection with no reason don't create memories. Neither does a reply that asks Baz not to remember. Memories a person wrote are never rewritten by Baz; new feedback only reinforces them.

## What you see

Each memory shows the rule, the discussions it came from, its scope (one agent or every agent, one repository or every repository), and its categories. Baz also tracks where each memory applied: the pull requests it shaped and the findings it prevented. A memory that prevents findings is one that keeps a known false positive from coming back.

## How to influence it

- **Choose who teaches Baz.** **Who can contribute to memories** accepts **All users**, **Experts and admins**, or **Admins only**. Replies from anyone else are ignored for learning.
- **Turn memories on or off.** New memories can start active or disabled, depending on your settings. Toggle any memory from [Reviewer memory](/docs/brain/reviewer-memory).
- **Write your own.** Add memories, skills, and instructions directly. See [Skills and instructions](/docs/brain/skills-and-instructions).
- **Give reasons.** A reply that explains why teaches Baz far more than a bare "no".

## Related

<CardGroup cols={2}>
  <Card title="Verification protocol" href="/docs/concepts/verification-protocol" icon="shield-check">
    How every finding is independently re-checked.
  </Card>
  <Card title="Learning loop" href="/docs/concepts/learning-loop" icon="refresh-cw">
    Memories and skills working together.
  </Card>
  <Card title="Reviewer memory" href="/docs/brain/reviewer-memory" icon="history">
    The memories a single agent uses.
  </Card>
</CardGroup>
