
SAME - Stateless Agent Memory Engine
io.github.sgx-labs由 GitHub 帳號 sgx-labs 發布v0.12.1更新於 Oct 25, 2026
Persistent memory for AI coding agents. Local-first SQLite + vector search. 17 MCP tools.
發布方自己的服務:Memory.fit
概覽
SAME 是一個本機優先的記憶引擎,讓 AI 程式助理對一組 Markdown 筆記擁有持久、可搜尋的記憶。
- 可以做什麼
- 搜尋與讀取筆記:語意搜尋、帶篩選的搜尋、跨多個 vault 的聯合搜尋、依路徑讀取完整筆記、尋找相似筆記、最近活動,以及包含置頂筆記和交接的 session 上下文。寫入記憶:建立或更新筆記、記錄結構化決策、撰寫 session 交接與改進事項。維護索引:重建索引、查看索引統計、合併相關筆記、產生簡報和 vault 健康報告。管理封鎖:將筆記從搜尋結果中隱藏、還原,以及列出已封鎖的筆記。
- 適用情境
- 當你希望 AI 程式工具在多次 session 之間,以及在 Claude Code、Cursor、Windsurf 等不同編輯器之間保留決策、上下文和交接,並以自己的 Markdown 筆記作為記憶儲存時適用。
- 執行需求
- 透過 npm 或安裝腳本作為本機程序執行;必須以 VAULT_PATH 環境變數指向你的 Markdown 筆記目錄。嵌入是選用的:關鍵字搜尋不需要任何外部相依,語意搜尋則需要本機 Ollama 實例或 OpenAI 或相容 OpenAI 的嵌入服務。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 SAME - Stateless Agent Memory Engine,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
SAME — Persistent Memory for AI Coding Agents
[License: BSL 1.1] [Go] [Latest Release] [GitHub Stars] [MCP Tools] [Discord]
Your AI forgets everything between sessions. SAME fixes that.
SAME gives every AI coding tool persistent memory. Claude Code, Cursor, Windsurf, Codex CLI, Gemini CLI — one memory layer that works everywhere. It indexes your markdown notes, surfaces relevant context automatically, and records decisions and handoffs so your AI picks up where it left off.
One binary. Fully local. No cloud. No telemetry. Mac, Linux, Windows, Raspberry Pi.
Install
Or via npm (all platforms): npm install -g @sgx-labs/same
Installed via npm? Update with npx same@latest or npm update -g @sgx-labs/same.
See It Work
Quickstart
same init sets up hooks and MCP tools automatically. Your AI gets relevant context on every session start.
Key Features
-
Your AI remembers everything -- Decisions, handoffs, and context survive across sessions. Close your terminal, switch projects, come back tomorrow. Nothing gets lost.
-
Memory integrity -- Tracks provenance (where notes came from), detects when source files change, and flags stale knowledge. Stale notes rank lower in search automatically.
same healthshows trust state across your vault. -
Dual-layer memory -- Extracts atomic facts from your notes via LLM. Facts are independently searchable and boost source notes in search results. The right answer surfaces even when the fact is buried in an unrelated conversation.
-
Streamable HTTP transport --
same web --mcpenables an HTTP MCP endpoint with Bearer token auth. Connect from Open WebUI, LobeChat, or any HTTP MCP client — no stdio required. -
Works with your tools -- 19 MCP tools for Claude Code, Cursor, Windsurf, or any MCP client. Search, save decisions, create handoffs without leaving your editor.
-
Safe for teams -- Multiple AI agents on the same codebase won't step on each other. File claims, push protection, and attribution built in.
-
Instant expertise -- 17 pre-built knowledge vaults with 870+ curated notes. One command to install. Your AI gets domain knowledge in seconds.
-
Connected knowledge -- See how decisions, files, and notes relate to each other. Ask "what depends on this?" and get real answers. Powered by SQLite.
Security & Teams
SAME includes built-in PII scanning and push protection:
- PII scanning -- Pre-commit hooks detect emails, API keys, secrets, and personal data before they reach git. Configurable blocklists with false-positive review workflow.
- Push protection -- Multi-agent file claims prevent AI agents from overwriting each other's work. Advisory locks with attribution.
- Audit logging -- Every guard scan, every allow decision, every override is logged.
- Privacy tiers --
_PRIVATE/is never indexed.research/is indexed but never committed. Your notes, your rules.
How It Works
Your markdown notes get embedded and stored in SQLite. When your AI starts a session, SAME surfaces relevant context via hooks or MCP. Decisions get extracted. Handoffs get generated. The next session picks up where the last one stopped.
No Ollama? No problem. SAME runs with zero external dependencies using keyword search (SQLite FTS5). Add Ollama later for semantic search -- same reindex upgrades instantly.
Why SAME
The Numbers
Add to Your AI Tool
Claude Code (recommended)
Cursor / Windsurf / Any MCP Client
Add to your MCP config (.mcp.json, Cursor settings, etc.):
19 MCP tools available instantly. Works without Ollama (keyword fallback).
Switch between Claude Code and Cursor without losing context. Your memory travels with you.
Tool Compatibility
Claude Code gets full automatic handoffs via hooks. Cursor, Windsurf, Codex CLI, Gemini CLI get full MCP tool access (search, save, decisions, graph) but handoffs need to be triggered manually. We're working on automatic handoff support for more editors.
MCP Server
SeedVaults
Pre-built knowledge vaults. One command to install.
Plus 9 more. Browse all 17 seeds on GitHub.
Privacy
All data stays on your machine. SAME creates a three-tier privacy structure:
No telemetry. No cloud. Path traversal blocked. Config files written with owner-only permissions.
More
Full CLI Reference
Configuration
SAME uses .same/config.toml, generated by same init:
Supported embedding models: nomic-embed-text (default), snowflake-arctic-embed2, mxbai-embed-large, all-minilm, text-embedding-3-small (OpenAI), and more.
Configuration priority (highest wins): CLI flags > Environment variables > Config file > Defaults
More Install Options
Troubleshooting
Start with same doctor -- it runs 20+ checks and tells you what's wrong.
"No vault found" -- Run same init from inside your notes folder, or set VAULT_PATH=/path/to/notes.
"Ollama not responding" -- SAME falls back to keyword search automatically. Test with curl http://localhost:11434/api/tags.
Hooks not firing -- Run same setup hooks to reinstall. Verify with same status.
Database issues -- Run same repair to back up and rebuild.
SAME vs. Alternatives
Eval Methodology
Internal evaluation on 105 tuning cases. Held-out validation: 93.3% Recall@5 on 30 blind test cases (see eval/METHODOLOGY.md).
All evaluation uses synthetic vault data. No user data used.
Links
Contributing
Contributions welcome. Open an issue or start a discussion.
See SECURITY.md for security-related reports.
Support
Buy me a coffee | GitHub Sponsors
License
BSL 1.1. Free for personal, educational, hobby, research, and evaluation use. Converts to Apache 2.0 on 2030-02-02. See LICENSE.
[圖片]
來源:README.md,提交 85e7ff2
工具
0版本歷史
1- v0.12.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。
其他 Memory 整合

Memory.fit
fit.memory官方發布者
託管式 Memory.fit 伺服器,讓 AI 讀取你的訓練、睡眠、恢復與飲食資料,並寫回每週計畫、每日目標和飲食計畫。
pg.ddx.io: the PostgreSQL community's memory
io.ddx.pg官方發布者
pg.ddx.io: the PostgreSQL community's memory 的託管 MCP 服務,由 pg.ddx.io 發布;無需登入;Streamable HTTP;29 個工具。
var.gg Naming Memory
gg.var官方發布者
遠端 MCP 伺服器,可依領域概念推薦並檢索韓、日、中、越、英多語言的程式識別字名稱,並提供 ERD 結構查詢。

Counterparts
ai.counterparts
為 Claude Code 與 Claude Desktop 提供的本地優先長期記憶:助理自行寫下關於你與專案的筆記,並在之後的對話中回想起來。

LAHZE - Persian AI Memory Platform
由 GitHub 帳號 pedramgholizadeh 發布
以波斯語為先的地理記憶平臺:發現地點,起草併發布僅限波斯語的記憶。AI 翻譯