integrations-plugins
Use Mem0 framework, agent, and editor integrations: Vercel AI SDK provider, MCP/plugin setup for Claude Code, Cursor, Codex, OpenCode, Antigravity, OpenClaw, Pi Agent, lifecycle hooks, slash commands, and framework cookbooks.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- integrations-plugins
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Mem0 framework, agent, and editor integrations: Vercel AI SDK provider, MCP/plugin setup for Claude Code, Cursor, Codex, OpenCode, Antigravity, OpenClaw, Pi Agent, lifecycle hooks, slash commands, and framework cookbooks.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/editor-agent-plugins.md8.0 KB
- 参考文档references/framework-integrations.md7.2 KB
- 参考文档references/troubleshooting.md7.3 KB
- 参考文档references/vercel-ai-provider.md6.5 KB
- 脚本scripts/check_vercel_mem0_usage.mjs5.8 KB
- 脚本scripts/validate_mcp_config.py7.7 KB
03 SKILL.md 正文
integrations-plugins
Use this sub-skill when a task mentions Mem0, mem0ai, a memory layer, persistent agent memory, Vercel AI SDK memory, @mem0/vercel-ai-provider, createMem0, MCP setup, Claude Code/Cursor/Codex/OpenCode/Antigravity plugins, OpenClaw memory, Pi Agent memory, slash commands, lifecycle hooks, framework agents, or cookbook-style integration work.
Route First
- Use this sub-skill for integration package setup, provider wrapping, framework routes, MCP server config, plugin install choices, lifecycle hooks, slash commands, OpenClaw, Pi Agent, and agent/editor troubleshooting.
- Use Vercel AI Provider for
createMem0,addMemories,retrieveMemories,getMemories,searchMemories, AI SDK v6 routes, streaming, tool calls, sources, file prompts, and user scoping. - Use Editor and Agent Plugins for Claude Code/Cowork, Cursor, Codex, OpenCode, Antigravity, OpenClaw, Pi Agent, MCP-only vs full-plugin installs, hook behavior, slash commands, and duplicate registration checks.
- Use Framework Integrations for LangChain, LangGraph, LlamaIndex, CrewAI, AutoGen, Agno, OpenAI Agents SDK, Google ADK, and similar retrieve-generate-store patterns.
- Use Troubleshooting for install/import, environment variables, duplicate tools, unsupported package versions, plugin hook failures, MCP auth, memory scope, and workflow-specific failures.
Sibling Boundaries
- Route direct Python/TypeScript SDK CRUD/search,
MemoryClient,Memory, async clients, filters, exports, and feedback to../sdk-memory/SKILL.md. - Route OSS provider, vector store, embedder, LLM, reranker, graph-memory, Qdrant/PGVector dimensions, and optional dependency selection to
../provider-configuration/SKILL.md. - Route terminal-only Mem0 CLI workflows,
mem0 init/add/search/list, agent JSON output, and CLI import/export to../cli-memory/SKILL.md. - Route self-hosted Mem0 server, Docker Compose, REST deployment, OpenMemory API/UI/MCP hosting, auth, migrations, and operational backups to
../self-hosted-openmemory/SKILL.md.
Fast Decision Tree
- Vercel/Next.js route or AI SDK model wrapper? Use
createMem0from@mem0/vercel-ai-providerv3.0.0 with AI SDK v6 and preserve stableuser_idor equivalent entity scope. - Claude/Cursor/Codex/OpenCode/Antigravity request? Decide between full plugin and MCP-only. Full plugin gives hooks/skills; MCP-only gives memory tools only.
- Duplicate or missing agent tools? Inspect config first with
python scripts/validate_mcp_config.py; do not add a secondmem0server blindly. - OpenClaw or Pi Agent? Use the plugin-native memory backend/extension and its own command set; do not replace those workflows with generic SDK snippets unless the task asks for custom app code.
- LangChain/LangGraph/LlamaIndex/CrewAI/Agents framework? Keep the framework’s agent runner intact and add Mem0 as a scoped memory layer around retrieval and storage.
Bundled Scripts
python scripts/validate_mcp_config.py --helpexplains read-only MCP/plugin config checks for Claude, Cursor, Codex, OpenCode, and generic JSON/TOML config files.node scripts/check_vercel_mem0_usage.mjs --helpstatically checks TypeScript/JavaScript files for Mem0 Vercel provider imports,createMem0usage, user scoping, API key patterns, and unsupported AI SDK hints.
Working Rules
- Never print or hardcode real
MEM0_API_KEY, provider API keys, MCP bearer tokens, or personal memory contents. - Prefer environment variables and config templates; redact secret values in diagnostics.
- Treat hook installers, auto-capture scripts, and plugin setup commands as side-effectful. Use the bundled validators before proposing config edits.
- Do not tell future agents to run original repo examples, tests, or plugin scripts. Use the bundled references and scripts here.
- Confirm destructive memory operations, global-scope deletes, hook rewrites, and project-wide plugin config changes before acting.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).