hindsight vs gbrain
Two of the top projects in Memory, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.
hindsight
Agent memory server with retain, recall and reflect operations
gbrain
Memory store with sources and a knowledge graph for coding agents
Verdict
hindsight ranks higher, 97 to 95. Of the 4 score parts we measure for both, hindsight leads on 1, gbrain on 1 and 2 are even.
- Adoptionhindsight leads by 5 points, 97 to 92.
- FreshnessEven at 100.
- Maintenancegbrain leads by 1 point, 97 to 96: close to even.
- Agent-readyEven at 85.
Pick hindsight if you are
Developers adding persistent memory to agents or coding assistants
- Four parallel retrieval strategies (semantic, BM25, graph, temporal) with cross-encoder reranking
- Works with 25+ LLM providers, including local ones: ollama, lmstudio, llamacpp
Pick gbrain if you are
Engineers giving Claude Code, Codex or other agents persistent, sourced memory
- Keyless start: embedded PGLite and keyword search, no server or API keys needed
- MCP access via local stdio, Tailscale tailnet exposure, or remote URL with token
| What we compare | hindsight | gbrain |
|---|---|---|
| Score parts, out of 100 | ||
| Adoption | 97, widely used | 92, widely used |
| Freshness | 100, active | 100, active |
| Maintenance | 96, healthy | 97, healthy |
| Agent-ready | 85, ready | 85, ready |
| Facts from GitHub and the README | ||
| Stars | 64.1k | 33.7k |
| License | MIT (permissive) | MIT (permissive) |
| Last commit | Nov 2026 | Nov 2026 |
| Last release | Nov 2026 | Nov 2026 |
| Language | Python | TypeScript |
| Docker | Yes | Yes |
| GPU | Not stated | Not needed |
| arm64 or Apple Silicon | Mentioned | Mentioned |
hindsight
Hindsight is a long-term memory system for agents. It uses an LLM to extract facts, entities and time data on retain, then recalls them with semantic, BM25, graph and temporal search, merged by reciprocal rank fusion and a cross-encoder rerank. It also consolidates facts into observations and mental models, and ships Python, TypeScript and Go clients, a CLI and a per-bank MCP endpoint.
Who it is for: Developers adding persistent memory to agents or coding assistants
Strengths
- Four parallel retrieval strategies (semantic, BM25, graph, temporal) with cross-encoder reranking
- Works with 25+ LLM providers, including local ones: ollama, lmstudio, llamacpp
- Python, Node.js and Go clients, CLI, REST API and a built-in MCP endpoint per bank
- Embedded pg0 database by default; external PostgreSQL and Helm chart also supported
Weaknesses
- Retain depends on an LLM call for fact extraction, adding provider cost and latency
- Dashboard, backups and uptime SLA are described only for the hosted Hindsight Cloud
- Benchmark claims are partly vendor-reported; only some were independently reproduced
- Intel Macs need the hindsight-all-slim package instead of the default
- Docker
- Needs LLM provider (API or local), PostgreSQL (embedded pg0 by default)
- Models: openai, anthropic, gemini, groq, bedrock
- port 9999
gbrain
GBrain stores facts and markdown pages with their sources and exposes them over MCP to agents such as Claude Code, Codex, Cursor and ChatGPT. It starts keyless with keyword search on embedded PGLite, and optionally adds embeddings, reranking, a typed link graph, and `gbrain think`, which writes cited answers with gap notes. Postgres and a paid hosted option at gbrain.io are also available.
Who it is for: Engineers giving Claude Code, Codex or other agents persistent, sourced memory
Strengths
- Keyless start: embedded PGLite and keyword search, no server or API keys needed
- MCP access via local stdio, Tailscale tailnet exposure, or remote URL with token
- `gbrain think` answers carry citations and note stale or missing knowledge
- Swappable schema packs and a typed link graph; MIT license
Weaknesses
- Not on npm; install from GitHub with Bun 1.4.4 or newer
- Semantic search, synthesis and enrichment need separately configured, paid model providers
- Shared brains are not isolated against local file or shared DB credential access
- Always-on enrichment suggests a server with 8GB+ RAM plus its own API usage
- RAM ≥ 8 GB
- no GPU
- Compose
- Needs Bun 1.4.4+, PGLite or Postgres, Tailscale (optional, remote MCP), Embedding and chat provider API (optional)
More in Memory
Building with these?
We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.
AI app development →Send a project brief (opens in a new tab)