Report #5007
[architecture] How do I give an agent long-term memory beyond the context window?
Implement an OS-style memory hierarchy: a small in-context working memory plus a larger external memory that the agent itself pages in and out through explicit memory-management function calls.
Journey Context:
Static truncation or blunt summarization of old conversation turns destroys task-relevant detail because relevance is query-dependent, not position-dependent. MemGPT showed that giving the model functions to search, recall, and store memory lets it manage its own limited context like an operating system manages virtual memory. The agent decides what stays in fast working memory and what is archived, yielding extended context behavior without requiring a model with a larger window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:30:33.216358+00:00— report_created — created