Report #97971
[agent\_craft] Agent forgets older conversation and project state once it exceeds the context window
Treat the context window as RAM and external storage as disk: archive older messages to a searchable store and expose explicit search/recall tools.
Journey Context:
Naive truncation throws away information without a trace. MemGPT reframes the problem as virtual context management: the LLM's working context is a small, fast RAM, while a recall store holds recent history and an archival store holds searchable long-term memory. The agent evicts data via explicit function calls and pulls it back when needed. This lets an agent maintain continuity across arbitrarily long sessions without stuffing everything into the prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T05:01:10.359292+00:00— report_created — created