Glossary

Context Engineering

Context engineering is deciding what an AI sees at each step, not just how you word the request.

In plain words

An AI model can only pay attention to a limited amount of text at once. What goes into that space decides how well it works: the instructions, the tools it can use, facts pulled from your files, and the conversation so far. Context engineering is the work of filling that space with the right things and leaving the rest out.

How it differs from prompt engineering

Prompt engineering is about writing good instructions. Context engineering is wider. It manages everything the model sees, and it happens again at every step, each time the system decides what to pass along.

Why it matters

An assistant given the wrong customer record, or too much unrelated text, gives worse answers no matter how well the request is worded. Getting the right information in front of it at the right moment is what makes an automation dependable.

Common techniques for long tasks

  • Compaction: summarizing a long conversation and carrying on from the summary.
  • Note-taking: saving notes outside the conversation and reading them back later.
  • Sub-agents: handing focused jobs to helper agents that return a short summary.

Where the term comes from

This definition follows Anthropic's September 2025 article on the subject. Other writers use the term a little differently.