The Context Engineering Dictionary

The craft of context, defined.

12 plain-English definitions for the techniques that decide what a model sees: retrieval, agent patterns, reliability, evaluation, and the ways long-context systems fail. Every applicable entry comes with a runnable, tested Vercel AI SDK example.

Foundations

Foundations

What context engineering is, and the raw material it works with: the window, the tokens, the prompt.

Retrieval & RAG

Retrieval & RAG

Pulling the right information into the window at the right time, instead of hoping the model already knows it.

Agent patterns

Agent patterns

The shapes an LLM system can take, from fixed workflows to autonomous agents that choose their own path.

Reliability techniques

Reliability techniques

Getting consistent, trustworthy output from a stochastic model that will not give the same answer twice.

Evaluation

Evaluation

Measuring whether your system is actually any good, so you can improve it on purpose rather than by vibes.

Failure modes

Failure modes

The predictable ways long-context systems break, so you can see them coming.

Memory

Memory

Carrying the right state across turns and sessions without drowning the window in history.