LongMemory
LongMemory
GitHub: https://github.com/CaviraOSS/LongMemory
⭐ 星星數: 4542
摘要: 這是為 LLM 應用與自主 agent 打造的認知記憶引擎,以本地優先的 SQLite 儲存提供持久、可控的長期記憶,而不只是 RAG 或向量資料庫,讓應用不再失憶。
技術堆疊: TypeScript, SQLite, MCP, npm, Python, Docker, VS Code Extension
架構: 以單一 TypeScript 引擎貫穿多種使用介面:npm 函式庫、CLI、HTTP 服務、MCP server、dashboard 與 VS Code 擴充,底層採 SQLite 做本地優先的持久化儲存,基本用途無需外部資料庫或服務。記憶內容不可變(immutable)並附帶來源(provenance)與時間資訊,支援 strict、historical、associative、grounded 與多語言等召回模式,檢索結果具備可解釋的證據選擇並以 token 為界裁切上下文。另內建專案記憶治理、Skills、Chat Memory、LLM-Wiki 與 CodeGraph 等模組,並原生整合 Claude Desktop、GitHub Copilot、Codex、Antigravity 等 agent 宿主與 Python 框架。