🧠 MNEMOSYNTH
Universal AI Memory Plugin
Persistent, verified, hallucination-resistant memory for ANY AI system.
______________________________________________________________________
什么是MNEMOSYNTH?
LLMs每次会议后都会忘记一切。 MNEMOSYNTH为AI提供了第二个大脑 --它以神经科学启发的认知记忆模式存储、验证和检索知识。
pip install mnemosynth # One command — everything works
mnemosynth serve # Start MCP server for Claude/Cursor/Windsurf零配置。没有Docker。没有外部数据库。没有API密钥。 一切都在当地运行 ~/.mnemosynth/.______________________________________________________________________
🏗️ 项目结构
mnemosynth/
├── mnemosynth-core/ 🐍 Python package (PyPI)
├── mnemosynth-extension/ 🧩 VS Code extension (Marketplace)
└── mnemosynth-web/ 🌐 Landing page & docs (React/Vite)| 项目 | 堆栈 | 在线 |
|---|---|---|
| mnemosynth核 | Python·LanceDB·NetworkX·MCP | PyPI |
| mnemosynth扩展 | TypeScript·VS代码API·Webview | 市场 |
| 记忆网 | React·Vite·Framer Motion·TypeScript | 部署到Netlify/Vercel |
______________________________________________________________________
✨ 核心功能
三层认知记忆
| Tier | 大脑模拟 | 它存储了什么 |
|---|---|---|
| 情节性的 🔵 | 海马体 | 事件、对话、带时间戳的历史 |
| 语义 🟢 | Neocortex | 已验证的事实、实体关系 |
| 程序性 🟠 | 小脑 | 工具、模式、工作流程 |
防幻觉引擎
| 特性 | 描述 |
|---|---|
| 🧊 艾宾浩斯腐朽 | 随着时间的推移,陈旧的记忆会失去信心 |
| ⚔️ 矛盾检测 | DeBERTa NLI指出相互矛盾的事实 |
| 💜 情绪评分 | 情绪记忆在检索中排名较高 |
| 🛡️ 免疫系统 | 阻止及时注射、速率限制、隔离 |
| 📊 佐证 | 反复观察增强信心 |
| 💤 梦想巩固 | HDBSCAN集群→ 促进核实事实 |
代理框架适配器
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因果记忆链
from mnemosynth.engine.causal import CausalChainEngine
engine = CausalChainEngine(brain)
engine.record_chain(
decision="Use SQLite", reasons=["Zero-config"], outcome="Users can pip install"
)代理对代理(A2A)协议
from mnemosynth.a2a import A2AProtocol
proto = A2AProtocol(brain)
proto.share_memory("User prefers Python", source_agent="researcher", visibility="shared")OpenTetry跟踪
from mnemosynth.telemetry import instrument_brain
instrument_brain(brain) # All operations now emit traces + metrics生产数据库后端
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 APIfrom mnemosynth import Mnemosynth brain = Mnemosynth() brain.remember("User prefers Python and dark mode") results = brain.recall("What does the user prefer?") brain.dream()
### MCP服务器
{ "mcpServers": { "mnemosynth": { "command": "mnemosynth", "args": ["serve"] } } }
### VS代码扩展
code --install-extension Vasudev-Jaiswal.mnemosynth
______________________________________________________________________
## 🛠️ 命令行界面
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
______________________________________________________________________
## 📁 发展
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
______________________________________________________________________
## 🔗 链接
|资源|URL|
|----------|-----|
| **PyPI包** | [pypi.org/project/mnemosynth](https://pypi.org/project/mnemosynth/) |
| **VS代码扩展** | [VS代码市场](https://marketplace.visualstudio.com/items?itemName=Vasudev-Jaiswal.mnemosynth) |
| **GitHub 仓库** | |
| **Web文档** | [记忆合成技术](https://mnemosynth.tech) |
______________________________________________________________________
## 📄 许可证
______________________________________________________________________
🧠 MNEMOSYNTH — Because AI shouldn't have amnesia.
pip install mnemosynth · one command · AI remembers everything