From Wording to Wiring
Prompt engineering is about one sentence. Context engineering is about the whole pipeline that decides everything the model sees
The One-Line Shift
For a couple of years, the skill everyone chased was prompt engineering - finding the perfect wording for your request. That still matters, but it turns out to be a small slice of the real work. The bigger skill now has a name: context engineering.
What "Context" Actually Means
When an AI model answers, it doesn't see your screen or your project - it only sees a block of text called the context window. Everything it knows in that moment had to be put into that window. That includes a lot more than your message:
Everything that lands in the context window: โข System prompt - the standing instructions / role โข Your message - what you just asked โข Tool definitions- the list of actions it's allowed to take โข Retrieved docs - files, search results, database rows pulled in โข Message history - the whole back-and-forth so far โข Memory - notes it saved from earlier or past sessions โข Output rules - the format you want back
Prompt engineering only touches one of those lines (your message). Context engineering is responsible for all of them, on every turn.
A Picture: The Desk, the Backpack, the Filing Cabinet
Imagine the model is a smart worker solving a problem at a desk:
Only so much fits on it. Whatever is on the desk is what the worker can use right now. Pile too much on and they can't find anything.
Stuff nearby they can grab and put on the desk when needed - files, notes, search results. The skill is grabbing the right thing, not dumping the whole bag out.
Things saved from past sessions. Not on the desk by default, but retrievable when relevant.
Prompt Engineering vs. Context Engineering
They aren't rivals - one lives inside the other. Here's the honest comparison:
PROMPT ENGINEERING CONTEXT ENGINEERING
Scope one instruction the whole set of tokens
Covers your message instructions + docs + memory
+ tools + history + format
State single-turn multi-turn, runs for hours
You optimize better phrasing higher signal-to-noise
Failure looks "it misread me" "it had the wrong info"
The tell you reword you re-wireWhy This Became the Skill of 2026
Two things happened. First, agents stopped being chatbots. A chatbot answers one question with whatever fits in one turn. An agent runs in a loop (you saw this in Level 7), using tools and gathering state, and it has to make a smart decision at step 47 with the leftovers of steps 1-46 cluttering its desk.
Second, teams discovered where agents actually fail. As Sourcegraph put it: a coding agent asked to fix a bug usually doesn't fail because the model can't reason. It fails because a search returned 4,000 results, the agent filled its desk with junk, and the one fact that mattered never made it on. Most production failures are context failures, not model failures.
Where We're Headed in This Level
The discipline organizes into four pillars - Instructions, Retrieval, Memory, and Tools - plus the pipeline that assembles and prunes them each turn. That's the map for the next seven lessons:
66 The attention budget - why the desk is small (the core constraint) 67 Pillar 1: Instructions - what the model knows before it starts 68 Pillar 2: Retrieval - how outside facts get onto the desk 69 Pillar 3: Memory - short-term + long-term remembering 70 Pillar 4: Tools - the actions it can take 71 Assembling it all - the pipeline that picks and prunes 72 When it goes wrong - the failure modes and their fixes
Hands-On: Inventory a Real Context Window
Deliberately designing everything the model sees each turn - instructions, tools, retrieved docs, history, memory, output rules
The block of text the model actually sees; if it is not in there, the model does not know it
Prompt engineering tweaks the message; context engineering designs the whole pipeline around it
The window (desk) is small; retrieval (backpack) and long-term memory (cabinet) feed it on demand
Rewording = prompt engineering; changing what data is fetched/ordered/discarded = context engineering
Agents usually fail from wrong/too much/missing context, not a weak model