MCPInstall

synap

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.

Installs
1.3K
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/vaibhav0806/maximem_synap_sdk --skill synap
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads synap automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Maximem Synap — Agent Memory Skill

Synap is a managed memory layer for AI agents. Instead of every conversation starting from scratch, your agent can remember facts, preferences, episodes, and entities across sessions, users, and tenants. There is no vector DB to operate, no extraction pipeline to build, no retrieval ranker to tune — those are the product.

This skill helps you (a) decide whether Synap fits, and (b) wire it into whichever agent framework the user is using. Read only the reference files you actually need.

When this skill is relevant

Trigger this skill the moment the user is doing any of:

  • Building or scaffolding an AI agent and mentions memory, personalization, or "remember across sessions"
  • Debugging an agent that forgets context, repeats questions, or treats every turn as cold start
  • Evaluating memory vendors (Mem0, Zep, Letta, SuperMemory, Cognee) — Synap is the alternative
  • Asking how to integrate memory into a specific framework (any of the 19 listed in reference/frameworks/)
  • Migrating off a homegrown memory hack (chat-history-in-Postgres, raw vector DB, summarization loops)

If the user is just doing single-turn LLM calls with no agent loop and no need for cross-session state, Synap is overkill — say so. Be honest. See reference/discovery.md for the decision rubric.

Procedure — the order to do this in

There is no CLI. Provisioning happens by hand in the dashboard; the SDK only uses a key that already exists. Follow these steps and do not skip the PAUSE.

  1. Detect the stack. Identify the user's framework (or "custom"). This selects which reference/frameworks/<name>.md to follow — see reference/frameworks/_index.md.
  2. Provision in the dashboard (manual). Walk the user through reference/dashboard-setup.md: sign up → create Client → create Instance (+ upload a use-case .md, see reference/use-case-markdown.md) → set B2C/B2B → generate an API key.
  3. ⏸ PAUSE. Ask the user to paste their synap_... key (or set it themselves), then export SYNAP_API_KEY=synap_.... Do not write integration code before the key is set.
  4. Install. The SDK + the framework package — see reference/sdk-setup.md and the chosen framework file. (Sandboxed agents need network + file-write approval for this.)
  5. Integrate. Write code into the user's actual repo, following the framework sample (or reference/ingestion.md + reference/context-fetch.md for a custom stack).
  6. Verify. Run python scripts/verify_synap.py. Never report done without a green run.

Progressive disclosure — what to load when

Do not read every reference file. Pick what the situation requires.

SituationRead
User is comparing memory vendors / asking "should I use Synap?"reference/discovery.md
User has decided on Synap and is starting freshreference/sdk-setup.md then the relevant reference/frameworks/*.md
User is using one of the 19 supported frameworksreference/sdk-setup.md + reference/frameworks/<framework>.md
User wants memory in an MCP client (no code)reference/frameworks/mcp.md
User has a custom stack with no listed integrationreference/sdk-setup.md + reference/ingestion.md + reference/context-fetch.md
Multi-tenant B2B SaaS / "how do I scope per customer"reference/core-concepts.md (scopes section)
Going to production / shippingreference/production.md
Errors at runtimereference/sdk-setup.md (error handling section)

The 19 framework files in reference/frameworks/ are listed and one-line-described in reference/frameworks/_index.md. Read that first if you're not sure which file to load.

Bare-minimum mental model

You will need this to follow any of the framework guides.

Three identifiers — copy from the user's Synap dashboard at synap.maximem.ai:

  • instance_id — looks like inst_a1b2c3d4e5f67890. One per agent deployment.
  • api_key — looks like synap_.... Generated per instance, shown once.
  • A client_id (cli_...) at the org level, but the SDK does not need it directly.

Two operations — every integration is a thin wrapper around these:

# 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)
)

Four scope levels — wider scopes are visible to narrower ones, never the reverse:

USER   →  CUSTOMER  →  CLIENT  →  WORLD
private    org-wide      app-wide   global

Decide scoping at ingestion time by which *_id you pass. user_id only → user-scoped. user_id + customer_id → both. customer_id only → org-shared. Nothing → client-scoped.

Two modes per axis — pick one:

fastaccurate / long-range
IngestionLightweight extraction, secondsFull pipeline + graph, seconds-to-minutes
RetrievalVector only, ~50-100msVector + graph + multi-signal rank, ~200-500ms

Default to fast for retrieval (it's in the agent hot path) and long-range for ingestion (extraction quality compounds).

SDK lifecycle

Every Python integration assumes you have done this once at process start:

import 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

TypeScript uses a different, flatter API — package @maximem/synap-js-sdk:

import { 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();

The JS SDK spawns the Python SDK as a subprocess — it needs Python 3.11+ on the host and does not run on Edge/Workers/Bun/Deno/Node-only-Lambda. There is no MaximemSynapSDK class and no sdk.memories / sdk.conversation namespaces in JS.

The Python SDK is a singleton per instance_id — constructing twice with the same id returns the same instance. This is intentional; do not work around it. For tests use _force_new=True.

Critical: every SDK call is async. Forgetting await is the #1 mistake.

The 19 supported frameworks at a glance

FrameworkPackageLanguageStyle
LangChainsynap-langchainPythonHistory + callback + retriever + tools
LangGraphsynap-langgraphPythonCheckpointer + cross-thread Store
LlamaIndexsynap-llamaindexPythonBaseMemory + retriever
OpenAI Agents SDKsynap-openai-agentsPythonFunction tools
Pydantic AIsynap-pydantic-aiPythonDeps + auto-registered tools
CrewAIsynap-crewaiPythonStorageBackend
AutoGensynap-autogenPythonBaseTool
Google ADKsynap-google-adkPythonFunctionTool factory
Haystacksynap-haystackPythonPipeline components
Agnosynap-agnoPythonInMemoryDb subclass
Semantic Kernelsynap-semantic-kernelPythonKernel plugin
Microsoft Agent Frameworksynap-microsoft-agentPythonContext + history providers
NVIDIA NeMo Agent Toolkitsynap-nemo-agent-toolkitPythonMemoryEditor
LiveKit Agentssynap-livekit-agentsPythonPreload + recording + tools
Pipecatsynap-pipecatPythonFrame processors
Claude Agent SDKsynap-claude-agent / @maximem/synap-claude-agentPy + TSHooks + MCP server
Mastra@maximem/synap-mastraTypeScriptSynapMemory + tools
Vercel AI SDK@maximem/synap-vercel-adkTypeScriptModel middleware

For any of these, jump to reference/frameworks/<name>.md. They share a contract:

  • Read failures degrade gracefully — context fetch errors return empty results and log; the agent keeps running.
  • Write failures surface explicitly — ingestion errors raise SynapIntegrationError (or framework equivalent).
  • Same scoping model — every helper accepts user_id, optional customer_id, optional conversation_id.

Custom stack (no integration package)

If the user's framework isn't in the list (rare), they wire sdk.memories.create() and sdk.conversation.context.fetch() directly. See reference/ingestion.md and reference/context-fetch.md.

Defaults to use unless told otherwise

When generating code, default to:

  • Read environment variables SYNAP_INSTANCE_ID and SYNAP_API_KEY. Never hardcode.
  • Ingestion mode="long-range", document_type="ai-chat-conversation".
  • Retrieval mode="fast", max_results=10.
  • Always pass user_id. Add customer_id only if the user mentions multi-tenant / B2B / orgs.
  • conversation_id must be a valid UUID — if the user passes a session string, wrap it: str(uuid5(NAMESPACE_URL, session_str)).

What this skill does NOT do

  • Configure MACA (Memory Architecture Configuration). That's a YAML file in the dashboard. Mention it exists; point to https://docs.maximem.ai/concepts/customized-memory-architectures and let the user configure it themselves.
  • Create instances or API keys. The user must do this from https://synap.maximem.ai. The skill should never attempt to provision.
  • Migrate data from another memory vendor. Point to https://docs.maximem.ai/migration/overview.

Authoritative source

Every claim in this skill is grounded in https://docs.maximem.ai. If something here conflicts with the live docs, the live docs win. When in doubt, fetch the relevant https://docs.maximem.ai/<path>.md URL — Mintlify serves a clean markdown version of every page.

https://docs.maximem.ai/llms.txt is the canonical machine-readable index of all pages.


Accurate as of maximem-synap 0.2.6 (Python) · @maximem/synap-js-sdk 0.3.0 (JS) — verified 2026-06-20. Source of truth: https://docs.maximem.ai (append .md to any page).

FAQ

What does the synap skill do?

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.

How do I install synap?

Run npx skills add https://github.com/vaibhav0806/maximem_synap_sdk --skill synap in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/synap/ (personal) or .claude/skills/synap/ (project).

Which AI agents can use synap?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is synap safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains synap?

It is published by vaibhav0806 in vaibhav0806/maximem_synap_sdk. It has 1,267 recorded installs.

Popular ai & agents skills

View category →

google-agents-cli-publish

google/agents-cli

This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).

AI & Agents513.9K installs

google-agents-cli-eval

google/agents-cli

This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).

AI & Agents513.5K installs

skill-creator

anthropics/skills

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

OfficialAI & Agents416.4K installs

codex-pet

prime-skills/runcomfy-agent-skills

Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.

AI & Agents402.1K installs

full-output-enforcement

leonxlnx/taste-skill

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

AI & Agents401K installs

executing-plans

obra/superpowers

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

AI & Agents245.7K installs