Persistent conversational memory for AI coding assistants
pip install synapt==0.25.4 Copy PIP instructions
Memory and coordination infrastructure for AI coding teams. Search past sessions, preserve decisions, coordinate agents, and ship from one persistent system of record.
synapt gives Claude Code, Codex CLI, OpenCode, and other MCP-compatible assistants persistent operational memory.
It closes the gap between a one-shot assistant and a real working team:
Agent skill files for repository-native use live in:
pip install "synapt[all]" claude mcp add synapt -- synapt server synapt init That gives you:
pip install "synapt[all]" # full install: embedding provider, integrations, code index (several GB) synapt init # run once, in the project root (pip install synapt alone is small, but its search is keyword-only.) Start the MCP server with synapt server (stdio). Then:
category is validated on call and accepts exactly: architecture, collection, convention, debugging, decision, fact, infrastructure, lesson-learned, preference, tooling, workflow. Omitting it saves as workflow. An unrecognized category is refused with the list; nothing is written.
Save facts in the words a later question will use: search matches a saved fact by the words it was saved in, so "The billing service uses Postgres 14" is found by a question that says "billing service", not only by one that says "invoice data". If a search finds nothing, say you do not know. A fresh project has an empty index until the first save; that is normal.
pip install "synapt[all]" Add to ~/.codex/config.toml:
[mcp_servers.synapt] command = "synapt" args = ["server"] [mcp_servers.synapt.env] # Codex does not pass shell-inherited environment variables to MCP server # processes. Set here anything the synapt server must see (for example a # non-default store root). Note: Codex does not pass shell-inherited environment variables to MCP server processes. If the synapt server must see any environment variable (a non-default store root, an agent id), set it inside [mcp_servers.synapt.env] in the config above, not in your shell.
synapt init Cursor Add to project-local .cursor/mcp.json:
synapt init Windsurf Add to ~/.codeium/windsurf/mcp_config.json:
synapt init OpenCode Add to ~/.config/opencode/opencode.json:
{ "mcp": { "synapt": { "type": "local", "command": ["synapt", "server"], "enabled": true } } } Then run:
synapt init Manual MCP config If your client accepts stdio MCP definitions directly, use:
{ "mcpServers": { "synapt": { "type": "stdio", "command": "synapt", "args": ["server"] } } } Framework integrations synapt plugs into popular agent frameworks as a drop-in memory backend. Each adapter wraps recall's search and save API for the framework's native session interface.
Install all integration dependencies at once:
pip install synapt[all-integrations] Or install only the ones you need:
pip install synapt[anthropic] # Anthropic Memory Tool pip install synapt[openai] # OpenAI Agents SDK pip install synapt[google-adk] # Google ADK pip install synapt[langchain] # LangChain pip install synapt[crewai] # CrewAI Anthropic Memory Tool SynaptMemoryTool is a drop-in replacement for BetaAbstractMemoryTool. It presents recall's knowledge graph as a virtual filesystem that Claude can view, create, edit, and search. All writes are persisted as durable recall knowledge nodes.
pip install synapt[anthropic] Before (default memory, no cross-session persistence):
from anthropic import Anthropic client = Anthropic() response = client.beta.messages.run_tools( model="claude-sonnet-4-6", messages=[{"role": "user", "content": "Remember that we use blue-green deploys"}], tools=[{"type": "memory_20250818", "name": "memory"}], ).until_done() After (recall-backed memory with hybrid search):
from anthropic import Anthropic from synapt.integrations.anthropic import SynaptMemoryTool client = Anthropic() memory = SynaptMemoryTool() response = client.beta.messages.run_tools( model="claude-sonnet-4-6", messages=[{"role": "user", "content": "Remember that we use blue-green deploys"}], tools=[memory], ).until_done() An async variant (SynaptAsyncMemoryTool) is available for AsyncAnthropic clients.
SynaptSession is a session persistence adapter for the Agents SDK Session protocol. Items are stored in SQLite with non-blocking async DB access. Recall search and memory context are available as convenience methods.
pip install synapt[openai] Before (default SQLiteSession, no cross-session search):
from agents import Agent, Runner from agents.memory import SQLiteSession session = SQLiteSession(session_id="user-123", db_path="sessions.db") runner = Runner(agent=agent, session=session) After (recall-backed session with memory context):
pip install synapt[google-adk] Before (default in-memory, keyword-only search):
from google.adk.agents import LlmAgent from google.adk.memory import InMemoryMemoryService memory = InMemoryMemoryService() agent = LlmAgent(model="gemini-2.5-flash", name="my_agent", memory_service=memory) After (recall-backed, hybrid search):
pip install synapt[langchain] from langchain_core.messages import HumanMessage from synapt.integrations.langchain import SynaptChatMessageHistory history = SynaptChatMessageHistory(session_id="user-123") history.add_messages([HumanMessage(content="hello")]) print(history.messages) # Semantic search across all indexed sessions results = history.search("deployment config") # Persist a decision as a durable knowledge node history.save_to_recall("Always use UTC timestamps", category="convention") Works with RunnableWithMessageHistory, ConversationChain, and any LangChain component that accepts a BaseChatMessageHistory.
SynaptMemory provides long-term memory storage for CrewAI crews, backed by recall's hybrid search.
pip install synapt[crewai] from synapt.integrations.crewai import SynaptMemory memory = SynaptMemory() crew = Crew( agents=[researcher, writer], tasks=[research_task, write_task], memory=memory, ) crew.kickoff() Google ADK SynaptMemoryService implements ADK's BaseMemoryService with tenant-scoped search and persistence.
pip install synapt[google-adk] from synapt.integrations.google_adk import SynaptMemoryService memory = SynaptMemoryService() # search_memory scopes results by app_name and user_id # add_memory persists with tenant tags for isolation Claude Code (native memory backend) Replace Claude Code's built-in memory with recall-backed persistent memory in one line:
from synapt.integrations.anthropic import SynaptMemoryTool # Drop-in replacement for BetaLocalFilesystemMemoryTool tool = SynaptMemoryTool() Every create, view, str_replace, and search call now goes through recall: files are persisted, content is enriched, and search returns semantically relevant results across sessions. No configuration needed; pip install "synapt[all]" includes everything.
For MCP-based recall (search, journals, channels, 20+ tools):
The repository's claude-plugin/ package also owns a bounded SessionStart hook. Install it from this repository's marketplace:
/plugin marketplace add synapt-dev/recall /plugin install synapt-recall@synapt-plugins Current recall context is then injected automatically without resuming an old conversation. Do not also install the legacy global SessionStart hook because Claude Code runs both registrations.
For shared workspaces, link claude-plugin/project-settings.json to .claude/settings.json. After the folder is trusted, Claude Code prompts once for the marketplace and plugin consent, then keeps the plugin updated.
synapt init synapt init installs the dev-loop skill automatically, giving Codex recall search, channel coordination, and journal access.
The repository's codex-plugin/ package owns the equivalent bounded SessionStart hook and the bounded SessionEnd recovery checkpoint. A gripspace can link that package's hooks/hooks.json to workspace .codex/hooks.json, keeping the capability in recall while making continuity automatic for every Codex session in the workspace.
SessionStart recovery is intent-aware. A compaction-triggered start is always a no-op because the runtime already carried the live conversation forward. The default automatic policy also treats /clear as an intentional clean slate.
Set the policy globally in ~/.synapt/config.json or per project in .synapt/recall/config.json:
{ "session_start": { "continuity": "automatic" } } Available modes are off, explicit, automatic, and always. explicit only injects recovery context for a runtime resume. automatic covers normal startup, resume, and fork. always also crosses a clear boundary when that is explicitly desired. SYNAPT_SESSION_START_CONTINUITY provides the equivalent environment override.
Every recall_channel response reports the absolute channel state store it used. This makes identical calls from different worktrees distinguishable, including empty results and failures after the store has been resolved.
The reported path is operational provenance only. Public recall does not infer or report the caller's identity from it.
synapt recall setup remains available as the explicit recall-scoped equivalent.
synapt is one memory system with a clear adoption ladder:
Search prior sessions, file history, timelines, and journals on one machine.
synapt recall search "how did we fix auth" synapt recall files "src/auth.py" synapt recall timeline 2. Multi-agent memory Add channels, directives, reminders, and task claims for coordinated execution across worktrees and agents.
recall_channel(action="join", channel="dev", name="Atlas") recall_channel(action="intent", channel="dev", message="reviewing PR #403") recall_channel(action="claim", channel="dev", message="m_abc123") 3. Dashboard Expose the same shared operational memory in a browser-facing mission-control surface.
Use synapt as the memory and coordination substrate beneath higher-level agent orchestration.
LOCOMO evaluates long conversational memory over 10 conversations and 1540 QA pairs.
Selected published LOCOMO results as of 2026-05-21. Methodologies vary across systems including judge model, benchmark harness, and conversation count. This table does not present a comparable leaderboard. synapt's 72.4 is the March 2026 audited reproducible run under the gpt-4o-mini judge methodology matching the Mem0 paper. Rows marked [methodology-caveat] use different judge models or harnesses and are not directly comparable to synapt's audited run. Rows marked [historical: ENGRAM paper] reflect each system's score as published in the ENGRAM paper Table 1 with the shared gpt-4o-mini backbone, which may have been superseded by newer releases from those systems under different methodologies.
CodeMemo evaluates coding-memory tasks across factual recall, debugging context, architecture, temporal ordering, conventions, and cross-session continuity.
Comparison as of 2026-05-21. Single-evaluation snapshot under matched methodology.
synapt is built for teams that care where memory lives and how it is inspected.
For disclosure and reporting policy, see SECURITY.md.
synapt recall search "why did we disable snippets in retrieval-only mode" Find a file’s prior context:
synapt recall files "src/synapt/recall/channel.py" Run Codex on a timed review loop:
./scripts/codex-loop.sh \ --interval 60 \ --prompt "check #dev, review fresh PRs, or pick up the next unowned task. Post what you're doing in #dev." \ -- --full-auto Why teams adopt it Without memory, every new assistant session starts as a stranger.
That is the difference between an assistant demo and an operational system.
server source-render full-runtime anthropic openai google-adk langchain crewai all-integrations hf onnx transformers extract x dashboard code-index all full dev test
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




