
SAME - Stateless Agent Memory Engine
If your AI forgets context between sessions, this gives it a persistent memory layer backed by SQLite and vector search. It indexes markdown notes from your project, surfaces relevant context automatically via hooks or MCP tools, and records structured decisions and handoffs so you pick up where you left off. Works with Claude Code, Cursor, Windsurf, or any MCP client through 17 tools including search_notes, save_decision, create_handoff, and get_session_context. Runs fully local with keyword fallback if you don't have Ollama. Includes PII scanning, push protection for multi-agent teams, and trust analysis to flag stale knowledge. Install takes under two minutes and the binary is 14MB.
- GitHub stars
- 19
- tools
- 19
- auth
- Required
- transport
- STDIO
- env var
- 1
- last updated
- Mar 20, 2026
Tools
19 toolsPublic tool metadata for what this MCP can expose to an agent.
search_notesSemantic search across your knowledge base
Semantic search across your knowledge base
No parameter schema in public metadata yet.
search_notes_filteredSearch with domain/tag/agent filters
Search with domain/tag/agent filters
No parameter schema in public metadata yet.
search_across_vaultsFederated search across multiple vaults
Federated search across multiple vaults
No parameter schema in public metadata yet.
get_noteRead full note content by path
Read full note content by path
No parameter schema in public metadata yet.
find_similar_notesDiscover related notes
Discover related notes
No parameter schema in public metadata yet.
get_session_contextPinned notes + latest handoff + git state
Pinned notes + latest handoff + git state
No parameter schema in public metadata yet.
recent_activityRecently modified notes
Recently modified notes
No parameter schema in public metadata yet.
save_noteCreate or update a note
Create or update a note
No parameter schema in public metadata yet.
save_decisionLog a structured project decision
Log a structured project decision
No parameter schema in public metadata yet.
create_handoffWrite a session handoff
Write a session handoff
No parameter schema in public metadata yet.
reindexRe-scan and re-index the vault
Re-scan and re-index the vault
No parameter schema in public metadata yet.
index_statsIndex health and statistics
Index health and statistics
No parameter schema in public metadata yet.
mem_consolidateConsolidate related notes via LLM
Consolidate related notes via LLM
No parameter schema in public metadata yet.
mem_briefGenerate orientation briefing
Generate orientation briefing
No parameter schema in public metadata yet.
mem_healthVault health with trust analysis
Vault health with trust analysis
No parameter schema in public metadata yet.
mem_forgetSuppress a note from search results
Suppress a note from search results
No parameter schema in public metadata yet.
mem_restoreUndo mem_forget (unsuppress a note)
Undo mem_forget (unsuppress a note)
No parameter schema in public metadata yet.
mem_list_suppressedList suppressed notes
List suppressed notes
No parameter schema in public metadata yet.
save_kaizenLog improvement items with provenance
Log improvement items with provenance
No parameter schema in public metadata yet.
Sponsors
Configuration
VAULT_PATH*Path to your markdown notes directory
Readme
SAME — Persistent Memory for AI Coding Agents
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.
Details
- Repository
- github.com/sgx-labs/statelessagent
- Website
- statelessagent.com
- Categories
- Databases, AI & LLM Tools, Search & Web Crawling
- Package
@sgx-labs/same- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active