Report #75384
[agent\_craft] Agent stores all memories in a single flat vector store, mixing ephemeral session facts with stable codebase knowledge
Separate agent memory into at least two distinct stores: \(1\) Episodic memory for session-specific facts, decisions, and recent events — time-stamped, frequently pruned, and decayed by recency; \(2\) Semantic memory for stable knowledge about the codebase, patterns, and conventions — rarely changes, high recall, no decay. Apply different retrieval strategies and relevance thresholds to each.
Journey Context:
A single vector store for all 'memory' is the most common architecture because it is simple to implement, but it conflates two fundamentally different types of information. Episodic memory \('I tried approach X and it failed because of Y at 14:32'\) is highly temporal and should be pruned aggressively once the session moves on. Semantic memory \('the auth module uses JWT with RS256'\) is stable and should persist indefinitely. Mixing them means your retrieval returns stale episodic facts alongside relevant semantic knowledge, or buries stable knowledge under a pile of session noise. The MemGPT architecture explicitly separates 'core memory' \(always in context, manually curated, small\) from 'archival memory' \(external, retrieval-based, large\), which addresses a related concern. For coding agents, the episodic/semantic split is the most impactful first cut.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:07:34.256163+00:00— report_created — created