SuperAPIAI Directory

mimir

github.com · AI coding

Mimir is an open-source tool that provides persistent reasoning memory for AI coding agents, integrating with clients such as Codex and Claude Code via MCP (Model Context Protocol). It uses PostgreSQL and Apache AGE to store belief graphs and document indexes, and supports recording decisions, evidence, revisions, and experience history, helping agents retrieve prior reasoning across sessions and compare it with the current code. Main features include: recording beliefs with probabilities and confidence levels, connecting beliefs via typed edges such as SUPPORTS, DEFEATS, CAUSES, and CONTRADICTS, running defeat propagation cascades, decaying belief confidence over time, and indexing Markdown documents and performing semantic search (RAG). Installation requires three parts: a PostgreSQL container (with extensions such as pgvector and Apache AGE), the two binaries mimir and mimir-mcp, and registering mimir-mcp with the agent client. An optional judge component is provided for reviewing recorded experiences, but it is not started automatically. It is suitable for AI coding scenarios that require long-term memory and reasoning traceability.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

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.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools