Updated: 25 November 2026
Context engineering is the work of deciding what an AI agent has in front of him at each step: instructions, tools, files, notes and history. Anthropic, in its post Effective context engineering for AI agents (29 September 2025), defines it as the strategies for choosing and keeping the best possible set of tokens, meaning information, in front of the model at inference time, including whatever gets there by routes other than the prompt. In plain words: fewer and better pages on his desk.
On 19 November 2026 I told my ads agent to aim at one group of buyers. He read that as one search phrase, the narrowest one, and marked the searches of people who were interested but not yet buying as unwanted. The same day I added one audience to the plan. He squeezed it into the existing budget, shrinking the others, and pushed one channel to a later wave because a tool for it was missing.
Neither was a failure of reasoning. He did sensible things with what was on his desk. What was on his desk was thin, and I had put it there: an instruction that was complete in my head and not on his page. That is the whole subject.
What is context engineering, and how is it different from prompt engineering?
Anthropic’s post calls context engineering the natural progression of prompt engineering. Prompt engineering is about writing the instructions. Context is wider: the set of tokens the model sees when it produces an answer, and an agent running in a loop keeps adding to it with every tool result.
More is not better. The post describes context rot: as the number of tokens in the window grows, the model’s ability to recall information from it decreases. It speaks of an attention budget that every new token draws down. And it gives the rule in one line:
“good context engineering means finding the smallest possible set of high-signal tokens that maximize the likelihood of some desired outcome.”
For long tasks the post names three techniques: compaction (summarise the conversation and start a new window from the summary), structured note-taking (the agent writes notes outside the window and pulls them back later), and sub-agent architectures. On the last one it gives a number worth keeping: a sub-agent may explore with tens of thousands of tokens and hand back a condensed summary of, often, 1,000 to 2,000.
That is the theory, and I have nothing to add to it. What I can add is what it looks like in a running team, where every item in the context was put there by a mistake.
The practical version: five things my agents read
My service business is run by a team of agents with humans at the gates; parts of that team are paused this month to save tokens. None of them starts from an empty desk, and none of them gets the whole archive either. Each page below exists because its absence once cost me something.
| What he reads | What it holds | The incident that put it there |
|---|---|---|
| A role file | What he owns, what he decides alone, what waits for me | On the first order I had to open sessions and approve again and again, because the role file sent everything outside the price sheet to me. It was rewritten the next day |
| A goal with a number and a date | Purpose, a numeric target, a deadline, a calendar | On his first run the coordinator accepted goals the agents had set themselves, with no numbers. “Is the goal concrete?” became step zero |
| A ledger of numbered rulings | Each correction I give, with my words, overriding older facts | The two ads incidents above. An addition never shrinks what the plan already says, a missing tool is built and not skipped, and “aim at these people” means the people, on every channel |
| A handoff file per task | The state of the task when the session ended | About ninety things I owed lived only in handoff notes while the daily report said I owed nothing. Notes are for him; what I owe became tasks |
| One line naming what already exists | Before any build by a helper: the existing engine, or proof there is none | A helper rebuilt something we already owned, because the brief he was handed did not mention it |
The ledger is the one I would keep if I could keep only one. A session ends and its window is gone; a ruling with a number outlives it. Each correction gets a number so that it is not given twice. The rules themselves, and how they are enforced, are the subject of the agent harness guide; who reads which file and when belongs to agent orchestration.
Stale context is worse than missing context
A missing page makes him ask, or guess. A stale page makes him confident.
In October my page optimiser had thirteen drafted page edits ready to go live. A check before publishing found them not ready, and then a second check found something worse: all thirteen drafts were stale against the live pages, which had moved on. Publishing them would have overwritten newer work. The diff stopped all thirteen, and they were replaced by small additive edits, each with a snapshot.
The same month he audited a file that existed, answered with status 200, and turned out to be the wrong thing entirely: an article where a plain text file should have been. He caught it because he read the content, not the status code.
So the second half of context engineering is not adding pages. It is checking that the page on the desk is still true, with a mechanical check where one can be written. This is the same habit I describe in the Claude Code tutorial: an instruction is read, a check is run.
Lean reads work on the human too
Anthropic’s rule about the smallest high-signal set was written for models. I found it holds for me.
My agents once sent me a report with 17 items in it, and a question with four options to tick. Both produced zero action. The fix was not a better report. It was one item per message, each step sized at fifteen minutes or less, with a link to the full task text instead of a pointer to a file I could not read from the chat. The weekly numbers were blunt about who the slow reader was: the open tasks waiting on me had waited about 17.5 days on average, while items with an automatic default closed the same day.
The same economy runs the other way. Helpers return data, never decisions, which is the post’s sub-agent pattern in house clothes. And the customer agent’s model is not called at all unless a customer message is waiting: the leanest read is the one that does not happen. That is a matter of the trigger in the agent loop.
What I cannot give is a before-and-after number. My records hold individual incidents and individual verdicts, not an error rate, so I do not claim that these five pages cut mistakes by any figure. They are a list of scars, and each one is dated.
This guide is part of the AI agent workflows series on Agent Powered Solopreneur (agentpoweredsolopreneur.com). If you are setting up a first agent, the order I would take is in how to build an AI agent: the job first, the reading list second.
FAQ
Is context engineering just a new name for prompt engineering?
No. Anthropic’s post calls it the natural progression of prompt engineering. The prompt is one part of the context; tools, files, notes and message history are the rest, and in an agent they change on every turn.
Does a bigger context window make context engineering unnecessary?
Anthropic’s post argues it does not. It expects context windows of all sizes to suffer from context pollution for the foreseeable future, and it treats context as a finite resource with diminishing returns. My own incidents were never about running out of room; they were about a wrong or missing page.
Where does one start with a single agent?
With three files, in my experience: a short instruction file that says what he owns, a goal with a done-condition, and a list of corrections that survives the session. Write each correction down the first time. The second time is the expensive one.
He was not wrong that day. He was under-briefed, and the brief was mine.