<p align="center">
<img src="https://img.shields.io/badge/status-beta-orange" alt="Status">
<img src="https://img.shields.io/badge/license-MIT-green" alt="License">
<img src="https://img.shields.io/badge/node-%3E%3D20.0.0-blue" alt="Node">
<img src="https://img.shields.io/badge/TypeScript-5.8-blue" alt="TypeScript">
</p>
๐ง MiniMem
A Self-Hosted Personal Memory System โ The Central Memory for AI Agents
MiniMem gives AI agents persistent, structured, and retrievable memory. Built for single-machine self-hosting (sqlite + 127.0.0.1 + single API token), it uses a L1โL4 four-layer memory pyramid and a Dream Engine to automatically distill raw experiences into structured knowledge during nightly sleep cycles. Multi-tenant / JWT / domain isolation is deferred to v0.3+ โ see roadmap.
โจ Features
- ๐งฉ L1โL4 Memory Pyramid โ From raw experiences to mental models, layered compression with increasing abstraction
- ๐ Dream Engine โ 4-phase nightly pipeline: Audit โ Compile (Knowledge Compile) โ Dream โ Cleanup
- ๐ Knowledge Compile โ LLM-driven knowledge synthesis: generates bi-directionally linked knowledge pages with version history
- ๐ MCP Protocol โ Native Model Context Protocol support (stdio + Streamable HTTP)
- ๐งญ Vector Retrieval โ In-memory HNSW index + FTS5 full-text search + conditional indexing
- ๐ฆ Surface Files โ Agent-readable Markdown files (me/soul/work/social/life profiles)
- ๐ก Inspiration Engine (experimental) โ Cross-domain memory collision for creative sparks
- ๐ Version Control โ Snapshots + branching + rollback for safe memory evolution
- ๐ก๏ธ Temperature Decay โ Tiered compression with configurable decay models (linear/logarithmic/ebbinghaus)
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MiniMem โ
โ โ
โ โโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโ