> ## 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.

# Brews

> The unit of work in Green Teagentic.

A **Brew** is one full run of the agent pipeline against your inputs. Each brew has:

| Field           | Type  | Notes                                                           |
| --------------- | ----- | --------------------------------------------------------------- |
| `id`            | uuid  | Primary key                                                     |
| `user_id`       | uuid  | Owner — RLS scoped                                              |
| `title`         | text  | Human-friendly name                                             |
| `brew_type`     | enum  | `research` \| `prompt` \| `strategy` \| `cleanse` \| `critique` |
| `goal`          | text  | What good output looks like                                     |
| `context`       | text  | Raw leaves (notes, links)                                       |
| `tone`          | text  | e.g. `calm, precise`                                            |
| `output_format` | text  | `bullets`, `report`, `json`, etc.                               |
| `status`        | enum  | `steeping` \| `ready`                                           |
| `final_output`  | jsonb | Output of the **Pour** stage                                    |
| `tea_score`     | int   | 0–100 quality score from the Critic                             |

## Lifecycle

```text theme={null}
created → steeping → (stages run) → ready
                                  ↘ refined  (new brew_outputs row)
                                  ↘ rerun    (steps reset, status → steeping)
                                  ↘ archived as recipe
                                  ↘ shared   (public read-only /b/<slug>)
                                  ↘ distilled into Cellar (memory entries)
```

**Critique Brews** skip the **Steep** stage — your supplied draft *is* the draft. The pipeline runs `Leaves → (skip Steep) → Taste → Pour → Archive`.

## Output shapes

Each brew type has a typed JSON output schema. See [Pipeline](/concepts/pipeline) for per-type schemas.
