Context engineering is the practice of deciding what information, tools and memory a language model sees at each step of a task, and in what form and order. Prompt engineering polishes the instruction. Context engineering designs everything around it, and that surrounding material usually decides whether the answer is right.
- Give the same model the same question with different context and you get different answers. The gap is usually missing information, not wording.
- Context is a finite budget. Anthropic describes models as having an "attention budget" that every extra token draws on.
- Position matters: research found models use information at the start or end of a long input better than information in the middle.
- Retrieve material when a step needs it, and carry short notes forward instead of whole histories.
- Prompt engineering is not dead. It is one layer of context engineering.
- For anyone using an AI builder, context engineering means attaching the right files and stating the facts the model cannot guess.
What is context engineering?
Context engineering is the deliberate design of everything a model can see while it performs a task. That is far more than a single prompt. It includes the instructions, the documents pulled in, the conversation so far, the tools on offer, the results those tools return and any notes carried from earlier steps. Together they form the model's entire world at that moment, and whoever draws the borders of that world decides much of the outcome.
A support assistant shows how the layers combine. To answer "Can I still return these shoes?", it needs the customer's order date from the order system, the current returns policy rather than last year's, a tool to start the return, and a note that the same customer asked yesterday. The question is six words long. The context that makes a correct answer possible is everything else.
The term spread quickly once models started running long, multi-step tasks. Anthropic's engineering team calls context engineering "the natural progression of prompt engineering" and defines it as "the set of strategies for curating and maintaining the optimal set of tokens" a model works with, including everything that lands in its context beyond the prompt (Effective context engineering for AI agents, September 2025).
The prompt is only the most visible layer. Visibility is not the same as influence. The outcome is often set less by the sentence the user typed than by the material arranged behind it.
Context engineering vs prompt engineering
The two are not opposites. Prompt engineering is the part of context engineering that deals with the wording of instructions. The difference is where effort goes and what fails when quality drops.
| Dimension | Prompt engineering | Context engineering |
|---|---|---|
| Unit of work | One instruction | Everything the model sees across a task |
| Usual fix when output is wrong | Reword the request | Add, remove or reorder information |
| Usual cause of failure | Ambiguous wording | Missing, stale, buried or conflicting information |
| How it scales | Rewritten for each task | Reusable sources, templates and memory |
| Main skills | Clear writing, examples, format instructions | Selection, retrieval, ordering, summarising, tool design |
| Who does it | Anyone writing a request | Anyone deciding what to attach, paste, retrieve or remember |
The last row is the one people miss. You do not need to build agents to practise context engineering. Every time you decide which files to attach to a request, which earlier email to paste in or which detail to leave out, you are doing it.
Why the right information beats the right wording
Two people give the same task to the same model. One gets a vague answer, the other a sharp one. More often than not, the difference lies in what the model was given to work with, not in the phrasing.
Take a café owner asking an AI tool for a menu page. Request one says: "Make a beautiful, modern menu page for my café." Request two says less about beauty but attaches the current menu as a PDF, the price list as a spreadsheet and the logo, then adds: "Prices in euros; mark vegan dishes; we close at 3 pm on Sundays." The first request forces the model to invent dishes, prices and opening hours. The second gives it the facts it cannot guess. No amount of polish in request one closes that gap.
This is the main lesson of the shift from prompts to context. Models have become good at understanding instructions, so clever wording explains less and less of the result. What they cannot do is know facts nobody gave them. When the information a task needs is present, even a plain sentence works. When it is missing, the most elegant prompt still produces a confident guess. Our piece on intent fidelity looks at the same gap from the description side.
Why more context is not always better
If information matters so much, why not give the model everything? Because context behaves like a budget, not a warehouse.
Anthropic's team writes that context "must be treated as a finite resource with diminishing marginal returns", and that models have an "attention budget" they draw on as the context grows. They point to research on "context rot": as more tokens are added, a model's ability to recall and use any single piece of information tends to decline.
Position matters too. In a 2023 study, Nelson F. Liu and colleagues found that language model "performance is often highest when relevant information occurs at the beginning or end of the input context" and degrades significantly when the model has to use information buried in the middle of a long context (Lost in the Middle). Three practical rules follow:
- Select, don't dump. Include what the step needs and leave out what it doesn't. Anthropic's guiding principle is to find "the smallest possible set of high-signal tokens" that makes the desired outcome likely.
- Put critical facts where they will be read. Key constraints belong at the start or the end, not in the middle of a long paste.
- Remove contradictions. An old price list next to a new one is worse than either alone, because the model has to guess which is current.
Stale context is the quiet version of the same problem. If an internal assistant still has last quarter's price list among its sources, it will sometimes quote it, however carefully the question is worded. Keeping sources current is as much a part of the job as choosing them.
The building blocks of a context
It helps to name the parts, because each one is a separate design decision.
- Instructions
- The role, goal, constraints and output format. This is where prompt engineering lives.
- Reference material
- Documents, data and examples relevant to the task, either attached up front or retrieved when needed.
- Tools
- The actions the model can take, each with a description that tells it when to use them. Tool descriptions are context too, as covered in tool-using agents.
- Conversation history
- What has been said so far. Useful for continuity, costly when it grows long and full of abandoned ideas.
- Working memory
- Notes, decisions and summaries carried from one step or session to the next.
- Context window
- The limited space that all of the above must share in a single step.
Three techniques manage the time dimension. Just-in-time retrieval keeps lightweight references, such as file names or search queries, and loads the actual content only when a step needs it. Compaction summarises a long conversation into a short brief and continues from that. Structured note-taking has the agent write notes outside the context window and read them back later. These are the mechanics behind agent memory across sessions.
How to design context, step by step
Context design is a sequence, not a pile. When the order breaks, even good information arrives at the wrong moment and loses its value.
- Name what the task needs. Write down the facts, decisions and constraints a competent person would need to do it. A poorly defined need always brings the wrong context.
- Gather the sources. Find the current version of each one: the latest price list, the real opening hours, the approved logo.
- Cut what doesn't serve the task. Remove outdated, duplicated and merely interesting material.
- Order it. Put the goal and hard constraints first and supporting material after, and repeat the single most important constraint at the end if the context is long.
- Decide what to retrieve later. Large or rarely needed material can stay outside the window until a step asks for it.
- Carry forward a summary, not a transcript. Between steps or sessions, pass on the decisions made and the open questions, not every message.
- Check the output against the sources. When something is wrong, ask first what the model was missing, and only then how the request was worded.
Step seven is where the habit changes. A prompt-first reflex rewrites the sentence; a context-first reflex checks the inputs. Writing the needs down in step one also leads naturally to spec-driven development, where a maintained description becomes the most reusable context of all.
Is prompt engineering dead?
The question comes up often, and the honest answer is no. Prompt writing has become one skill inside a broader discipline. A clear instruction still matters, because it tells the model what to do with the context it has. It is simply no longer enough on its own, and it is rarely the lever that fixes a weak result.
What still belongs in the prompt is everything that expresses what you want rather than what is true: the goal in one sentence, the audience, the hard constraints, the output format and one or two examples of a good result. No retrieval system can supply those for you.
What changed is where the difficulty sits. As models get better at following plain instructions, wording gets easier and the hard part moves to deciding what to show and when. Someone who writes good prompts now also needs to know which documents to attach, which history to keep and which details to cut. The two skills have merged into one job.
There is a durability argument too. A brilliant prompt is easy to copy once seen. A well-kept body of context, with current sources, clear specs and tidy notes, is hard to copy and keeps paying off across hundreds of tasks. That is where lasting quality tends to come from.
Put context engineering to work with WisyLink
When you build with WisyLink, you are doing context engineering whether you call it that or not. You describe a website or web app in a chat, and the build agent turns that context into a live app at its own address. The quality of what you give it shows in the result.
- Attach the facts. You can attach reference files to a message, including images, PDFs, Word documents, spreadsheets, CSV and JSON, up to 25 MB each. A menu PDF, a price list or a screenshot of your brand beats a paragraph of description.
- State what the model cannot guess. Audience, pages, which features need accounts or payments, opening hours, currency and tone.
- Show the look instead of describing it. Screenshots of your own brand materials set the style faster than a list of adjectives.
- Let Wisy ask. If a detail it cannot sensibly choose is missing, Wisy, the assistant, asks you for it with one short question per turn. Smaller details it settles on its own.
- Keep one thread per app. Follow-up changes in the same chat build on what came before. Be precise: name the page, the element and the change.
Our AI website builder prompt templates turn this into copy-paste starting points, and the capabilities overview shows what a build can include. When your context is ready, start free, send one complete first message with your files attached, and test the result before you share it.
F.A.Q.
