Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Context engineering

In plain words

Choosing what a model gets to work with. Give it the facts and rules it needs. Leave out clutter that may confuse the task.

A desk with limited space
Your questionThe 2 documents you addedThe conversation so far
On the desk: the model can read all of this right now
Your other 40 documentsLast week's conversationThe firm's file system
In the cabinet: the model cannot see any of this unless something puts it on the desk

The context window is the size of the desk. Bigger models have bigger desks, but every desk has an edge, and things near the edge get less attention.

The fuller definition

Context engineering is the design of what information reaches a model, when it arrives, and how it is organized and maintained across a task.

Go deeper

One illustrative context budget
Instructions
2,000
Sources and history
8,000
Output reserve
4,000
Unused
2,000

A hypothetical 16,000-token budget. Real limits and token accounting depend on the model. Saving a file outside this budget does not mean it is present in the current context, and a passage inside it is not guaranteed equal attention.

A concrete example

A drafting workflow supplies the relevant record passages, current outline, and unresolved issues instead of an entire unfiltered archive.

The distinction that matters

Adding more material can increase noise, cost, and conflicts rather than improve the answer.

Related terms

Where it is taught

Give AI a brief it can actually follow

Source and further reading

Anthropic · Context engineering

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC