Context isolation
Definition
Running a subtask in a separate context window so raw tool output and intermediate noise never enter the parent conversation.
In more detail
When a single agent searches dozens of files or web pages, thousands of irrelevant tokens accumulate and degrade reasoning on the main goal. Context isolation delegates that noisy exploration to a short-lived subagent or worker, which reads the raw data in its own window and returns only a compressed summary.
For example, a coding agent spawns a read-only explorer subagent to trace where authentication middleware is wired across fifty files, receiving a ten-line summary instead of fifty full file listings. The trade-off is higher total token spend across windows and the risk of dropping a subtle detail at the summary boundary.
Related terms
Context rot
The gradual decline in a model's accuracy and instruction-following as its context fills up with long, stale or irrelevant content.
Context window
The maximum number of tokens a model can consider in one request, covering both the input you send and the output it writes.
Multi-agent system
An application in which several agents, often with different roles, tools or instructions, cooperate or hand work to each other.
Subagent
A separate agent instance with its own context window, launched by a main agent to handle a focused task and report back a short result.
Read more about Context isolation
- Multi-agent systems: when one agent is not enough
Orchestrator-workers, subagents and handoffs compared on context, cost and failure modes.
- Subagents in Claude Code: delegate without losing control
Define Claude Code subagents with their own tools, model and permissions, keep noisy work out of your main context, and avoid conflicts in parallel runs.
- Context engineering
Deciding what instructions, documents, tools and history a model sees at each step.