← writing

Unsolved agent problem: memory

Memory is the unsolved problem at the center of agent design. Not storage — that's easy. The hard part is retrieval, relevance, and coherent state across time.

An agent without memory is a powerful tool, but not an agent in any meaningful sense. It can reason well within a context window, but it can't build on past work, maintain relationships, or accumulate knowledge about you specifically. Every session resets. This is fine for narrow, stateless tasks. It fails completely for anything requiring continuity — project management, long-running research, enterprise workflows, anything that pretends to know you.

The retrieval problem

Most memory implementations use semantic search over a vector store. Embed past interactions, retrieve the top-k at query time, inject into context. This works surprisingly well for explicit recall (“what did we discuss last week?”) and fails badly at implicit reasoning (“given everything I know about this user, what do they actually need right now?”).

The gap is the difference between retrieval and reasoning. Retrieving relevant memories is not the same as reasoning coherently across them. A good human assistant doesn't just surface related facts — they synthesize, weight by recency and relationship, and suppress contradictions. Today's systems mostly just surface. The reasoning happens, if at all, inside a context window that wasn't designed for it.

The coherence problem

Even if retrieval works, there's a second problem: agents accumulate contradictory state. A user says one thing in January, the opposite in March. The agent has both in memory. Humans resolve this through relationship context and temporal reasoning — agents mostly don't. The result is inconsistent behavior that quietly erodes trust. You notice it when the agent confidently acts on something you changed your mind about six months ago.

Coherence requires active memory management: summarization, conflict resolution, decay. None of this is well-solved. Most production systems cap memory size and hope the important stuff stays in top-k retrieval. It mostly doesn't.

What actually matters

The interesting research direction isn't better retrieval — it's structured memory with explicit representations of facts, preferences, and relationships, updated over time. Something closer to how a CRM works than how a search engine works. You want the agent to know things about you, not just be able to recall things you once said.

This is technically hard and probably requires new training approaches, not just better vector stores. The teams that solve it will build the first agents that feel like they actually know you — where the continuity is the product, not a feature. That's a fundamentally different kind of software.