LLMs Technical Reviews
Home / Agent memory layers

Agent memory layers

Libraries and services that give LLM agents long-term memory — extracting, storing, updating and recalling what matters across sessions.

Agent memory layers let an LLM application keep what it learned in one session and use it in the next. On write, something decides what to keep. On read, a search or an agent decides what goes back into the prompt. The ten projects here store different units: short facts about a user, time-stamped edges in a knowledge graph, verbatim conversation episodes, or observations about a coding agent's tool calls.

Four axes separate them. The write path can be one LLM call, a chain of calls, or none at all. The read path can return ranked records, a finished answer, or a block injected into your prompt automatically. Some projects consolidate or invalidate facts in the background, and others only append. Isolation can be enforced access control or a filter on an id you pass. When choosing, also check which databases you must run, and whether extraction runs in the open code or in a vendor's hosted service.

Projects (10)

ProjectStarsLanguageLicense
thedotmack/claude-memCoding-agent memory plugin: hooks capture tool calls, an observer LLM writes XML observations into SQLite and Chroma for next-session recall.★ 97kTypeScriptApache-2.0
mem0ai/mem0Python and TypeScript memory layer: an LLM extracts facts from chats into a vector store, recalled by semantic, BM25 and entity scoring.★ 67kPythonApache-2.0
vectorize-io/hindsightPostgres-based agent memory server: LLM fact extraction, four-arm recall with RRF and cross-encoder, LLM consolidation, agentic reflect.★ 46kPythonMIT
topoteretes/cogneePython memory engine that LLM-extracts a knowledge graph from data into graph and vector stores, then answers queries over it.★ 32kPythonApache-2.0
getzep/graphitiTemporal knowledge-graph memory for agents; LLM-extracted facts with validity dates, stored in Neo4j/FalkorDB, hybrid-searched.★ 32kPythonApache-2.0
supermemoryai/supermemoryClient side of a hosted memory API: remote MCP server with widget, AI SDK/OpenAI/Mastra middleware and SDKs; the engine is closed-source.★ 31kTypeScriptMIT
MemoriLabs/MemoriPython/TS SDK that wraps your LLM client, extracts facts via Memori's hosted API, and stores and recalls them in your own SQL or Mongo DB.★ 17kPythonApache-2.0
MemTensor/MemOSPython memory server (graph DB + vectors, LLM extraction, async scheduler) plus a separate local SQLite plugin for agent harnesses.★ 12kTypeScriptApache-2.0
plastic-labs/honchoMemory server where background LLM workers distil peer messages into conclusions that agents query through a chat endpoint.★ 7.5kPythonAGPL-3.0
MemMachine/MemMachineFastAPI memory server: raw episodes in a graph or vector store, plus LLM-extracted profile facts updated in the background.★ 3.1kPythonApache-2.0

In the research queue: letta-ai/letta.

Comparison questions

Each question is answered separately for every project in this category, from that project's source code.

All verdicts on one page →

  1. How are memories extracted from interactions?What gets stored (facts, events, preferences); LLM extraction prompts; deduplication and conflict handling at write time.
  2. How are memories stored?Vector, graph, key-value or SQL backends; the memory schema; embeddings used; pluggable stores.
  3. How are memories retrieved and injected into the prompt?Search strategy (semantic, keyword, graph, temporal); ranking and filtering; how results reach the LLM context.
  4. How are memories updated, consolidated or forgotten?Update/merge logic; summarisation or consolidation; decay, TTL and deletion; versioning or history.
  5. How is memory scoped and isolated?User / agent / session / tenant scoping; multi-tenancy; access control; privacy controls.
  6. How do agents integrate with it, and what is self-hostable?SDKs, REST API, MCP server, framework plugins; required services; open vs hosted-only parts.