If you spent 2023 reading AI content, you learned about prompt engineering — the art of crafting the right text to get a good answer from an LLM. Three years later, "prompt engineering" has quietly been replaced in a lot of serious AI discussion by a new term: context engineering. The shift isn't a rebrand. It reflects a real change in what the discipline covers, driven by changes in how modern AI systems actually work.
This post explains what each term means, why the shift happened, and what context engineering covers that prompt engineering didn't. By the end, you'll understand why job postings in 2026 ask for "context engineers" and not "prompt engineers" — and what the difference is in day-to-day work.
What prompt engineering was
Prompt engineering emerged in 2022–2023 as early LLM users realized that how you ask makes a huge difference to what you get back. A vague question produces a mediocre answer; a well-structured prompt with examples, role setting, and format instructions produces a much better one. The discipline formalized techniques like:
- Few-shot prompting (showing examples of the desired output)
- Chain-of-thought prompting (asking the model to think step-by-step)
- Role prompting ("You are an expert in X...")
- Structured output requests ("Respond in JSON with these fields...")
- Prompt chaining (breaking tasks into sequential prompts)
For a long time, this was enough. The AI systems people interacted with were essentially chat interfaces: user types a prompt, model responds. The whole challenge was writing the prompt well. "Prompt engineer" became a job title; prompt libraries proliferated; whole courses taught the craft.
Prompt engineering as a discipline worked because the surface area of interaction was small. Prompt in, response out. Get the prompt right and you got the response right.
What changed
Between 2023 and 2026, AI systems stopped looking like chat interfaces. Several developments stacked up:
Agentic systems. Modern AI apps don't just answer a prompt — they loop. The agent reads a request, calls tools, reads results, decides next steps, calls more tools, and so on for many iterations before producing a final answer. There's no single "prompt" that defines the interaction; there's a growing conversation plus tool results plus system state.
Tool use and MCP. Agents call external tools (APIs, databases, code execution). Those tools return data that becomes part of the model's context. What tools are available, how their descriptions are written, which ones the agent can discover — all these decisions shape what the model does, and none of them are prompts in the traditional sense.
RAG (retrieval-augmented generation). Many AI apps pull relevant documents from a knowledge base and inject them into context. The retrieval system — what gets retrieved, how it's chunked, how it's ranked — matters as much as the prompt wording.
Long contexts. Context windows grew to 200K+ tokens. Managing what goes into that context, in what order, with what priority, became a non-trivial engineering problem. Writing a great 500-word prompt doesn't help if the surrounding 100K tokens of context are poorly organized.
Multiple models in one system. Production systems route different parts of a task to different models (Haiku for classification, Sonnet for generation, Opus for judgment). The "prompt" for each is embedded in a larger architecture.
Each of these shifts moved the design surface away from "write the right prompt" toward "design the right context the model sees." The old term stopped covering what the job actually was.
What context engineering covers
Context engineering is the broader discipline that replaces (and includes) prompt engineering. The core idea: what matters is the full set of information the model sees when it generates each response — not just the user's current message, but everything feeding into that generation.
A context engineer thinks about:
System prompts and instructions. The classic "prompt engineering" piece. Still matters; still the entry point. But now one component of a larger picture.
Context composition. What goes into the context, in what order, from what sources. For an agent handling a user request: system prompt + user message + relevant retrieved documents + prior conversation turns + tool call history + tool results. All of these are part of context. All need design decisions.
Context budget management. Context has limits — token count, attention bandwidth, cost. Deciding what to include and what to leave out, what to summarize and what to keep in full, is an engineering problem with real trade-offs.
Tool and MCP design. Tool definitions are part of context. A well-named tool with a clear description helps the model use it correctly; a vague one leads to confused tool calls. Choosing which tools to expose and how to describe them is context engineering.
Retrieval design. For RAG systems, the retrieval pipeline is context engineering — what gets indexed, how it's chunked, what gets retrieved for each query, how it's ranked, how it's injected into context.
Memory and state management. For long-running agents, deciding what to remember across turns, what to summarize, when to compress history — all context engineering.
Multi-turn flow design. How a conversation evolves, when to ask clarifying questions, when to break tasks across turns. Shapes what context the model sees at each step.
The old prompt engineering sits inside this broader scope. It's one component — important, but no longer the whole picture.
Prompt engineering is about writing a great prompt. Context engineering is about designing everything the model sees — of which the prompt is one part. The latter is a superset of the former.
Why the shift matters
This isn't just terminology. The shift matters because it reflects where the actual quality bottlenecks moved:
In 2023, prompts were the bottleneck. Models were less capable and more sensitive to prompt wording. A well-crafted prompt could unlock substantially better output. Prompt engineering was high-leverage.
In 2026, context is the bottleneck. Models are more capable and more forgiving of prompt wording. But production systems have complex context (retrieved docs + tool results + conversation history + system instructions). The bottleneck is now whether the right information is in context, in a form the model can use. Prompt wording still matters, but it's not where most output-quality improvements come from anymore.
Teams that stayed focused on prompt tuning while context engineering was becoming the real lever hit diminishing returns. Teams that shifted to context engineering captured bigger quality improvements. The field adjusted.
Concrete things context engineers do
What day-to-day work looks like for someone whose job is context engineering, with examples:
Designing the system prompt + its interactions with everything else. Not just "write a good system prompt" but "write a system prompt that works well when combined with retrieved docs, prior turns, and tool results." Testing combinations, not just the prompt alone.
Deciding what gets retrieved and when. For a RAG system, this means tuning the retriever (what embeddings, what reranker, how many chunks), designing chunking strategies, deciding what to retrieve for different query types.
Designing tool interfaces. What tools to expose, what to call them, how to describe them so the model understands when and how to use them. Trimming tool surfaces that confuse the model.
Managing conversation history. Deciding how much past conversation to keep in context, when to summarize older turns, how to handle context overflow in long sessions.
Prompt caching strategy. Choosing what to put in the cacheable prefix (stable instructions, tool definitions, system context) versus what varies per turn. Shapes cost and latency, not just quality.
Routing between models. Different parts of a task may go to different models. Each needs its own context design.
Measuring what works. Tracking which context changes improved quality, A/B testing variations, instrumenting the context pipeline so improvements can be measured.
None of these look much like "write a better prompt." They look like software engineering problems — information architecture, pipeline design, measurement. Which is exactly what the shift to "context engineering" captures.
Where prompt engineering still matters
It's not that prompt engineering died. The craft of writing clear, well-structured prompts is still foundational — but it's now a prerequisite skill, not the whole discipline. Specific places where prompt-level craft still matters most:
System prompts. These persist across many interactions, so the time invested in getting them right pays off many times over. Classic prompt engineering techniques (clarity, specificity, format instructions, examples) all apply.
Tool descriptions. These act like mini-prompts the model reads when deciding whether to use a tool. Well-written tool descriptions improve tool-use quality meaningfully.
Few-shot examples. For specialized tasks, including a few concrete examples in the context remains one of the highest-leverage techniques. Choosing and writing good examples is prompt-engineering work.
Agent loop prompts. How you instruct an agent to think about its task — "stop and reflect every N steps," "produce a plan first," "use these specific tool-call patterns" — is still prompt-engineering work, embedded in the larger context design.
So the right framing isn't "prompt engineering is dead." It's "prompt engineering became a subset of a broader discipline." People who were good prompt engineers tend to be good context engineers too — the skills carry over, you just apply them in a larger scope.
The underlying principle
The deeper principle behind the shift: AI output quality depends on everything the model sees, not just the user's last message. In 2023, "everything the model sees" was mostly just the prompt (plus a short system message if any). In 2026, "everything the model sees" is a complex assembly from many sources — and designing that assembly is the engineering problem.
This matches how production software engineering typically works. Early in a field, the challenge is making one component work well. As the field matures, the challenge becomes designing systems where many components work together well. AI is going through this transition now. "Prompt engineering" was the single-component phase; "context engineering" is the system-design phase.
Framed this way, the terminology shift makes sense as a maturity marker rather than a fad. The field grew up; the words had to catch up.
Prompt engineering asked "what should the user type?" Context engineering asks "what should the model see?" The second question is bigger — and it's where the quality bottlenecks now live.
What this means for people learning AI today
If you're learning to build with AI in 2026, the skills to invest in look like:
Learn prompt engineering fundamentals. You still need to write good prompts — system prompts, tool descriptions, agent instructions. The classic techniques are still useful. Just don't stop there.
Learn context composition. How to assemble context from multiple sources — static system prompts, dynamic retrieval, tool results, conversation history. How to decide what to include, what to leave out, in what order.
Learn retrieval basics. Even if you're not building a search system, understanding how retrieved content gets into context is important. Chunking, embeddings, reranking — the vocabulary of RAG.
Learn tool design. How to define and describe tools for an agent to use. What makes a tool clear vs confusing. The MCP ecosystem conventions.
Learn to measure. How to evaluate whether a context change improved quality. Instrumentation, A/B testing, LLM-as-judge. Context engineering without measurement is guesswork.
These are mostly software engineering skills applied to AI, more than they are LLM-specific tricks. The field has moved toward "AI is a system engineering discipline" and away from "AI is a prompt-crafting craft." The people who thrive in it look more like full-stack engineers than prompt wizards.
Why the term "context engineering" stuck
A few other terms were floated during the transition — "AI engineering," "agent engineering," "LLM engineering." Each has adherents. But "context engineering" has stuck in the serious practitioner community for a specific reason: it names the actual thing that matters.
"AI engineering" is too broad — covers model training, serving, evaluation, and everything else. "Agent engineering" is too narrow — many useful AI systems aren't agents in the fullest sense. "LLM engineering" is close but doesn't name the specific craft.
"Context engineering" names the specific thing: designing the context the model sees, across all its sources, to produce the desired behavior. It's precise. It describes what the work actually is. It doesn't claim too much or too little.
Whether the term wins out in the long run is uncertain — AI terminology moves fast. But as of 2026, it's the term that best captures what people building serious AI systems actually do.
The takeaway
Prompt engineering was the right concept for 2023, when the main challenge was crafting good prompts for simple chat interactions. Context engineering is the right concept for 2026, when the main challenge is designing the full set of information the model sees across complex multi-component systems. The latter is a superset of the former — the old skills still apply, in a bigger scope.
If you're coming to AI now, learn both. The prompt-engineering fundamentals are foundational. The context-engineering mindset is where the leverage is. People who have both — and increasingly, that's what AI engineering jobs require — are the ones building AI systems that actually work in production.
The field will likely keep evolving terminology as it matures. What won't change is the underlying truth: AI quality depends on the full context the model sees, and designing that context is a serious engineering discipline worth taking seriously.