vectorize-io/hindsight

Hindsight: Agent Memory That Learns

What it solves

Hindsight is an agent memory system designed to move beyond simple conversation history or basic RAG. It enables AI agents to learn and synthesize information over time rather than just recalling fragments of past interactions, solving the problem of long-term memory decay and inaccuracy in complex agentic workflows.

How it works

Hindsight organizes memories using biomimetic data structures divided into world facts, experiences, observations, and mental models. It operates through three primary functions:

  • Retain: Extracts key facts, entities, and temporal data from input using an LLM and stores them in a normalized format.
  • Recall: Retrieves memories using four parallel strategies—semantic (vector), keyword (BM25), graph (entity/causal links), and temporal (time range)—which are then merged and reranked.
  • Reflect: Performs deep analysis of existing memories to form new connections and synthesize understanding, allowing agents to answer complex questions that require reasoning rather than simple lookup.

Additionally, it consolidates related facts into "observations" (evidence-backed beliefs) and maintains "mental models" (standing answers to specific questions) that act as a cache of settled knowledge.

Who it’s for

Developers building AI agents, coding assistants, and enterprise AI applications that require persistent, evolving memory across sessions for users, projects, or specific agents.

Highlights

  • State-of-the-art performance: Achieves high accuracy on the LongMemEval benchmark.
  • Extensive integrations: Supports over 60 integrations, including LangChain, LlamaIndex, CrewAI, and various coding agents like Cursor and Claude Code.
  • LLM Wrapper: Allows adding memory to existing agents with minimal code changes via a wrapper for OpenAI and Anthropic SDKs.
  • Flexible Deployment: Available as a managed cloud service, a Docker container, or an embedded Python library (no server required).
  • MCP Support: Includes a built-in Model Context Protocol endpoint to expose memory operations as tools.

Written about in

Related

  • Project
  • Project
  • Project
  • Project
  • Project