Foundations

Context engineering

Also called: context management

Context engineering is the discipline of deciding what a model sees. Since a model can only work from the text in front of it, the quality of any answer is capped by the quality of the context you assemble.

James Phoenix
Understanding Data Updated July 3, 2026

Context engineering is the craft of deciding what a model sees. A model has no memory of you and no access to your world beyond the text in front of it, so the quality of any answer is capped by the quality of the context you assemble. Prompt engineering is about wording a single request well. Context engineering is the larger job: getting the right information into the window at the right time, and keeping the wrong information out.

Why it is the real work

As models get better at following instructions, the bottleneck moves. The scarce skill is no longer clever phrasing, it is curation: which files, which examples, which history, which tools, in what order, inside a finite context window. Every technique in this dictionary is a move in that game.

The three moves

  • Get the right stuff in. Retrieval, RAG, tool results, worked examples.
  • Keep the wrong stuff out. Prune finished work, summarise old history, do not paste whole files. More context is not better context.
  • Shape what remains. Order matters and format matters, and long windows degrade, so put what counts where the model actually attends (see lost in the middle).
Note
A useful mental model: you are not writing a prompt, you are packing a suitcase. The window is fixed, everything you add crowds out something else, and the skill is bringing exactly what the trip needs.

Related terms

Engineering context for real systems?

Getting the right information into the window at the right time is most of the job. If you want that thinking applied to your product, that is what I do.

See how I can help