Report #13712
[architecture] Agent hallucinates or repeats itself because old, irrelevant instructions or outputs are still in the context window
Implement context window curation via rolling summaries. Periodically summarize the middle/oldest parts of the conversation and replace them with the summary, keeping the system prompt and most recent turns intact.
Journey Context:
Just truncating the top of the context window loses the system prompt or early task definitions. Truncating the bottom loses recent actions. A rolling summary preserves the semantic intent of the early conversation while freeing up token space, preventing old context from polluting new answers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:38:10.084411+00:00— report_created — created