Skip to main content

Zero-server, in-process agentic memory system for LLM agents — Zvec + SQLite + LangGraph

Project description

Mimir — Local Agentic Memory System

A zero-server, in-process memory system for LLM agents, optimized for Apple Silicon.

Mimir combines dense vector search (Zvec), bitemporal knowledge graphs (SQLite), and autonomous tool-calling (LangGraph) into a single Python process. No Docker, no cloud databases, no external servers.

✨ Key Features

  • Bitemporal Memory — Facts are never deleted. Old records are time-capped (valid_to), preserving full history. Ask "Where does John live?" and "Where did John live last month?"
  • In-Process Vector Search — Zvec (Alibaba Proxima) runs as a C-extension inside your Python process. Sub-millisecond search, zero network hops.
  • Fully Local — Embeddings via HuggingFace BGE run on CPU. Storage is file-based. The only external call is to your LLM endpoint.
  • LangGraph Agent — Tools (archive_memory, search_memory) are bound to the LLM and routed via a compiled state graph.

🏗️ Architecture

Layer Component Role
L1 & L2 Tools archive_memory and search_memory — the agent's interface to storage
L3 Storage Zvec (dense vectors) + SQLite (bitemporal graph edges)
L4 Optimizer Post-session trajectory analysis (stub)

🚀 Quick Start

# Requires Python 3.10-3.12 (for Zvec binary compatibility)
# Install Python 3.12 via pyenv if needed:
pyenv install 3.12.8
~/.pyenv/versions/3.12.8/bin/python3 -m venv .venv
source .venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Run
python3 mimir.py

📦 Stack

Component Technology
Vector Storage Zvec v0.2.0 (Alibaba Proxima)
Graph/Relational SQLite3 (Python stdlib)
Embeddings BAAI/bge-small-en-v1.5 (384-dim, local)
Agent Framework LangGraph + LangChain Core
LLM Any OpenAI-compatible endpoint

📄 Documentation

  • PROSPECTUS.md — Full architecture deep-dive, competitive analysis vs Letta/Mem0/Zep/LangMem, and Zvec integration details

📜 License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mimir_memory-0.1.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mimir_memory-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file mimir_memory-0.1.0.tar.gz.

File metadata

  • Download URL: mimir_memory-0.1.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for mimir_memory-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2514804a3281833f90cce458a15d91f69ae4203d75fddcc25f3bde8f32736436
MD5 b0c8c06943c08f7f7d5ea2036ad16130
BLAKE2b-256 72871ed5b557bd220d81bba3dedb9153e356f0494ef58f374b5d843858fc37b6

See more details on using hashes here.

File details

Details for the file mimir_memory-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mimir_memory-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for mimir_memory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6402b1d01f538054a6664051512551334fd57a6a4fc8d22cdbe60f914a88248a
MD5 90799bdefad340eee513abe60980d619
BLAKE2b-256 8a5707c22ba23042e3eca374adaa85fb7d7eeedef1fbf248455bc8dde139fcd2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page