Context isolation

Your agent is working on a big task. You ask it to also explore a codebase for research. Now the research output pollutes the main conversation. The model gets confused about what it was originally doing. Context pollution is real and subagents solve it.

Context isolation: main agent vs subagent

Subagents get their own message history. Results flow back as a single tool result.

Quiz: Quiz

Loading practice…