/engram:migrate-memoriesfrom engram
Migrates memories from claude-mem or Claude Code local file memories into Engram. Handles dry-run, source detection, and resumable execution.
Ships in engram. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Everything runs through one CLI bundled with the plugin. It is safe by design: dry-run by default, strictly read-only on the source store, and resumable — a local checkpoint (one per source) records every migrated item, so interrupted or repeated runs never send anything twice.
Invoke it through the wrapper in this skill's scripts/ directory (next to this SKILL.md).
It is self-locating — no environment variables or harness-specific paths needed:
bash <this skill's directory>/scripts/migrate.sh [flags]
migrate.sh --detect — it lists every supported source and
whether its store exists on this machine. If the user already named a source, honor
that. If exactly one is present, use it. If several are present, ask the user which to
migrate — claude-mem, Claude Code local memories (claude-memory), or both — before
doing anything else; each then goes through the full flow below with
--source <name>.--execute or
--rollback, even if the user included them — those only run after step 4. The dry-run
writes nothing and shows exactly what would migrate, so the user decides from facts.--map=NAME=owner/repo, or --repos-dir DIR if their repositories live somewhere
unusual); and the sample item. Topics are not part of the plan, and the source is not
pre-filtered: Engram's extraction classifies each memory into the group's topics and
decides what to keep.--execute or --rollback without a fresh confirmation from the
user in this conversation.--execute appended. Conversations are
submitted in chronological order without waiting on each pipeline run (Engram queues
internally); the command then waits for the pipeline to settle and reports what
committed. Exit codes: 0 done, 1 failed submissions/runs, 3 some runs still in the
pipeline — re-running the same command reconciles and continues safely from the
checkpoint.--limit N --execute — a small smoke run before committing to a full migration.--repos-dir DIR — extra directory to search for project repositories (repeatable).
Rarely needed: project directories are found through Claude Code's own session
registry, which records every directory the user worked in regardless of layout.--rollback — deletes every memory the migration created (via the server's per-run
manifests, so organically stored memories are untouchable) and resets the checkpoint.
Destructive: treat like --execute, explicit confirmation first.--source NAME / --db PATH — other adapters or a non-default store location.If asked about timestamps: memories carry their original dates as extraction context, so
the memory content reflects when things happened — but the created_at shown by search
is always the ingestion time; that's a server-side limit.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub weaviate/engram-plugins --plugin engram