Why context is the real bottleneck
An agent's context window is its working memory. Every tool call result, every prior message, every retrieved chunk occupies tokens that cost latency and money — and once the window fills, the model either truncates silently or halts entirely. For a 10-turn chat session this is a non-issue. For a multi-hour coding agent or a research loop that calls 50 tools, context pressure is the primary engineering challenge.
The naive approach — just dump everything into the prompt — breaks down around 30-40% of window capacity: attention dilutes, retrieval accuracy drops, and costs compound. Context engineering is the discipline of deciding what to keep, what to compress, and what to fetch on demand at each step of the agent loop.
