explaingit

hasil7677/mimir

Analysis updated 2026-05-18

5PythonAudience · developerComplexity · 3/5LicenseSetup · easy

TLDR

A local, file based memory system for AI agents that stores what they know as readable markdown notes in an Obsidian vault.

Mindmap

mindmap
  root((mimir))
    What it does
      Gives agents memory
      Stores facts as markdown
      Editable by hand
    Storage layers
      DuckDB required
      Obsidian vault
      Qdrant search
      Redis cache
    Tech stack
      Python
      DuckDB
      Qdrant
      MCP
    Status
      Early stage
      83 tests
      Known gaps listed

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Give an AI coding assistant like Claude Code a persistent memory of past conversations.

USE CASE 2

Read and manually correct what an AI agent remembers by editing markdown notes directly.

USE CASE 3

Build an agent memory system that works locally without a cloud account or API key.

USE CASE 4

Connect a custom AI agent to Mimir's HTTP API for recall, remember, and flush actions.

What is it built with?

PythonDuckDBQdrantRedisMCP

How does it compare?

hasil7677/mimir1ncendium/aibusteraaronmayeux/ha-hurricane-tracker
Stars555
LanguagePythonPythonPython
Setup difficultyeasymoderateeasy
Complexity3/53/52/5
Audiencedeveloperops devopsgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Basic setup needs no config file, connecting the optional Redis, Qdrant, or LLM layers takes more work.

Released under the MIT license, so the memory engine is free to use, modify, and redistribute, including commercially.

In plain English

Mimir gives an AI agent a memory that lives as a folder of plain markdown files instead of hiding inside a database you cannot inspect. You can open that folder in Obsidian, a popular note taking app, read what the agent remembers, and even edit a fact by hand. The next time the agent thinks, it sees your correction, since there is no separate syncing step to run. The problem the README describes is one every AI agent framework faces: conversations start from nothing each time. Stuffing the entire history back into the prompt burns through the token budget, summarizing throws details away permanently, and plain vector search cannot tell a memory from yesterday apart from one from six months ago. Mimir aims to solve this without requiring any cloud account, Docker setup, or API key to get started. Under the hood, Mimir writes memories in a format it calls OKF, short for Open Knowledge Format, combining structured header data with markdown text and links between related facts. It uses up to four storage layers, though only one, a local DuckDB database file, is required. The others, an Obsidian vault of readable notes, an embedded Qdrant database for semantic search, and an optional Redis server for recent conversation caching, each add capability but are not required, and the system keeps working with reduced features if any are missing. A conversation is captured as raw turns, then summarized into notes and facts when a session ends, and later recalled through a mix of keyword and semantic search plus scoring based on relevance, recency, access frequency, and how closely connected it is within the notes. Getting started only takes cloning the repository, installing it with pip, and running a local web server, which works with no configuration file needed. It can also be connected directly to Claude Code or any other MCP compatible AI tool, meaning it works as one of the external tools an AI assistant can call. The README is candid that this is an early stage project, tested with eighty three automated tests but not yet used widely by others, and it lists known gaps such as a regex based approach for finding names instead of a proper language model, and no published accuracy benchmarks yet. It is released under the MIT license.

Copy-paste prompts

Prompt 1
Help me install Mimir and run its local server following the quickstart steps in the README.
Prompt 2
Walk me through connecting Mimir to Claude Code using the claude mcp add command.
Prompt 3
Explain how Mimir's four storage layers work together and what happens if Redis is missing.
Prompt 4
Explain the difference between Mimir's capture, flush, and recall steps in plain terms.

Frequently asked questions

What is mimir?

A local, file based memory system for AI agents that stores what they know as readable markdown notes in an Obsidian vault.

What language is mimir written in?

Mainly Python. The stack also includes Python, DuckDB, Qdrant.

What license does mimir use?

Released under the MIT license, so the memory engine is free to use, modify, and redistribute, including commercially.

How hard is mimir to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is mimir for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.