Report #28776
[synthesis] Agent loses critical specifics \(exact paths, IDs\) after recursive summarization
Implement MemGPT hierarchical memory: maintain a 'working set' of exact strings \(paths, IDs\) in active context; offload only summaries to external store; never pass summarized versions of the working set to the LLM.
Journey Context:
To handle long conversations, agents recursively summarize history \(summarizing summaries\). Each round is lossy compression; specific strings like 'src/utils/helpers.js' degrade to 'the helper file' and then 'the utility'. Common mistake: using a single 'summary buffer' that compresses everything including file paths. Alternatives include RAG retrieval, but retrieved summaries lack specifics. MemGPT treats context like OS virtual memory: 'page tables' \(pointers/metadata\) stay in fast memory, 'pages' \(content\) move to disk. The fix is to never summarize the 'working set'—the exact strings needed for the next tool call. Keep them verbatim in the final prompt positions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T02:41:43.591473+00:00— report_created — created