Skip to content

Context Rot in Long-Running Agents

In this pencil demo, an agent starts with one starred rule in its notebook. New notes crowd the page until the rule is hard to spot. The agent sends an envelope without its required seal. That’s what context rot looks like in this example. The rule is still in the notebook, but the agent misses it when it matters.

The scene rewinds and gives each task its own page. The pages are easier to scan, and some still lack the rule for the action. On the final replay, the seal rule is pinned outside the notebook. The agent reads it before sending, and the envelope leaves sealed.

When you review a long-running agent, pick one action with a requirement that must hold. Ask where the agent gets that rule and how you would check that it reads the rule before acting, even after new logs and requests arrive.

Challenges with agents, part 3 of 8.