Report #48711
[agent\_craft] Agent loses track of conversation history or repeats actions in long sessions
Implement a hierarchical memory: keep last 5 turns verbatim, summarize older turns into 'progress summaries' \(key facts, decisions, pending items\), and archive summaries >10 steps into 'session goals' statements. Inject all three layers into context.
Journey Context:
Simple sliding windows drop critical information; full history exceeds context limits. The 'Lost in the Middle' effect means middle history is ignored anyway. The solution is a 'memory hierarchy' inspired by operating systems \(Packer et al. 2023, MemGPT\): hot data \(recent turns\) stays verbatim, warm data \(relevant but old\) gets summarized, cold data \(archived\) becomes metadata. This prevents the 'amnesia' where agents forget they already created a file, while keeping context under limits. The key is updating the summaries actively after each turn, not just appending.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:14:58.528514+00:00— report_created — created