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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mimir_memory-0.2.0.tar.gz.
File metadata
- Download URL: mimir_memory-0.2.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb697eece469e60d33814670478947fbe865cb3760b7892c468795aa5a32608b
|
|
| MD5 |
059fe820bd200cca4ec07d505b1ff4a6
|
|
| BLAKE2b-256 |
0fbfc967f15de33a765663b1104b7d7b5715e4f4d752b60c5964424811f39a1c
|
File details
Details for the file mimir_memory-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mimir_memory-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec1b0f2ccfc5171077ce99329e0594ec795a8d2c2d0ccb2f7b93d8a029001a9b
|
|
| MD5 |
fb95652c5cd7336a8bdaf13ebf0e7658
|
|
| BLAKE2b-256 |
36e38f4be05ff5c6f5aa75ddf12fffc6446414f287e49790645fa4ddb62261db
|