Guide · Migration

Migrate from Claude Code & Desktop to Elf

Move skills, CLAUDE.md instructions, MCP servers, and session history from Claude into Elf with Grade B+ fidelity and zero credential leakage.

By ELFUpdated Evidence reviewed Published Agent Markdown

Portability receipt

Grade B+Original bytes preservedLoss disclosed

Portable directly

  • • SKILL.md folders under ~/.claude/skills/ and project .claude/skills/
  • • MCP stdio and HTTP server entries from ~/.claude.json and claude_desktop_config.json
  • • Project and user CLAUDE.md instruction files (digest-addressed)

Requires translation

  • • Claude Code hook matchers -> Elf hook manifest entries
  • • Claude Desktop project prompts -> Elf pack instruction blocks
  • • Local JSONL session transcripts -> elf.session.v1 normalized pack

Unsupported

  • • Hosted Anthropic account billing state and cloud-only project caches
  • • Proprietary server-side memory indices not exposed in local files

Credential checklist (zero secrets in pack)

  • ANTHROPIC_API_KEY (user-supplied env or Elf Vault entry; never copied into pack)
  • MCP OAuth / bearer environment references from source server env blocks

Step-by-step walkthrough

  1. Step 1

    Generate the stitched Claude-to-Elf pack specification

    Run the deterministic migration stitcher against export-from-claude.yaml and import-into-elf.yaml to emit the compatibility buckets and merge rules.

    Agent action (cli)
    python3 tools/elf-hands/wf-dialog/workflows/lib/stitch-migrations.py --source claude --target elf --out-dir ./claude-to-elf-pack
  2. Step 2

    Inspect the zero-secret credential checklist and source paths

    Confirm that API keys and MCP server tokens stay out of original-bytes/claude/ and are listed only as environment variable references in the emitted pack.

    Agent action (cli)
    ls -la ~/.claude/skills ~/.claude.json && cat ./claude-to-elf-pack/migrate-claude-to-elf.guide.json
  3. Step 3

    Archive untouched originals alongside normalized Elf manifests

    Stage normalized skills, instructions, and MCP definitions while archiving untouched Claude source bytes under original-bytes/claude/ so future reverse moves stay lossless.

    Agent action (cli)
    ls -la ~/.elf/skills ~/.elf/AGENTS.md ./claude-to-elf-pack
  4. Step 4

    Verify SHA-256 original-bytes retention and portability receipt

    Check that sha256-manifest.json digests match every archived original file and that skills and AGENTS.md load cleanly under ~/.elf.

    Agent action (cli)
    cat ./claude-to-elf-pack/sha256-manifest.json

Moving from Claude Code or Claude Desktop into Elf keeps your skills, project instructions, and MCP tooling intact while storing untouched source bytes alongside the normalized Agent Pack.

What moves and what stays behind

BucketItems handledFidelity notes
Portable directlySKILL.md skills, .mcp.json / claude_desktop_config.json servers, CLAUDE.mdSHA-256 digest preserved; safe merge never overwrites existing Elf objects silently
Requires translationClaude hook matchers, Desktop prompts, JSONL session tailsTranslated into Elf manifests; original source bytes remain in original-bytes/
UnsupportedHosted Anthropic billing state and server-side private memoryDisclosed up front in the dry-run plan before any write occurs

Zero-secret pack guarantee

Secrets never travel inside an exported Agent Pack. Instead, the migration planner strips literal tokens from MCP env blocks and emits a Credential checklist referencing your local environment variables or Elf Vault items.

Leaving Elf uses the same bar

Portability is symmetric: when you want to move back out of Elf to Claude, follow the parity guide at Migrate from Elf to Claude Code & Desktop.