Report #4500
[architecture] Agent context window keeps overflowing or getting polluted with old task details
Implement a two-tier memory: working memory \(context window\) for the current task trajectory, and long-term memory \(vector store\) for cross-session facts. Evict from working memory by summarizing/compressing completed steps into long-term memory rather than just dropping them.
Journey Context:
Developers often try to stuff everything into the context window, hitting limits and degrading attention, or they try to query a vector DB for every step, losing the narrative thread and adding latency. The right call is keeping active reasoning in context, but aggressively compressing/evicting completed steps to long-term memory. This prevents the context window from acting as an unbounded cache while preserving the semantic value of past steps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T19:35:37.803197+00:00— report_created — created