Loading...
Loading...
Add persistent, structured long-term memory to AI agents using Maximem Synap. Use this skill whenever the user is building, debugging, or evaluating an AI agent and mentions any of: "memory", "long-term memory", "persistent memory", "agent memory", "remember across sessions", "context window", "agent forgets", "user preferences", "personalization", "RAG over conversations", "multi-tenant memory", "memory layer", "Mem0", "Zep", "Letta", "SuperMemory", "Cognee", or asks how to integrate memory into LangChain, LangGraph, LlamaIndex, OpenAI Agents SDK, Pydantic AI, CrewAI, AutoGen, Google ADK, Haystack, Agno, Semantic Kernel, Microsoft Agent Framework, NVIDIA NeMo, LiveKit, Pipecat, Claude Agent SDK, Mastra, Vercel AI SDK, or MCP (no-code). Also trigger on direct mentions of "Synap", "Maximem", "maximem-synap", or `synap-*` package names. Covers SDK setup, scoping (User/Customer/Client), ingestion, retrieval, and one drop-in package per framework.
npx skill4agent add vaibhav0806/maximem_synap_sdk synapreference/frameworks/reference/discovery.mdreference/frameworks/<name>.mdreference/frameworks/_index.mdreference/dashboard-setup.md.mdreference/use-case-markdown.mdsynap_...export SYNAP_API_KEY=synap_...reference/sdk-setup.mdreference/ingestion.mdreference/context-fetch.mdpython scripts/verify_synap.py| Situation | Read |
|---|---|
| User is comparing memory vendors / asking "should I use Synap?" | |
| User has decided on Synap and is starting fresh | |
| User is using one of the 19 supported frameworks | |
| User wants memory in an MCP client (no code) | |
| User has a custom stack with no listed integration | |
| Multi-tenant B2B SaaS / "how do I scope per customer" | |
| Going to production / shipping | |
| Errors at runtime | |
reference/frameworks/reference/frameworks/_index.mdinstance_idinst_a1b2c3d4e5f67890api_keysynap_...client_idcli_...# Write side: ingest a conversation or document
await sdk.memories.create(
document="User: I prefer dark mode.\nAssistant: Noted.",
document_type="ai-chat-conversation",
user_id="alice",
customer_id="acme", # optional, scopes to org
mode="long-range", # "fast" or "long-range"
)
# Read side: fetch context before the next LLM call.
# Match the retrieval interface to the scope you wrote at — we wrote with user_id,
# so we read at user scope. (For per-conversation memory, register turns with
# sdk.conversation.record_message(...) first, then use sdk.conversation.context.fetch.)
context = await sdk.user.context.fetch(
user_id="alice",
search_query=["user preferences"],
max_results=10,
mode="fast", # "fast" (~50-100ms) or "accurate" (~200-500ms)
)USER → CUSTOMER → CLIENT → WORLD
private org-wide app-wide global*_iduser_iduser_idcustomer_idcustomer_id | | |
|---|---|---|
| Ingestion | Lightweight extraction, seconds | Full pipeline + graph, seconds-to-minutes |
| Retrieval | Vector only, ~50-100ms | Vector + graph + multi-signal rank, ~200-500ms |
fastlong-rangeimport os
from maximem_synap import MaximemSynapSDK
sdk = MaximemSynapSDK(
instance_id=os.environ["SYNAP_INSTANCE_ID"],
api_key=os.environ["SYNAP_API_KEY"],
)
await sdk.initialize() # validates key, opens connection
# ... use sdk ...
await sdk.shutdown() # flush telemetry, close connections@maximem/synap-js-sdkimport { createClient } from "@maximem/synap-js-sdk";
const sdk = createClient({ apiKey: process.env.SYNAP_API_KEY! });
await sdk.init(); // note: init(), not initialize()
// write: await sdk.addMemory({ userId, customerId, messages, mode })
// read: await sdk.fetchUserContext({ userId, searchQuery, mode })
await sdk.shutdown();MaximemSynapSDKsdk.memoriessdk.conversationinstance_id_force_new=Trueawait| Framework | Package | Language | Style |
|---|---|---|---|
| LangChain | | Python | History + callback + retriever + tools |
| LangGraph | | Python | Checkpointer + cross-thread Store |
| LlamaIndex | | Python | |
| OpenAI Agents SDK | | Python | Function tools |
| Pydantic AI | | Python | Deps + auto-registered tools |
| CrewAI | | Python | |
| AutoGen | | Python | |
| Google ADK | | Python | |
| Haystack | | Python | Pipeline components |
| Agno | | Python | |
| Semantic Kernel | | Python | Kernel plugin |
| Microsoft Agent Framework | | Python | Context + history providers |
| NVIDIA NeMo Agent Toolkit | | Python | |
| LiveKit Agents | | Python | Preload + recording + tools |
| Pipecat | | Python | Frame processors |
| Claude Agent SDK | | Py + TS | Hooks + MCP server |
| Mastra | | TypeScript | |
| Vercel AI SDK | | TypeScript | Model middleware |
reference/frameworks/<name>.mdSynapIntegrationErroruser_idcustomer_idconversation_idsdk.memories.create()sdk.conversation.context.fetch()reference/ingestion.mdreference/context-fetch.mdSYNAP_INSTANCE_IDSYNAP_API_KEYmode="long-range"document_type="ai-chat-conversation"mode="fast"max_results=10user_idcustomer_idconversation_idstr(uuid5(NAMESPACE_URL, session_str))https://docs.maximem.ai/concepts/customized-memory-architectureshttps://synap.maximem.aihttps://docs.maximem.ai/migration/overviewhttps://docs.maximem.aihttps://docs.maximem.ai/<path>.mdhttps://docs.maximem.ai/llms.txtmaximem-synap@maximem/synap-js-sdk.md