integrations-and-migration
Use MemMachine framework integrations and migration tooling for LangGraph, LangChain, LlamaIndex, CrewAI, AWS Strands, OpenClaw, Dify, n8n, FastGPT, example agents, and ChatGPT/export imports.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- integrations-and-migration
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use MemMachine framework integrations and migration tooling for LangGraph, LangChain, LlamaIndex, CrewAI, AWS Strands, OpenClaw, Dify, n8n, FastGPT, example agents, and ChatGPT/export imports.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/framework-integrations.md3.5 KB
- 参考文档references/migration-tools.md2.9 KB
- 参考文档references/troubleshooting.md2.8 KB
- 脚本scripts/chatgpt_export_probe.py3.5 KB
03 SKILL.md 正文
Integrations And Migration
Use this sub-skill when a task asks to connect MemMachine to an agent framework or platform, adapt an example memory-powered agent, or migrate conversation exports into MemMachine. Common signals include LangGraph, LangChain, LlamaIndex, CrewAI, AWS Strands, OpenClaw, Dify, n8n, FastGPT, simple chatbot, OpenAI/Qwen examples, ChatGPT export, OpenAI export, LoCoMo, and conversation history import.
Route Within This Sub-skill
- Read framework-integrations.md for integration patterns, prerequisites, validation checks, and route selection across supported frameworks/platforms.
- Read migration-tools.md for ChatGPT/export migration planning, local dry-runs, upload prerequisites, and duplicate/rate limit handling.
- Read troubleshooting.md for missing framework packages, server/auth errors, malformed export files, duplicate memories, and unsafe live operations.
- Run chatgpt_export_probe.py to inspect a local export JSON shape without uploading anything.
Integration Decision Flow
- Identify the host framework/platform and whether it uses Python, TypeScript, HTTP, plugin manifests, or MCP.
- Confirm a MemMachine API server or cloud endpoint exists and the user can provide project context and auth.
- Pick the lightest integration path:
- Python app code: Python SDK or framework wrapper.
- LangGraph graph:
MemMachineToolsor add/search tool factories. - Tool-capable local clients: MCP stdio/HTTP.
- Browser/no-code platforms: platform-specific plugin or REST integration.
- Node/TypeScript app: TypeScript REST client.
- Start with read-only health/config checks; run add/search only after writes are approved.
Migration Decision Flow
- Run a local-only export probe.
- Decide what memories should be imported and which metadata should separate user/session/source.
- Create or confirm the target MemMachine project.
- Upload in small batches with retry/rate-limit handling.
- Verify with targeted searches and counts.
- Record duplicate/skipped/failed rows without exposing private conversation content unnecessarily.
Cross-links
- Use python-sdk-and-cli for Python SDK method details, CLI command flags, filters, and LangGraph helper signatures.
- Use server-configuration-and-memory-engines for self-hosted server, storage, provider, REST, and MCP configuration.
- Use typescript-rest-client for Node/TS package usage and TypeScript app examples.
Safety Rules
- Do not run provider-backed example agents, no-code plugin actions, or live memory uploads without explicit endpoint, credentials, target project, and side-effect approval.
- Do not paste private conversation export contents into answers. Summarize counts, schema problems, and redacted examples.
- Treat benchmark/evaluation scripts as reference-only unless the user has provided datasets, services, provider credentials, and runtime budget.
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).