Context engineering

Deciding what information goes into the model's context — instructions, documents, examples, history, tool results — and in what order and form.

Last updated: · Markdown version

How to apply it in prompts

What it means
Copy-paste example
<instructions>
You are a support analyst. Answer only from <policy> and <ticket>. If the policy does not cover the case, say so.
</instructions>

<policy>
[paste only the relevant policy section]
</policy>

<ticket>
[paste the ticket]
</ticket>

Task: draft a reply of at most 120 words and name the policy rule you applied.
Opens the analyzer with the prompt prefilled.
Open in Promptea
FAQ
Is context engineering the same as prompt engineering?
It includes it. Prompt engineering focuses on the wording of the request; context engineering also covers which documents, examples, history and tool results are sent along.
How much context is too much?
When added material stops improving your test results. Beyond that it only costs tokens and can bury the facts that matter.