README.md

March 1, 2026 ยท View on GitHub

๐Ÿง  MNEMOSYNTH

Universal AI Memory Plugin

Persistent, verified, hallucination-resistant memory for ANY AI system.

PyPI VS Code Downloads Python Tests License


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)
ProjectStackLive At
mnemosynth-corePython ยท LanceDB ยท NetworkX ยท MCPPyPI
mnemosynth-extensionTypeScript ยท VS Code API ยท WebviewMarketplace
mnemosynth-webReact ยท Vite ยท Framer Motion ยท TypeScriptDeploy to Netlify/Vercel

โœจ Core Features

Three-Tier Cognitive Memory

TierBrain AnalogWhat It Stores
Episodic ๐Ÿ”ตHippocampusEvents, conversations, timestamped history
Semantic ๐ŸŸขNeocortexVerified facts, entity relationships
Procedural ๐ŸŸ CerebellumTools, schemas, workflows

Anti-Hallucination Engine

FeatureDescription
๐ŸงŠ Ebbinghaus DecayStale memories lose confidence over time
โš”๏ธ Contradiction DetectionDeBERTa NLI flags conflicting facts
๐Ÿ’œ Sentiment ScoringEmotional memories rank higher in retrieval
๐Ÿ›ก๏ธ Immune SystemBlocks prompt injections, rate limits, quarantines
๐Ÿ“Š CorroborationRepeated observations boost confidence
๐Ÿ’ค Dream ConsolidationHDBSCAN 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

ResourceURL
PyPI Packagepypi.org/project/mnemosynth
VS Code ExtensionVS Code Marketplace
GitHub Repositorygithub.com/vasudevjaiswal/mnemosynth
Web Documentationmnemosynth.tech

๐Ÿ“„ License

Apache 2.0 โ€” ยฉ 2025 Vasudev Jaiswal


๐Ÿง  MNEMOSYNTH โ€” Because AI shouldn't have amnesia.
pip install mnemosynth ยท one command ยท AI remembers everything