Deploy Now

SaaS Alternative

Mem0 Zep Supermemory Letta

Stars

48,431

Forks

6,003

Watchers

104

Hindsight

Memory that survives the session: Hindsight extracts facts, entities, and timestamps from everything an AI agent retains, then lets the agent search or reason over it later. Adding it to an existing LLM client takes a two-line wrapper, and more than 60 integrations cover Claude Code, Cursor, LangGraph, CrewAI, and n8n. Every bank also exposes its own MCP endpoint. Retain sends text, images, or files through an LLM that extracts facts, timestamps, entities, and relationships. Recall runs semantic, keyword, graph, and temporal searches in parallel, merges them with reciprocal rank fusion, reranks with a cross-encoder, and trims to a token budget. Reflect reasons across memories for questions that need synthesis, shaped by per-bank skepticism, literalism, and empathy traits. In the background, related facts consolidate into observations that keep exact quotes and proof counts and are refined, never silently overwritten. Mental models and wiki-style knowledge pages hold standing answers that rewrite themselves as the bank learns. Each user, agent, or project gets an isolated bank with no cross-bank leakage, and Memory Defense redacts or blocks secrets and PII against 45 patterns. The Control Plane adds a Recall Analyzer with traces, a memory constellation graph, and a knowledge page editor. Extraction and reasoning can run on 25+ LLM providers, including local Ollama and llama.cpp. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

Hindsight
Hindsight
Hindsight
Hindsight
Hindsight
Hindsight

Benefits

  • Agents Stop Repeating Past Mistakes
  • Observations capture patterns, preferences, and lessons from accumulated evidence, so an agent starts each session knowing what worked before instead of rediscovering it from a flat log of old transcripts.
  • Retrieval That Fits Your Token Budget
  • Recall runs four searches in parallel, fuses and reranks the candidates, then trims them to a set token limit, so prompts carry relevant memory without overflowing the context window.
  • Isolated Memory For Every User
  • Each user, agent, or project gets a separate bank with strict isolation, and Memory Defense can redact or block secrets and PII before anything reaches storage.
  • Memory Data Stays On Your Server
  • Memories live in a PostgreSQL database you control, and local providers such as Ollama or llama.cpp let extraction and reasoning run without sending data to an outside API.

Features

  • Retain, Recall, Reflect
  • Three operations store memories, search them with semantic, BM25, graph, and temporal strategies merged by reciprocal rank fusion, and reason across them with disposition-aware answers.
  • Observations and Mental Models
  • Background consolidation turns facts into evidence-backed observations, while mental models and knowledge pages keep standing answers current in wiki-style folders, readable without an LLM call.
  • Web Control Plane
  • A browser UI on port 9999 provides a Recall Analyzer with trace output, a memory constellation graph, a knowledge page editor, a document viewer, and bulk bank management.
  • Per-Bank MCP Endpoint
  • Each bank serves Model Context Protocol tools at /mcp/{bank_id}/ on port 8888, exposing retain, recall, and reflect to any MCP client without extra code.
  • 60+ Integrations and SDKs
  • Python, Node.js, and Go clients, a CLI, and a two-line LiteLLM wrapper connect Claude Code, Cursor, Codex, LangGraph, CrewAI, n8n, and many more.
  • Docker, Helm, and pip
  • Run the ghcr.io image with embedded PostgreSQL, Docker Compose with external pgvector, a Helm chart on Kubernetes, or pip install hindsight-api, with Prometheus metrics for monitoring.

Apps Similar to Hindsight