Skip to main content
Every brew runs through five sequential stages. Each stage is a single LLM call with a stage-specific prompt and JSON schema, owned by a specialized agent.

Per-brew output schemas

Research Brew

Prompt Brew

Strategy Brew

Context Cleanse

Critique Brew

Critique Brews skip the Steep stage — the user-supplied draft is treated as the first draft, and the Critic + Refiner sharpen it directly.

Cellar injection

Before every stage, the user’s Cellar (durable facts, preferences, patterns, glossary terms) is loaded and prepended to the system prompt inside a <<CELLAR>> block. After the final stage, an extractor LLM proposes 0–5 new entries from the Pour + Archive output and writes any non-duplicates back to the Cellar.

Live updates

brew_steps rows are updated in place as each stage completes. The UI polls these rows so the user sees the kettle progressing in real time.

Fallbacks

If TEAGENTIC_AI_KEY is missing or the AI Gateway fails, each stage falls back to a deterministic mock so the app stays demoable. See AI Gateway.