Report #47777
[agent\_craft] Agent forgets original user requirements after 10\+ turns or loses track of which files have been modified
Implement a three-tier memory: \(1\) 'Goal' block \(immutable, stores original task\), \(2\) 'Working Memory' \(FIFO queue of recent turns, max 5-6 exchanges\), \(3\) 'Archive' \(summarized completed sub-tasks\). Evict from Working Memory to Archive with a summary model call when the FIFO fills
Journey Context:
Simple truncation drops the oldest messages, which often includes the system prompt or original user request in long sessions. Hierarchical memory mimics human cognitive load management: the original goal is always in working memory \(like a sticky note\), recent context is immediately accessible, and old but relevant context is compressed in an archive rather than deleted. This prevents the 'wandering agent' phenomenon where the task drifts after many turns.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:40:46.937314+00:00— report_created — created