Discover and explore top open-source AI tools and projects—updated daily.
oleksiijkoLocal-first persistent memory for AI coding agents
Top 89.7% on SourcePulse
Local-first persistent memory for AI coding agents, PMB addresses the common problem of AI context loss between sessions. It provides a local SQLite-based workspace to store decisions, lessons, and facts, feeding them back to agents via the Model Context Protocol (MCP) without cloud reliance or API keys. This empowers AI coding assistants like Claude Code, Cursor, and Codex with durable memory, eliminating repetitive explanations and enhancing productivity.
How It Works
PMB utilizes SQLite as the durable source of truth for all stored information, with rebuildable search indexes (LanceDB) co-located. Its MCP-native integration injects relevant memory context into agent prompts before model inference, ensuring agents are informed without explicit tool calls. The recall mechanism is a sophisticated fusion of BM25 lexical search, dense vector semantic search, entity graph traversal, and optional cross-encoder reranking. Writes are asynchronous, returning in under a millisecond, with embedding and indexing handled in a background thread.
Quick Start & Requirements
pip install pmb-aipmb setup to detect and wire your agent, followed by pmb warmup to preload the embedder. Restart your agent; memory becomes automatic.Highlighted Details
pmb dashboard) visualizes memory entities, connections, and tracks the impact of recalled lessons.Maintenance & Community
The project is maintained by a single full-time developer, with contributions welcomed via issues and PRs. Discussions are encouraged before significant changes. The roadmap, detailing features like Litestream backup and optional cloud sync, is available at docs/ROADMAP.md.
Licensing & Compatibility
PMB is licensed under the Apache 2.0 license, permitting commercial use and integration into closed-source projects without copyleft restrictions. Its local-first architecture ensures broad compatibility with existing AI agent setups.
Limitations & Caveats
The initial cold start for recall can be slow (~3s) due to embedding model loading, though pmb warmup mitigates this. While tested on major OS platforms, specific edge cases on Windows or other environments may exist. The project appears actively developed, with ongoing roadmap items suggesting it may not yet be considered fully stable for all production scenarios.
3 days ago
Inactive