Why long-running agents run into context limits
A short task fits easily in an agent context. A long-running agent keeps adding to it: instructions, tool results, drafts, corrections, human replies. Over time the context grows until it is expensive, slow, noisy and can no longer fit at all.
The longer an agent works, the more context piles up. How do we avoid information bloat and accumulating errors?
| Term | Plain meaning |
|---|---|
| Long-running agent | An agent that works across many steps, sessions or hours instead of one short exchange |
| Context growth | The steady increase of information the agent has to carry |
| Context budget | How much context the agent can usefully hold, given size limits, cost and attention |
| Working context | What the agent actually sees when it takes its next step |
| Historical context | The full record of what already happened, which is larger than the working context |
A simulated research agent has run for a long session. Its context now holds 40 tool results, three abandoned drafts, and one important instruction the human gave at the start. The instruction is buried, and the agent begins to ignore it.