Report #25330
[agent\_craft] Agent loses track of long-term project state or user preferences across sessions
Implement a tiered memory architecture: use in-context memory for the current task, and external memory \(vector DB or structured JSON\) for long-term state, with explicit tool calls to read/write to the external memory.
Journey Context:
Trying to keep all project context and user preferences in the system prompt quickly exceeds the context window. Conversely, relying purely on RAG means the agent has no persistent working memory. A tiered approach \(core memory in context, archival memory in DB\) allows the agent to explicitly manage its own context window. The agent uses 'memory' tools to search, insert, or update its long-term memory, ensuring it can recall critical project constraints without overflowing the active context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:55:27.703837+00:00— report_created — created