Per-brew output schemas
Research Brew
Prompt Brew
Strategy Brew
Context Cleanse
Critique Brew
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
IfTEAGENTIC_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.