Zenaique

Translate the 'recipe vs kitchen' analogy into the prompt vs context engineering distinction

Flashcard·Easy·4.0 · 0·~30s·Asked atDatadogElasticSierra
Attempt it
TL;DR

Recipe is the instruction text (wording, examples, role priming, formatting).

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Think of a recipe as the page in the cookbook. Mix two cups of flour, beat three eggs, bake at 180. Anyone with the same page should make the same dish, in theory. The kitchen is everything around the page: the fridge, the pantry, the stove, the spice rack, the dishwasher, the prep table, the timer, the trash bin. The same recipe in a kitchen with a broken oven gives you a different dish than the same recipe in a fully stocked professional kitchen. With LLMs, prompt engineering is the recipe page. Context engineering is the kitchen. Two teams can use the same recipe and ship very different products because their kitchens are very different.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Analogies are how teams communicate across disciplines, and the recipe and kitchen framing is one of the cleanest analogies in the LLM application space. The recipe is the visible artifact: the text everyone can read, edit, and reason about. The kitchen is invisible: the infrastructure that decides what gets pulled from the pantry, how it gets prepped, when leftovers get composted, and what the finished plate looks like.

Both halves of the analogy are real engineering work. The mistake teams make is to over-invest in the recipe (because it is visible) and under-invest in the kitchen (because it is hard to see). Most production quality in 2026 comes from kitchen work, retrieval pipelines, memory architecture, tool design, summarization policy, output schema enforcement, even when the team's published prompt is what the world sees.

This question is rated easy because the framing is intuitive. The follow-on questions in interviews are harder because they ask the candidate to actually map each kitchen element to a specific LLM-stack component. Knowing the analogy is the entry point; knowing the mapping is the operational skill.

The recipe in detail

The recipe is the text the model literally reads on each call. It is the prompt-engineering surface, owned by anyone with the prompt file, and includes:

  • The system prompt: the agent's identity, persona, behavior rules, and safety policies. In 2026 production stacks this is usually a 1,500-4,000-token block that opens every call.
  • Tool descriptions (the visible part, the schemas live in the kitchen): the prose that explains what each tool does and when to use it. These ride alongside the tool schemas in the system block.
  • Few-shot examples: demonstration input-output pairs that show the model the shape of the desired response. Used heavily in extraction, classification, and creative tasks.
  • Chain-of-thought scaffolding: explicit instructions to think before answering, or reasoning templates that structure the thought process.
  • Role priming: lines like 'you are an expert legal analyst' that frame the model's persona for the call.
  • Output formatting instructions in prose: 'respond with a bullet list,' 'answer in under 200 words,' 'cite each source.'
  • The user task: the actual question, request, or instruction in the user turn.

All of this is human-readable text that gets serialized to the model. It is version-controlled as a single artifact (often a markdown file or a YAML prompt template). It is fast to iterate on, change the string, run an eval, see the result. Most teams' first month of LLM application work is dominated by recipe-level iteration.

The kitchen in detail
Why most production quality is kitchen work
When the analogy breaks and how to extend it
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.
Kitchen elementLLM counterpartOwned by
Recipe pageSystem prompt + examples + role primingPrompt author / domain expert
PantryVector store + indexed corpusData engineering
Shopping listRetrieval query + top-k policyPlatform engineering
Sous chefReranker (Cohere, Voyage, BGE)Platform engineering
Leftover systemConversation summarizerPlatform engineering
Plating standardOutput schema (Pydantic + structured outputs)API engineering

Real products, models, and research that use this idea.

  • Anthropic Claude Code's CLAUDE.md is the recipe; its tool registry, file-reading routing, compaction, and prompt-caching configuration are the kitchen.
  • GitHub Copilot's system prompt is small and stable; the actual product quality comes from the kitchen: code retrieval across the repo, IDE integration, language-aware context selection.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow does the analogy hold up for agentic systems with sub-agents?
A

Each sub-agent is a station in the kitchen with its own prep area; the orchestrator is the head chef coordinating across stations. The recipe extends to per-station playbooks. The framing scales as long as you remember the kitchen is the whole shop, not just the main line.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Treating prompt engineering as the whole job because that is the visible artifact. The kitchen is most of where production quality is decided, and it is invisible to the user.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Which artifacts belong to the recipe side

  • At least five distinct kitchen elements and what they map to in the LLM stack

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Pick the most effective intervention when an agent's context grows by 8KB every iteration
MCQ·Medium