AI PM 10X / CORE SKILLS
Context Engineering
The practice of curating everything that goes into a model's context window so it does the task reliably. It is the broader discipline that prompt engineering sits inside.
Overview
Context engineering is the practice of managing the whole working set a model sees so it can do the task reliably. Prompt engineering is about writing the instruction. Context engineering is the wider job of assembling everything around that instruction, including the system rules, retrieved knowledge, tool definitions and their outputs, the conversation history, and any running state. The context window is finite working memory, so the work is choosing what to put in, what to leave out, and what to summarise or drop.
For product managers it is where a feature stops being a clever prompt and starts being a system. Retrieval is one source of context, which is why RAG lives inside this discipline. Agents make it sharper still, because they must manage context across many turns without the window filling up or drifting off course. Get it right and the model stays grounded and reliable. Get it wrong and you meet the failure modes, where too much irrelevant context distracts the model, a bad fact poisons later turns, and reliability rots as the window grows.
Start here — a 45-minute learning path
Three resources in sequence that cover the definition, the depth, and the practical framework
Philipp Schmid · The clearest plain-English definition of the term and why it matters. Reframes the job from writing one instruction to assembling the whole working set the model sees.
Anthropic · The deepest treatment of the discipline. Covers why the context window is a finite resource, how to curate it, and how to manage it across long agent sessions.
LangChain · A practical taxonomy of the four moves you make on context. Write, select, compress, and isolate. The framework to keep in your head when a feature misbehaves.
Why It Matters for PMs
The window is the product
What a feature can do is bounded by what you put in front of the model. The context window is finite working memory, and curating it is the highest-leverage place a PM can shape behaviour once a feature gets non-trivial.
Prompting sits inside it
Prompt engineering writes the instruction. Context engineering manages the whole set the model sees, including retrieved knowledge, tool outputs, and history. The second is the broader job, and the one that decides whether agents stay reliable.
More is rarely better
Stuffing the window with everything that might help usually hurts. Irrelevant tokens distract the model and bury the signal. Choosing what to leave out is as important as choosing what to put in.
Key Concepts
Three ideas that hold the discipline together. What the window is, what fills it, and how you keep it relevant over time
The context window as working memory
Finite · SharedA model only sees what fits in its context windowcontext windowThe fixed span of text a model can read and reason over in one pass, measured in tokens. Everything you send and everything the model generates competes for that same budget. Once it is full, something has to be dropped or summarised.Anthropic on context windows, a fixed budget measured in tokenstokensThe chunks a model reads text in, roughly three quarters of a word in English. Window sizes and pricing are both counted in tokens, so token budget is the real constraint behind every context decision.OpenAI tokenizer. Instructions, retrieved documents, tool results, and the running conversation all draw from one shared pool. When it fills up, you have to decide what stays.
What goes in the window
Instructions · Knowledge · StateThe working set is more than the user's question. It includes the system promptsystem promptThe standing instructions and persona set before the user's request, for example 'You are a support agent for a banking app. Never give financial advice.' It frames every response in the session.Anthropic on system prompts, retrieved knowledgeretrieved knowledgeInformation pulled in from outside the model at request time, such as documents fetched by retrieval. It grounds the answer in your own data rather than the model's training. RAG is the most common way to supply it.Prompting Guide on RAG, the tool definitions and outputstool definitions and outputsThe descriptions of the tools a model can call and the results those calls return. Each definition and each output spends tokens, so a sprawling tool set can crowd out the rest of the context.Anthropic on tool use, and the conversation so far. The job is fitting the right mix into a budget that is always too small.
Managing context over time
Long tasks · AgentsOver a long task the history grows past the budget, so you have to actively curate it. The main moves are summarisationsummarisationReplacing a long stretch of conversation or tool output with a shorter summary that keeps the essentials. It frees up the window without losing the thread of a long task.Anthropic on context engineering, compactioncompactionCollapsing the running history of an agent into a compact form once it nears the limit, then continuing from that compacted state. Common in coding agents that run for many turns.LangChain on compaction, and pulling in fresh material on demand through retrievalretrievalFetching only the documents relevant to the current step and dropping them once done, rather than holding everything in the window. It keeps the working set small and on-topic.RAG paper (Lewis et al.). Done well, the window stays small and relevant across hundreds of turns.
Core techniques to know
Hover over any technique for a plain-English explanation and a link to go deeper.
Where context comes from
Choose what gets in
Make the window last
What goes wrong
In Practice
Four ways context engineering changes how PMs build and ship AI features
When an AI feature fails, look at the context first
A wrong answer is more often a context problem than a model one. The model may never have seen the fact it needed, or it saw the right fact buried under noise. Before you swap models, audit what was actually in the window for the failing case. The fix is usually to add the missing piece or remove the distracting one.
Treat retrieval as a context decision
RAG is one source feeding the window, and how you chunk, rank, and trim what comes back shapes the answer as much as the retrieval itself. Pulling ten passages when two would do spends budget and lowers quality. Treat retrieval quality and context quality as the same metric, because the user only sees the result.
Agents live or die on context management
An agent that runs for many turns will blow past its window unless something curates the history. Summarisation and compaction keep the working set small enough to stay reliable. When a long-running agent starts drifting or repeating itself, the cause is usually a bloated or poisoned context rather than a weak plan.
A bigger window still requires deliberate curation
It is tempting to read a larger context limit as more room to dump in. Reliability degrades as the window fills, and the model loses track of facts in the middle. Plan for a working set you keep deliberately small. Spend the budget on the few things that matter for the current step rather than everything that might.
Curated Resources
Foundation
The New Skill in AI is Not Prompting, It is Context Engineering
10 min readArticle · Philipp Schmid
The clearest definition of the term. Frames context engineering as assembling the whole working set the model sees, and explains why it has become the harder, more important skill.
Effective context engineering for AI agents
20 min readArticle · Anthropic
The most thorough treatment of the discipline. Why the window is a finite resource, how to curate it, and how to keep agents reliable over long sessions with summarisation and just-in-time retrieval.
Context Engineering for Agents
15 min readArticle · LangChain
A practical taxonomy of four moves on context. Write, select, compress, and isolate. The mental model to reach for when an agent feature starts to misbehave.
Context Engineering Guide
15 min readDocs · DAIR.AI
The community Prompting Guide's reference page on context engineering. A structured catalogue of what context is made of and the techniques for managing it.
Go Deep
Lost in the Middle: How Language Models Use Long Contexts
30 min readPaper · Liu et al., Stanford
The paper that showed models attend best to the start and end of a long context and overlook the middle. The core reason ranking and position matter when you fill the window.
Context Rot: How Increasing Input Tokens Impacts LLM Performance
25 min readPaper · Chroma Research
Empirical study showing model reliability declines as the window grows, well before the hard limit. The evidence behind treating a large context as a cost rather than a free upgrade.
How Long Contexts Fail
12 min readArticle · Drew Breunig
A clear taxonomy of context failure modes, including poisoning, distraction, confusion, and clash. The best short reference for naming what is going wrong in a misbehaving feature.
How to Fix Your Context
12 min readArticle · Drew Breunig
The companion piece, with concrete tactics: retrieval, summarisation, pruning, and isolating context across tools. Read straight after the failure-modes post.
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
35 min readPaper · Lewis et al., Meta AI
The original RAG paper. Retrieval is one of the main sources of context, and this is where the pattern of grounding a model in fetched documents was established.
Videos

LangChain
Context Engineering for Agents
LangChain walks through their write, select, compress, and isolate framework for managing context in agents. The clearest practitioner overview of the discipline.

IBM Technology
What is a Context Window? Unlocking LLM Secrets
A crisp explainer of the context window itself, the finite budget every context decision works within. Start here if the underlying constraint is new to you.

Marina Wyss - AI & Machine Learning
Context Engineering in 29 Minutes: Complete Course
A structured half-hour tour from first principles to practical techniques. A good single sitting to build the whole mental model.

KodeKloud
Why Context Engineering Is the Future of AI
A clear case for why the field has shifted from prompting to context, with worked examples of assembling the working set for an agent.

Prompt Engineering
3 New Context Engineering Skills for Agents
A hands-on look at three concrete context techniques for agents, including how to keep the window small and on-topic across many turns.

Matt Pocock
Most Devs Do Not Understand How Context Windows Work
A sharp, practical correction of common misconceptions about how the window is filled and consumed. Useful for grounding conversations with your engineering team.
Key Takeaway
The context window is finite working memory, and what you put in it sets the ceiling on what a feature can do. Curate it deliberately, leave out as much as you let in, and manage it over time, and you keep an AI feature reliable long after a good prompt alone would have broken down.