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.Documentation Index
Fetch the complete documentation index at: https://greenteagentic.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
| Stage | Agent | Purpose | Output |
|---|---|---|---|
| Leaves | Scout | Frame the topic | {framing, subtopics, assumptions, open_questions} |
| Steep | Brewer | First structured draft | Brew-type schema |
| Taste | Critic | Strengths / weaknesses / score | {strengths, weaknesses, missing, score} |
| Pour | Refiner | Final polished output | Brew-type schema (richer) |
| Archive | Archivist | Reusable recipe | {recipe_name, reusable_steps, memory_pack} |
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.