README.md
March 1, 2026 ยท View on GitHub
๐ง MNEMOSYNTH
Universal AI Memory Plugin
Persistent, verified, hallucination-resistant memory for ANY AI system.
What Is MNEMOSYNTH?
LLMs forget everything after each session. MNEMOSYNTH gives AI a second brain โ it stores, verifies, and retrieves knowledge with cognitive memory patterns inspired by neuroscience.
pip install mnemosynth # One command โ everything works
mnemosynth serve # Start MCP server for Claude/Cursor/Windsurf
Zero-config. No Docker. No external databases. No API keys. Everything runs locally under
~/.mnemosynth/.
๐๏ธ Project Structure
mnemosynth/
โโโ mnemosynth-core/ ๐ Python package (PyPI)
โโโ mnemosynth-extension/ ๐งฉ VS Code extension (Marketplace)
โโโ mnemosynth-web/ ๐ Landing page & docs (React/Vite)
| Project | Stack | Live At |
|---|---|---|
| mnemosynth-core | Python ยท LanceDB ยท NetworkX ยท MCP | PyPI |
| mnemosynth-extension | TypeScript ยท VS Code API ยท Webview | Marketplace |
| mnemosynth-web | React ยท Vite ยท Framer Motion ยท TypeScript | Deploy to Netlify/Vercel |
โจ Core Features
Three-Tier Cognitive Memory
| Tier | Brain Analog | What It Stores |
|---|---|---|
| Episodic ๐ต | Hippocampus | Events, conversations, timestamped history |
| Semantic ๐ข | Neocortex | Verified facts, entity relationships |
| Procedural ๐ | Cerebellum | Tools, schemas, workflows |
Anti-Hallucination Engine
| Feature | Description |
|---|---|
| ๐ง Ebbinghaus Decay | Stale memories lose confidence over time |
| โ๏ธ Contradiction Detection | DeBERTa NLI flags conflicting facts |
| ๐ Sentiment Scoring | Emotional memories rank higher in retrieval |
| ๐ก๏ธ Immune System | Blocks prompt injections, rate limits, quarantines |
| ๐ Corroboration | Repeated observations boost confidence |
| ๐ค Dream Consolidation | HDBSCAN clusters โ promote to verified facts |
Agentic Framework Adapters
from mnemosynth.adapters.crewai import get_crewai_tools # CrewAI
from mnemosynth.adapters.langchain import MnemosynthMemory # LangChain
from mnemosynth.adapters.autogen import get_autogen_tools # AutoGen
from mnemosynth.adapters.memory_bus import MemoryBus # Cross-Agent Bus
Causal Memory Chains
from mnemosynth.engine.causal import CausalChainEngine
engine = CausalChainEngine(brain)
engine.record_chain(
decision="Use SQLite", reasons=["Zero-config"], outcome="Users can pip install"
)
Agent-to-Agent (A2A) Protocol
from mnemosynth.a2a import A2AProtocol
proto = A2AProtocol(brain)
proto.share_memory("User prefers Python", source_agent="researcher", visibility="shared")
OpenTelemetry Tracing
from mnemosynth.telemetry import instrument_brain
instrument_brain(brain) # All operations now emit traces + metrics
Production DB Backends
from mnemosynth.stores.qdrant_store import QdrantEpisodicStore # Qdrant
from mnemosynth.stores.falkordb_store import FalkorDBSemanticStore # FalkorDB
from mnemosynth.stores.postgres_store import PostgresStore # PostgreSQL
---
## ๐ Upcoming Features
- **Native IDE Integrations** - Deep integration with popular IDEs beyond VS Code
- **Chronological Timeline & Conflict Resolution** - Enhanced timeline view with advanced conflict detection and resolution
- **Privacy First** - End-to-end encryption and privacy-focused architecture
---
## ๐ Quick Start
### Python API
```python
from mnemosynth import Mnemosynth
brain = Mnemosynth()
brain.remember("User prefers Python and dark mode")
results = brain.recall("What does the user prefer?")
brain.dream()
MCP Server
{ "mcpServers": { "mnemosynth": { "command": "mnemosynth", "args": ["serve"] } } }
VS Code Extension
code --install-extension Vasudev-Jaiswal.mnemosynth
๐ ๏ธ CLI
mnemosynth serve # Start MCP server
mnemosynth stats # Memory dashboard
mnemosynth search "query" # Semantic search
mnemosynth inspect # Browse memory tree
mnemosynth dream # Run consolidation
mnemosynth export -o out.json # Export to JSON
๐ Development
# Core
cd mnemosynth-core && pip install -e ".[dev]" && pytest
# Extension
cd mnemosynth-extension && npm install && npm run compile
# Web
cd mnemosynth-web && npm install && npm run dev
๐ Links
| Resource | URL |
|---|---|
| PyPI Package | pypi.org/project/mnemosynth |
| VS Code Extension | VS Code Marketplace |
| GitHub Repository | github.com/vasudevjaiswal/mnemosynth |
| Web Documentation | mnemosynth.tech |
๐ License
Apache 2.0 โ ยฉ 2025 Vasudev Jaiswal
๐ง MNEMOSYNTH โ Because AI shouldn't have amnesia.
pip install mnemosynth ยท one command ยท AI remembers everything
pip install mnemosynth ยท one command ยท AI remembers everything