> ## Documentation Index
> Fetch the complete documentation index at: https://greenteagentic.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# The Cellar

> Persistent memory that compounds across every brew.

The **Cellar** is your private store of durable knowledge. After every brew finishes, an extractor LLM reads the final Pour and Archive output and proposes 0–5 new entries worth saving. Before every future brew, the Cellar is injected into the system prompt — so each brew starts smarter than the last.

## Entry kinds

| Kind         | What it captures                                          |
| ------------ | --------------------------------------------------------- |
| `fact`       | Durable facts about you, your work, or your domain        |
| `preference` | How you want output shaped (tone, format, length, taboos) |
| `pattern`    | Recurring workflows or structures that worked             |
| `glossary`   | Project-specific terms with crisp definitions             |

Each entry is one short sentence (≤ 280 chars), self-contained, no first-person.

## How injection works

On every stage of every brew, the system prompt is prepended with:

```text theme={null}
The user's persistent Cellar (memory) is below. Honor preferences,
reuse glossary terms, and respect prior patterns.
<<CELLAR>>
{manual_pack if set}
- [preference] Keep tone calm and precise, never salesy.
- [glossary] "Pour" = the final refined output of a brew.
- [fact] User ships Solana-native tools.
...
<</CELLAR>>
```

Entries are ordered by `weight` (descending), then by recency. The default cap is **40 entries** per prompt — tune it under **Cellar → Settings**.

## Managing the Cellar

Open **Cellar** in the sidebar to:

* **Pin** entries (increase their weight)
* **Edit** wording in place
* **Forget** entries you don't want re-injected
* **Disable** the Cellar entirely
* Set a **manual pack** — free-form text that's always prepended above the auto-distilled entries

## Auto-distillation

After each brew transitions to `ready`, the Archivist's output is passed through a small extractor call:

1. Proposes up to 5 candidate entries
2. Lowercase-dedupes against your existing 200 most recent entries
3. Inserts the survivors with `weight = 1`

If the extractor returns nothing useful, nothing is written — the Cellar never grows noisily.

## Privacy

Cellar entries are RLS-scoped to your `auth.uid()`. They are never included in public share links and never leave the AI Gateway calls scoped to your account.
