BunCosmos AI Research Lab

Context Engineering

Why AI development is moving beyond better prompts toward better context

Updated 8 November 2026

By November 2026, major AI developers had published guidance under the term context engineering, including recommendations for selecting the information an agent sees and keeping it relevant to the task.

The idea sounds simple. Instead of concentrating only on the words used to instruct an AI model, developers increasingly focus on the entire environment of information surrounding the model: its system instructions, conversation history, memory, tools, retrieved documents, files, examples, current state and any other information placed inside its context window.

Prompt engineering asks: What should we say to the model?

Context engineering asks: What should the model know, see, remember and have access to at this moment?

That distinction is becoming increasingly important as AI systems evolve from single-turn chatbots into agents capable of working across files, tools, applications and long sequences of actions.

From prompt engineering to context engineering

The phrase itself was not invented in 2025. AI researcher Riley Goodside was already using “context engineering” in 2023 to distinguish the work of selecting relevant information from the narrower task of writing instructions.

But the term began gaining much wider attention in June 2025.

Shopify CEO Tobi Lütke publicly argued that “context engineering” described the emerging skill better than prompt engineering. Andrej Karpathy soon amplified the idea, describing modern AI development as the difficult task of filling a model’s context window with the right information for its next step.

Software developer and AI researcher Simon Willison noted at the time that the term appeared likely to stick because it described what developers were actually doing with increasingly sophisticated AI systems: managing prompts, documents, retrieval, tools, state, memory and conversation history together rather than treating the prompt as an isolated instruction.

Anthropic formalizes the idea

Anthropic gave the concept a much more formal definition in September 2025.

The company described context engineering as the natural progression of prompt engineering.

For Anthropic, prompt engineering concerns how instructions are written and organized. Context engineering covers the larger problem of deciding which information should be available to the model during inference.

That can include the system prompt, tool definitions, external data, Model Context Protocol connections, message history, retrieved files and information produced by previous steps of an agent’s work.

This becomes particularly important for agents.

A chatbot may answer one question and stop. An agent can work for many turns, search databases, call tools, modify files, gather evidence and create intermediate results.

Every step produces more information.

If everything is continuously pushed back into the model, the context grows rapidly.

The engineering problem therefore becomes not simply how much information the model can hold, but which information it should receive at each moment.

More context is not always better

Modern AI models can accept enormous context windows, but that does not mean filling them completely produces better results.

Anthropic describes context as a finite resource with what it calls an attention budget.

As more information accumulates, relevant facts must compete with old conversations, tool outputs, instructions, examples and potentially irrelevant material.

Research into long-context performance has produced the related term context rot: performance can deteriorate as the amount of information inside a context grows, even when the model technically supports the full number of tokens.

This creates an important change in how AI systems are designed.

The goal is not: Give the AI everything.

The goal becomes: Give the AI the smallest useful set of high-quality information that allows it to solve the current problem.

Anthropic describes this as finding the minimum high-signal context that still fully communicates the expected behavior. It warns against two extremes: highly detailed rule systems that become brittle, and vague instructions that leave the model without enough guidance.

Claude provides a striking example

Anthropic’s most interesting demonstration of this shift came from Claude Code.

In July 2026, Anthropic revealed that it had removed more than 80% of Claude Code’s system prompt for newer Claude 5-generation models, including Claude Opus 5 and Claude Fable 5.

According to Anthropic, its coding evaluations showed no measurable loss in performance after the reduction.

The company concluded that Claude Code had gradually become overconstrained.

Instructions had accumulated in several places: the system prompt, skills, project files and tool descriptions. Some rules repeated each other. Others conflicted.

Older models had needed many of those restrictions because they were less reliable at interpreting situations themselves.

Anthropic says newer models are increasingly capable of reading the surrounding context and exercising judgment instead.

Rather than giving Claude a rigid instruction for every possible situation, Anthropic is moving toward broader principles.

For example, an older instruction might dictate exactly when comments should or should not appear in code.

The newer approach tells Claude to match the conventions of the surrounding codebase and lets the model decide what is appropriate in that specific situation.

From rules to judgment

Anthropic summarized the shift through six changes.

The first is perhaps the most important:

Then: give Claude rules. Now: let Claude use judgment.

The other changes follow the same philosophy.

Instead of giving endless examples of how to operate a tool, design the tool itself so its purpose and parameters are clear.

Instead of putting every possible instruction into the system prompt, use progressive disclosure and provide specialized information only when it becomes relevant.

Instead of repeating the same instruction in several locations, put it where it belongs.

Instead of keeping all persistent information inside one giant project file, use dedicated memory systems.

And instead of reducing complex tasks to oversimplified written specifications, allow models to work from richer references such as real code, test suites, artifacts and structured files.

This does not mean instructions are disappearing.

It means their role is changing.

The strongest instructions increasingly define goals, principles, boundaries and important constraints, while the model is given more freedom to decide how those principles apply to individual situations.

Progressive disclosure

One of the most important techniques emerging from context engineering is progressive disclosure.

An AI system may have access to dozens of skills, tools and specialist instruction sets.

Older designs often inserted descriptions of all of them into the model’s context before work even began.

The newer approach keeps much of that information outside the active context.

The model receives a lightweight description indicating that additional knowledge exists and loads the detailed instructions only when they become necessary.

Claude Code now uses this approach with skills and deferred tools.

Rather than permanently carrying detailed code-review instructions, for example, the agent can load a verification skill when it reaches the verification stage of a task.

The result is a smaller and cleaner working context.

The idea is spreading beyond Anthropic

Context engineering is no longer an Anthropic-specific concept.

Google has increasingly described production agent design in similar terms.

Google Cloud defines context engineering as designing the entire information environment around an AI system, including retrieval, memory, tool selection and conversation state. Its agent guidance describes the goal as feeding an AI system the right information at the right time, rather than simply expanding the amount of text supplied to it.

Google’s Agent Development Kit work has also treated context as a structured system involving sessions, memory, artifacts, compaction and controlled handoffs between agents rather than a single growing prompt.

Microsoft has moved in the same direction.

Microsoft Research presented Agentic Context Engineering, or ACE, as a framework in which an agent’s context becomes an evolving playbook that can accumulate and refine strategies from experience.

In tests reported with the research, the approach improved performance on agent and finance benchmarks without requiring changes to the underlying model weights.

Microsoft’s enterprise AI work now also treats context management as an economic issue. Every irrelevant document, repeated instruction or unused tool consumes tokens repeatedly as an agent operates. Better context selection can therefore improve both performance and cost.

OpenAI is seeing the same shift

OpenAI has also been revisiting how instructions are constructed for increasingly capable agents.

In September 2026, OpenAI published guidance for GPT-6 Astra advising developers to reconsider accumulated instructions in skills, AGENTS.md files and task prompts.

The company noted that coding agents have advanced enough that some of the scaffolding and handholding accumulated for earlier models is no longer necessary and can contribute to bloated context.

The terminology and implementation differ between companies, but the underlying direction is similar: as models become more capable, repeatedly adding instructions to correct every historical failure may eventually make the system harder rather than easier for the model to navigate.

AWS brings context engineering into production systems

The term continues to spread.

On 4 November 2026, AWS published a detailed guide describing four layers of context engineering for production AI agents.

Its example shows how a long-running data-analysis agent can consume more than 150,000 tokens during a single workflow.

AWS demonstrates techniques including isolating different tasks into separate agent contexts, storing information outside the active model context, loading skills only when required and passing compressed results between agents.

In its reference implementation, AWS reports that one tool design reduced the amount of context generated by scripts by about 95%, while on-demand skill loading reduced the system prompt by roughly 97%.

Context engineering has therefore moved quickly from a phrase discussed by AI researchers into a practical design discipline being used across major commercial AI platforms.

What actually belongs in context?

A modern AI system may have access to enormous amounts of information.

Context engineering determines which parts of that information should become active.

That can include the user’s current request, relevant conversation history, system-level principles, selected memories, retrieved documents, files, available tools, tool results, current task state, examples, specialist skills, external databases, and summaries from other agents.

The important word is selected.

A model does not necessarily benefit from receiving every remembered fact, every previous conversation, every tool description and every instruction simultaneously.

The context should change depending on the task.

A research request may need sources and citation rules.

A coding request may need the repository and test suite.

A creative task may need style references.

A financial analysis may need live data and calculation tools.

The underlying model may be identical in every case.

What changes is the context around it.

A shift in how we think about intelligence

This development also changes how AI capability itself is understood.

A model’s performance does not come only from what was stored in its weights during training.

What it can do at a particular moment also depends heavily on the environment constructed around it.

The same model can appear dramatically more or less capable depending on which tools it can access, what information it retrieves, which memories are available, how much irrelevant material surrounds the useful information and whether its instructions allow it to exercise judgment.

That is why context engineering is becoming particularly important for AI agents.

The model may be the reasoning engine, but the surrounding context determines what world that reasoning engine can see.

Does this mean prompt engineering is disappearing?

No.

Prompt engineering remains part of context engineering.

Clear instructions still matter.

Examples still matter.

Safety rules still matter.

Hard constraints still matter, particularly for security, privacy, permissions and irreversible actions.

What is changing is the assumption that more instructions automatically produce better behavior.

Increasingly capable models can understand intent, infer patterns from surrounding information and adapt their behavior to the situation.

Excessively detailed prompts can therefore create a new problem: instead of helping the model reason, they can narrow the possible interpretations so aggressively that the model loses room to exercise useful judgment.

The challenge becomes determining what must be explicit and what the model is capable of deciding for itself.

The emerging principle

Context engineering is still a young discipline, and there is no universal formula for the perfect context.

Different models behave differently. Different tasks require different levels of structure. Safety-critical environments will continue to require stricter boundaries than ordinary conversation or creative work.

But a clear principle is emerging across the industry:

Better AI does not necessarily need more context. It needs better context.

The transition from prompt engineering to context engineering reflects a larger change in AI itself.

When models were less capable, developers often tried to compensate by surrounding them with increasingly detailed instructions.

As models become stronger, the engineering challenge is shifting toward knowing when to step back.

The next generation of AI systems may therefore be shaped not by whoever writes the longest prompt, but by whoever can give a capable model the right information, the right tools, the right boundaries - and enough room to think.

Sources

Anthropic - Effective context engineering for AI agents, 29 September 2025. Source

Anthropic / Claude - The new rules of context engineering for Claude 5 generation models, 24 July 2026. Source

Simon Willison - Context engineering, 27 June 2025. Source

Google Cloud - What is AI context engineering?. Source

Google Developers - Architecting efficient context-aware multi-agent framework for production, 4 December 2025. Source

Microsoft Research - Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models. Source

Microsoft Azure - The Economics of Agent Optimization: Context engineering for enterprise AI agents. Source

OpenAI Developers - Rethinking skills and prompts for GPT-6 Astra, 11 September 2026. Source

AWS - Four layers of context engineering for production AI agents, 4 November 2026. Source

BunCosmos AI Research LabBack to top ↑