When an AI agent gets something wrong, a common reaction is to give it more information: more instructions, more documents, more tools, more conversation history. It sounds logical. If it's missing information, we'll add it.
In practice, this often makes things worse.
What the model sees at each step
At each step, the model receives the information that was selected for its context window: instructions, tool descriptions, data and conversation history. Information kept outside the window has to be loaded into it to be used in that step. The work of deciding what goes in is called context engineering. Anthropic describes it as a natural extension of prompt engineering: not only how you word an instruction, but what information is in front of the model at any given moment.
The article's central claim matters to anyone running AI projects. Context is a limited resource. As the number of tokens in the window grows, the model's ability to retrieve information from it accurately weakens. The decline in performance is gradual, not a sharp drop, and models differ, but it exists in all of them. In practice, the goal isn't to give the model as much as possible, but the most essential and precise information, without piling on unnecessary detail, to increase the likelihood of a correct result. This doesn't necessarily mean short context. It means context that contains everything the task needs.
Three places where context is usually wasted
Instructions at the wrong level of detail. At one end there is if-else logic stuffed into a prompt, which is brittle and hard to maintain. At the other end there are guidelines that are too general and assume the model understands the business context. The right level of detail is specific enough to guide the model, but flexible enough to let it exercise judgment.
A bloated toolset. Tools that cover overlapping areas create ambiguity about which tool to choose. The simple rule: if a human engineer can't say with certainty which tool to use in a given situation, you can't expect an agent to do better.
A list of edge cases inside the prompt. It is better to show the desired behavior through varied, representative examples than to pile on a list of exceptions.
Don't load everything up front
A pattern that is gaining ground is loading on demand. Instead of putting all the material in the window, the agent keeps references such as file paths, saved queries and links, and loads the data at run time only when it needs it. That way it moves forward layer by layer and keeps only what is relevant in working memory.
There is a trade-off. Exploring at runtime is slower than retrieving information prepared in advance, and it requires giving the agent good tools and guidance for navigation, or it gets lost. So in many cases the solution is a hybrid: some information is loaded up front for speed, and the rest stays available for search. Anthropic's recommendation on this is to "do the simplest thing that works."
When the task is long
In long tasks, the information accumulated during the task can exceed the context window. Even a large window doesn't by itself solve the problem of unnecessary or irrelevant information. Three common approaches: compaction, meaning summarizing the conversation and starting a new window from the summary; keeping organized notes outside the window, such as a task file the agent updates and returns to; and splitting the work among several agents. Compaction requires particular care. Compaction that is too aggressive may erase a small detail whose importance only becomes clear later.
What I ask in an organization
For me, the first question when an agent fails isn't "which model is stronger." It's: what exactly was in the context window at the step where it went wrong?
Three simple checks you can do this week:
1. Open the log of a failed run and read what the model saw, word for word.
2. Count how many tools are connected to the agent, and check whether any two would be hard for a person to distinguish.
3. Check who is responsible for deciding what gets dropped as the history grows, and whether anyone has decided at all.
A good agent isn't built by endless addition. It's built by deciding what to leave out.
Short answers
What does an AI agent see at each step?
At each step, the model receives the information that was selected for its context window: instructions, tool descriptions, data and conversation history. Information kept outside the window has to be loaded into it to be used in that step.
What does loading context on demand mean?
A pattern that is gaining ground is loading on demand. Instead of putting all the material in the window, the agent keeps references such as file paths, saved queries and links, and loads the data at run time only when it needs it.

