
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 的联合搜索、按路径读取完整笔记、查找相似笔记、最近活动以及包含置顶笔记和交接的会话上下文。写入记忆:创建或更新笔记、记录结构化决策、编写会话交接和改进事项。维护索引:重建索引、查看索引统计、合并相关笔记、生成简报和 vault 健康报告。管理屏蔽:将笔记从搜索结果中隐藏、恢复以及列出已屏蔽的笔记。
- 适用场景
- 当你希望 AI 编程工具在多次会话之间、以及在 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 翻译