Why is context engineering treated as a separate practice from prompt engineering now, when a few years ago both fell under one bucket? Give two or three concrete drivers.
Three drivers forced the split: retrieval and tool use made the instruction a small fraction of the input, context windows grew but effective accuracy did not keep up, and agent loops produced long trajectories whose
Picture how cooking changed over a few years. In 2022 a chef worked from one recipe card with everything they needed to know on it. By 2026 the same chef has a pantry of a thousand ingredients delivered fresh every morning, a brigade of sous-chefs handing things over, a notebook of what regular customers like, and a counter that fits only so many ingredients at once. The recipe card is still important, but writing a perfect card no longer matters as much as managing the pantry, the brigade, and the counter. That is exactly what happened to LLM applications: the instruction is still important, but the work shifted to managing everything around it.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Name the three drivers and explain each with a concrete signature. Retrieval and tool use as default architecture: instruction becomes a small fraction of the input. Context windows growing faster than effective accuracy: lost-in-the-middle, RULER, BABILong establish that the effective budget is smaller than the nominal budget. Agent loops producing trajectory-level state: history, plans, observations, all needing eviction and summarization. Close with the framing: system design versus string wording, and the historical note that the vocabulary stabilized in 2025-2026 to acknowledge work that had been happening for years.
Real products, models, and research that use this idea.
- The rise of RAG-first products like Perplexity (2022 founding, mainstream 2024-2025) where the instruction is short and the heavy lifting is in retrieval and reranking.
- Claude Code and Cursor (2024-2026) where the system prompt is hand-tuned but the engineering value lives in tool wrappers, file-context selection, and trajectory-state management.
- LangGraph's typed-state pattern (2024-2025) which formalized trajectory-level state as a first-class concept distinct from prompt content.
- Mem0, Letta, and Zep (2023-2026) as purpose-built memory frameworks that solve a problem prompt engineering does not even pose.
- The shift from format by example prompting to Pydantic / Zod schema-driven structured output across the major SDKs (2024-2026).
What an interviewer would ask next. Try answering before peeking at the approach.
QDid model capability changes drive the split, or did application architecture drive it?
QWhat would a counterfactual look like where the split never happened?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Pointing at bigger context windows as the only driver, large windows did not solve the problem, they just made the budget question harder by hiding the effective-window limit behind a generous hard limit.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.