
hindsight
Long-term memory for AI agents that consolidates facts into learned beliefs
hindsight is an open-source agent framework for knowledge and memory. It is available on API, CLI, Self-hosted, Linux, macOS and Windows.
- Pricing
- Open source
- Platforms
- API, CLI, Self-hosted
- GitHub stars
- 64.6K
- Last commit
- Language
- Python
- License
- MIT
Similar agents
About hindsight
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.
What it does
- 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
Pricing
Open source
Free and MIT licensed for self-hosting; Hindsight Cloud is usage-based with free credits to start.
Prices change. Check hindsight.ai before you buy.
hindsight 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.


