LangMem vs Hindsight: Agent Memory Compared (November 2026)

4 min read

LangMem vs Hindsight compared (Nov 2026): LangGraph store vs standalone memory server, licenses, how memory is written and recalled, published benchmarks with their sources, limits, and which one fits your agent.

Short answer: pick LangMem if your agent already runs on LangGraph and you want memory tools inside that graph, saved to a LangGraph store you run. Pick Hindsight if you want memory as its own server, shared by several agents or frameworks, with published benchmark scores and a reflect operation.

LangMem and Hindsight solve the same problem in different places. LangMem is code you import into a LangGraph app. Hindsight is a service your agents call over its API, an MCP server or a plugin. Facts about LangMem come from its README and repository, read 28 November 2026. Facts about Hindsight come from its README, its benchmarks site and its pricing page.

Quick comparison

LangMemHindsight
What it isPython library (pip install -U langmem) that works with LangGraphMemory server, MIT-licensed. You run it, or use Hindsight Cloud
LicenseMIT (repository, checked 2026-11-28)MIT, full server included
Where memory is storedAny store you give it. Native integration with LangGraph’s long-term memory store. The example uses InMemoryStore, which loses data on restartPostgreSQL with pgvector, or an embedded Postgres (pg0) with no separate server
How memory is writtenTwo ways: the agent calls a memory tool in the conversation (“hot path”), or a background memory manager extracts and consolidates factsretain (an LLM extracts facts, time, entities and relationships), then background consolidation into observations
How memory is readcreate_search_memory_tool lets the agent search when it needs torecall (four strategies in parallel, then rerank), reflect (reasons over memories to answer), and mental models
Framework fitBuilt for LangGraph. The README’s example uses LangGraph’s create_react_agent60+ integrations, LangGraph among them (hindsight-langgraph on PyPI), plus CrewAI, LlamaIndex, Pydantic AI and the OpenAI Agents SDK
Hosted optionNone in the README. You bring the LangGraph storeHindsight Cloud, usage-based, free credits, no seat fee

Sources: LangMem on GitHub and Hindsight on GitHub.

Benchmarks, with who ran them

LangMem’s README has no benchmark score. So there is no published LangMem number to compare with Hindsight’s.

TestHindsightWho ran it
LongMemEval S94.6Vectorize, on its benchmarks site
LoCoMo92Vectorize, on its benchmarks site
BEAM 1M / 10M73.9 / 64.1Vectorize, on its benchmarks site. Mem0’s comparison page cites the same two figures (see below)
Same harness, OmniMemEval, GPT-4.1-mini answersLoCoMo 81.99, LongMemEval 72.20, BEAM 100K 70.22, BEAM 10M 59.75MemTensor, which makes MemOS. LangMem is not in this run

Read these with care:

  • Every Hindsight number is vendor-run. Vectorize makes Hindsight. Its README says Virginia Tech and The Washington Post collaborators reproduced its results. That is a reproduction by collaborators, not an independent audit.
  • Mem0’s comparison page lists Hindsight too. On BEAM 10M it shows Hindsight at 64.1 and Mem0 at 48.6, and on BEAM 1M 73.9 and 64.1. Those are Mem0’s numbers for its own page.
  • Do not read a LangMem score into this table. Without a published run, any LangMem figure would be a guess. We have none to show.

The full tables are in the agent memory leaderboard.

Where each one fits

Choose LangMem when:

  • Your agent is already a LangGraph app, and you want memory tools in the same graph.
  • You want to keep memory in a LangGraph store you already run, such as Postgres.
  • You want a small library with no second service to run.

Choose Hindsight when:

  • Several agents, or agents in several frameworks, should read one memory.
  • You want memory kept outside the agent code, with its own API and an audit history.
  • You want the reflect operation or mental models, which LangMem’s README does not describe.
  • You want published benchmark scores, even though they are vendor-run.

Limits to check first

LangMem:

  • The example store is in memory. Memories vanish on restart. The README says to use a database-backed store such as AsyncPostgresStore in production.
  • The memory tools need an embedding model. The example uses openai:text-embedding-3-small, so the store is tied to an embedding provider you pick.
  • It is built around LangGraph’s store. Its README also offers primitives for any storage system.

Hindsight:

  • You run a server, or pay for Hindsight Cloud. The retain step calls an LLM, so every write costs model calls.
  • Recall returns more context by default. Set max_tokens lower if you need a smaller prompt. Mem0’s measurement puts Hindsight at 23.9K tokens per retrieval on LongMemEval. That number comes from Mem0, not from Hindsight.

Other options for LangMem users: LangMem alternatives, with Mem0, Graphiti, Cognee and Hindsight side by side.

Checked on 28 November 2026