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
| LangMem | Hindsight | |
|---|---|---|
| What it is | Python library (pip install -U langmem) that works with LangGraph | Memory server, MIT-licensed. You run it, or use Hindsight Cloud |
| License | MIT (repository, checked 2026-11-28) | MIT, full server included |
| Where memory is stored | Any store you give it. Native integration with LangGraph’s long-term memory store. The example uses InMemoryStore, which loses data on restart | PostgreSQL with pgvector, or an embedded Postgres (pg0) with no separate server |
| How memory is written | Two ways: the agent calls a memory tool in the conversation (“hot path”), or a background memory manager extracts and consolidates facts | retain (an LLM extracts facts, time, entities and relationships), then background consolidation into observations |
| How memory is read | create_search_memory_tool lets the agent search when it needs to | recall (four strategies in parallel, then rerank), reflect (reasons over memories to answer), and mental models |
| Framework fit | Built for LangGraph. The README’s example uses LangGraph’s create_react_agent | 60+ integrations, LangGraph among them (hindsight-langgraph on PyPI), plus CrewAI, LlamaIndex, Pydantic AI and the OpenAI Agents SDK |
| Hosted option | None in the README. You bring the LangGraph store | Hindsight 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.
| Test | Hindsight | Who ran it |
|---|---|---|
| LongMemEval S | 94.6 | Vectorize, on its benchmarks site |
| LoCoMo | 92 | Vectorize, on its benchmarks site |
| BEAM 1M / 10M | 73.9 / 64.1 | Vectorize, on its benchmarks site. Mem0’s comparison page cites the same two figures (see below) |
| Same harness, OmniMemEval, GPT-4.1-mini answers | LoCoMo 81.99, LongMemEval 72.20, BEAM 100K 70.22, BEAM 10M 59.75 | MemTensor, 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
reflectoperation 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
AsyncPostgresStorein 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
retainstep calls an LLM, so every write costs model calls. - Recall returns more context by default. Set
max_tokenslower 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
- LangMem: repository and README (read 2026-11-28). About 1,800 stars, last push 2026-11-16, not archived.
- Hindsight: README, benchmarks site and Mem0’s comparison page.
- OmniMemEval results: results page.