Purpose and positioning Synapse provides a private, local memory layer for any AI agent or workspace application, avoiding stuffing the entire history into every prompt. It organizes text into searchable Markdown archives and lets agents retrieve on demand, reading only the relevant pages. The project description emphasizes: a thousand pages that are never opened consume no tokens.
Key capabilities
- Markdown as the database: persistent data is plain Markdown files, which can be handled with git, Obsidian, grep, and any editor.
- Local import and indexing: the import process completes locally and for free, writing immutable raw Markdown and building a disposable SQLite FTS5 index, so search is available immediately.
- Optional semantic cache: when keyword retrieval starts missing obvious matches, an optional semantic cache can be enabled to fuse the two rankings; embeddings are generated from wiki pages and approved notes and stored in the same disposable SQLite file, without replacing FTS5; embedding raw history requires explicitly using the --include-raw flag.
- Optional wiki build: converts raw history into a linked wiki, first estimating the cost, then building in small, resumable batches; the build process is an ordinary for loop that issues one OpenAI-compatible chat-completions request per entry, and can connect to OpenAI or local Ollama/LM Studio services, supporting stopping and resuming without paying twice.
- Graph and retrieval: [[wikilinks]] become edges, and recursive SQLite CTEs handle multi-hop traversal; the single-file dashboard, CLI, Python API, REST API, and MCP server all share the same vault.
- MCP server: a small standard-library JSON-RPC loop running over STDIO, with no daemon and no MCP SDK dependency; it provides selective reading and propose_note.
Usage The command given by the project is a local STDIO MCP server, not a Codex or OpenAI integration, and can connect directly to MCP-capable clients such as Codex, Claude Code, OpenCode, and OpenClaw; workspace agents such as Pi, Orbit, and Hermes can use MCP when it is supported, or use the bundled skill and CLIWhen importing a claude.ai export zip, the format is detected automatically. After deleting synapse.db, run synapse reindex --vault ./my-brain to rebuild the FTS and graph; if using optional semantic search, then run synapse embed. Python usage example: from synapse import Vault; Vault("./my-brain").search("launch decision"). Model providers make standard-library HTTP POST requests to /chat/completions, requesting /embeddings only when needed, with no provider SDK; set SYNAPSE_BASE_URL, SYNAPSE_MODEL, and SYNAPSE_API_KEY if necessary.
Security and limitations Imported text is treated as untrusted data; Synapse does not execute it and instructs agents not to follow instructions appearing within pages; original sources are retained for provenance. Agents cannot silently rewrite memories: propose_note stages a semantic note with source information, along with an idempotency key and revision check, and the diff must be reviewed and approved outside MCP. Import history remains write-once; credentials, browser sessions, workspace state, and daily chat turns should not be written into notes; merges and deletions are limited to manual operations. The project explicitly states that certain features were not built, but the materials do not list the specific items one by one.
Use cases Suitable for users who want to provide local private memory for coding agents or workspace agents, preserve and retrieve personal chat history, manage knowledge in Markdown, and need multiple access methods via MCP/CLI/Python/REST. The project originated as a LangGraph London hackathon award-winning work and is currently a local-first rewrite that removes SurrealDB, FastAPI, React, LangGraph, and mandatory embeddings.