Cooking Agent
A kitchen companion you can talk to. Two halves: a recipe toolkit for
discovery/planning, and a cooking mode that walks you through a recipe
hands‑free. Open the Cook tab in the app, or just ask by voice.
Recipe toolkit
- Find recipes: "something with chicken", "quick pasta", "thai".
- Suggest by constraints:
- number of people → ingredient quantities scale automatically.
- dietary restrictions → vegetarian, vegan, gluten‑free, dairy‑free,
nut‑free, pescatarian, keto (combine as many as you like).
- optional max time, cuisine, meal type.
- Details & summaries: total time (prep + cook), difficulty, servings,
approx calories, the full (scaled) ingredient list, and the steps.
Voice examples:
- "What can I make for 4 people that's vegan in under 30 minutes?"
- "Tell me about the coconut chickpea curry."
Cooking mode
Select a recipe and start a session:
- Step‑by‑step: next / previous / repeat; it always knows the current step
and how many remain, and auto‑completes on the last step.
- Timers: start a named timer from a step ("simmer 10 minutes"), see live
remaining time, and get notified when one finishes.
- Updates by voice: "next step", "how's it going?", "set a timer".
- Outcomes tracked: every attempt is recorded as started, then
finished or abandoned. Per‑recipe and overall stats show times
started, times finished, and completion rate — all persisted durably.
Voice examples:
- "Let's cook the garlic butter pasta." → reads Step 1.
- "Next step." · "Repeat." · "Set a timer." · "I'm done."
HTTP API
GET /recipes list (summaries)
GET /recipes/suggest?people=&diet=&max=&q= filtered suggestions
GET /recipes/:id?servings= full recipe, ingredients scaled
POST /cooking/start {recipeId, servings}
GET /cooking/state current session (+ live timers)
POST /cooking/next | /cooking/prev | /cooking/goto {step}
POST /cooking/timer {label?, seconds?} (omit seconds → use the step's timer)
POST /cooking/complete | /cooking/abandon
GET /cooking/history past attempts
GET /cooking/stats?recipeId= started / finished / completion‑rate
Where it lives (for developers)
services/hub/src/recipes.ts— catalog + search/suggest/scale/summarize.services/hub/src/cooking.ts— session state machine, timers, durable history.services/hub/src/index.ts— the HTTP routes above.services/hub/src/voiceagent.ts— the voice intents.apps/app/cooking.html— the Cook tab UI.- Full requirements:
services/hub/RECIPE_AGENT.md.
Next: Voice Guide · API Reference