Open-source toolkit for migrating reusable memory across AI agent systems.
Agent Memory Bridge helps you move project memory, preferences, decisions, rules, and handoff context between agent products without rewriting everything by hand.
Switching between AI coding tools usually means losing accumulated context:
- user preferences
- project instructions
- architecture decisions
- active task context
- reusable rules and notes
This project solves that with a portable canonical memory package plus adapter-based import/export.
- detect supported source formats automatically
- normalize memory into a canonical package
- publish a JSON Schema for external tool integrations
- convert across agent-specific formats
- run diagnostics with
doctor - generate suggestions and safe repairs
- compare migration stages
- create auditable bundles with manifests and verification
- generate distributable release bundles with zip output
- validate canonical packages before import or publishing
- scaffold new adapter integrations with a generated starter template
- run a local web UI for interactive migration workflows
- recommend target adapters and export profiles before conversion
- compare top migration targets with why-not explanations in the local UI
- migrate OpenHands repository customizations, scripts, skills, and microagents
- migrate Codex repository-scoped AGENTS instructions and overrides
generic-jsonmarkdown-bundle- codex-memories
- codex-repo
cline-memory-bankcursor-rulesclaude-code-memoryclaude-projectagents-mdopenhands-repo
Install locally:
python -m pip install -e .List adapters:
memory-migrate adaptersRun a full release demo with bundled artifacts:
memory-migrate release --input ./fixtures/cline-memory-bank --to agents-md --profile agent-rules --output-dir ./dist/demo-release --zip ./dist/demo-release.zipVerify the generated bundle:
memory-migrate verify --manifest ./dist/demo-release/manifest.jsonOfficial sample inputs live in fixtures/.
- quick walkthrough:
docs/demo.md - PowerShell demo script:
scripts/demo.ps1
Run the included demo script:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\demo.ps1Inspect a source:
memory-migrate inspect --input ./fixtures/agents-mdConvert with a target profile:
memory-migrate convert --input ./fixtures/generic-json/sample.json --to cursor-rules --profile developer-strict --output ./dist/cursor-rulesRun doctor:
memory-migrate doctor --input ./fixtures/agents-md --output ./dist/agents-doctor.jsonRun bundle:
memory-migrate bundle --input ./fixtures/cline-memory-bank --to agents-md --profile agent-rules --output-dir ./dist/bundle --zip ./dist/bundle.zipCompare stages:
memory-migrate compare --before ./dist/bundle/canonical.json --after ./dist/bundle/canonical.repaired.json --output ./dist/compare.jsonA bundle can include:
canonical.jsoncanonical.repaired.jsoncanonical.transformed.jsondoctor.jsoncompare.jsonmanifest.jsonbundle-summary.jsonexported/- optional zip archive
- CI runs unit tests plus CLI smoke checks on push and pull request
- pushing a tag like
v0.19.0triggers the GitHub Release workflow - releases attach build artifacts plus a demo migration bundle
src/memory_migrate_plugin/models.py: canonical schemasrc/memory_migrate_plugin/core.py: normalization and conversion pipelinesrc/memory_migrate_plugin/profiles.py: target-style export profilessrc/memory_migrate_plugin/bundle.py: one-shot bundle workflowsrc/memory_migrate_plugin/release.py: release bundle generationsrc/memory_migrate_plugin/manifest.py: hash manifest generationsrc/memory_migrate_plugin/verify.py: integrity verificationsrc/memory_migrate_plugin/adapters/: source and target adaptersfixtures/: official sample inputsdocs/demo.md: reproducible demo walkthrough
See CONTRIBUTING.md.
MIT