Mimir is an open-source project that provides persistent reasoning memory for AI coding agents, integrating with agent clients via MCP (Model Context Protocol). Its core goal is to enable agents to retain decisions, rejected options, and the evidence behind them across sessions, so that in subsequent tasks they can retrieve prior reasoning, compare it with the current code, and explain its relevance to the current task.
Main capabilities include:
- Recording beliefs, with probability and confidence scores.
- Connecting beliefs via typed edges, supporting relationships such as SUPPORTS, DEFEATS, CAUSES, and CONTRADICTS.
- Running defeat propagation cascades in the graph.
- Decaying belief confidence over time.
- Indexing Markdown documents and performing semantic search on them (RAG).
- Recording observations separately from the conclusions drawn from them.
- Revising events under the same identity, preserving history, and retracting previously reviewed contributions.
- Inspecting the provenance of beliefs and the observations behind them.
Usage: Mimir uses PostgreSQL and Apache AGE as its storage backend. Installation consists of three required parts: a PostgreSQL container (or your own database) for storing the belief graph and document index; the two binaries mimir (CLI) and mimir-mcp (MCP server) located in PATH; and registering the mimir-mcp server with the agent client (such as Codex or Claude Code). There is no daemon to start; the MCP server is started on demand by the client, and the database schema (including the AGE graph) is created automatically on first run via embedded migrations.
Installation can build the binaries via Nix, or download release versions. Configuration is done via ~/.config/mimir/config.toml, where database connection information must be filled in. The embedding backend can optionally be configured to enable document search. After the agent client connects via MCP, it can use tools such as recording beliefs, linking beliefs, running cascades, decaying confidence, indexing documents, and semantic search.
The optional judge component is used to review recorded experiences, but installing Mimir does not start the judge; it must be started and configured manually. The judge can poll the queue (mimir judge watch), review experiences, and apply feedback.
Applicable scenarios: Suitable forAn AI coding agent with long-term memory and reasoning traceability, especially for scenarios in multi-session development that require preserving decision context, comparing historical reasoning with current code, and learning from experience.
Limitations:
- Requires a PostgreSQL and Apache AGE environment, with a relatively involved installation process.
- Evidence citations are provided by the caller; Mimir does not independently verify their content.
- Causal links are projections under recorded hypotheses and do not prove true causal effects.
- The optional judge does not run automatically and must be started manually.
- Document search requires additional configuration of an embedding backend; a cloud embedding backend will send document chunks to the provider.
- Some platforms (such as Intel macOS) require building from source.