# hindsight

> hindsight is an open-source agent framework for knowledge and memory. Long-term memory for AI agents that consolidates facts into learned beliefs. It is available on API, CLI, Self-hosted, Linux, macOS and Windows.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** API, CLI, Self-hosted, Linux, macOS, Windows
- **Website:** https://hindsight.ai/oss
- **Repository:** https://github.com/hindsightai/hindsight
- **GitHub stars:** 64,566
- **License:** MIT
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

Hindsight stores what an agent is told as typed facts, then consolidates them in the background into observations, mental models and wiki-style pages. Instead of replaying chat logs, the agent retrieves memories through four parallel searches (semantic, keyword, entity graph and time-based) that are merged by rank and trimmed to a token budget.

A separate reflect operation runs an agentic loop over the memory bank to produce an answer rather than a list of matches. Each bank can be configured with a mission, directives and disposition traits so that two agents with the same memories can reason differently. Memories stay isolated per bank, and an opt-in policy can redact secrets and personal data before storage.

The project suits developers building personal assistants, coding agents or long-running autonomous agents that need context to persist across sessions. It can be run as a Docker container, a pip package, a Helm chart or embedded in Python, and it offers clients for Python, Node.js, Go and the command line, plus an MCP endpoint per bank.

## Features

- **Typed memory consolidation:** Background processing merges overlapping facts into observations that keep their supporting evidence and history.
- **Four-way parallel recall:** Semantic, keyword, graph and temporal searches run together and are fused by rank, then cut to a token budget.
- **Agentic reflect operation:** Reflect gathers its own evidence across mental models, pages and observations before answering, with citations.
- **Configurable bank personality:** Mission, directives and disposition traits shape how reflect interprets the same memories.
- **Flexible deployment options:** Runs via Docker, pip, Helm or embedded in Python, with PostgreSQL or Oracle storage.
- **Built-in memory defense:** An opt-in per-bank policy scans retained content for secrets and PII and redacts or blocks matches.

## Good for

- Give a chatbot persistent per-user memory across sessions
- Add long-term project context to coding agents
- Let an autonomous agent learn preferences and corrections over time
- Store and query customer or sales history for support or outreach agents
- Keep a searchable markdown knowledge base that an agent can read from disk

## FAQ

### Which languages do the SDKs support?

Official clients are available for Python, Node.js and TypeScript, Go, and a command-line tool, with a REST API for other languages.

### Can hindsight run without a server?

Yes. The Python package can start an embedded server in-process with pip install hindsight-all.

### Which LLMs can hindsight use?

It supports more than 25 LLM providers, including OpenAI, Anthropic, Gemini, Groq, Ollama and LM Studio, plus any OpenAI-compatible endpoint.

### Is there a hosted option?

Hindsight Cloud is a managed service with usage-based billing and free starting credits.

### Is hindsight free?

Yes. hindsight is open source, so you can use and self-host it for free.

### What are the best alternatives to hindsight?

The closest alternatives to hindsight are statewave, GitHub, OpenViking, memU and Dev-Mem.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [statewave](https://ai-powered.com/agents/statewave): statewave is an open-source agent framework for knowledge and memory.
- [GitHub](https://ai-powered.com/agents/github-13): GitHub is an open-source agent framework for developer tools.
- [OpenViking](https://ai-powered.com/agents/openviking): OpenViking is an open-source agent for knowledge and memory.
- [memU](https://ai-powered.com/agents/memu): memU is a hosted agent for knowledge and memory.
- [Dev-Mem](https://ai-powered.com/agents/dev-mem): Dev-Mem is an open-source agent for developer tools.
- [agentic-context-engine](https://ai-powered.com/agents/agentic-context-engine): agentic-context-engine is an open-source agent framework for multi-agent frameworks.
- [CheeseDB](https://ai-powered.com/agents/cheesedb): CheeseDB is an open-source agent framework for databases.
- [GitHub](https://ai-powered.com/agents/github-21): GitHub is a freemium hosted agent for developer tools.

---
Source: https://ai-powered.com/agents/hindsight-2
