---
title: "Migrate from Elf to Claude Code & Desktop"
slug: migrate-elf-to-claude
htmlUrl: https://elf.dance/guides/migrate-elf-to-claude
markdownUrl: https://elf.dance/guides/migrate-elf-to-claude/md
description: "Export Elf skills, instructions, MCP servers, and original source bytes back to Claude Code and Claude Desktop with Grade B+ parity."
status: published
author: "ELF"
evidenceLevel: public-docs-and-design
lastReviewedAt: 2026-12-03
lastModifiedAt: 2026-12-03
publishedAt: 2026-12-03
lastTestedAt: 2026-12-03
cacheKey: "sha256:migrate-elf-to-claude-20261203-v2"
workflowId: "stitch-migration"
workflowRepo: "ch5/elf-hands"
workflowPath: "tools/elf-hands/wf-dialog/workflows/lib/stitch-migrations.py"
portabilityGrade: "B+"
---

# Migrate from Elf to Claude Code & Desktop

Export Elf skills, instructions, MCP servers, and original source bytes back to Claude Code and Claude Desktop with Grade B+ parity.

## Portability Receipt

- **Round-trip grade:** `B+`
- **Original bytes preserved:** Yes
- **Loss disclosed:** Yes

### Portable directly

- SKILL.md skill folders exported straight to ~/.claude/skills/ and .claude/skills/
- MCP server definitions emitted to .mcp.json and claude_desktop_config.json
- Preserved Claude originals restored byte-for-byte when previously imported

### Requires translation

- Elf workspace instructions -> root CLAUDE.md and .claude/rules/ files
- Elf session exports -> Markdown RESUME.md plus raw transcript.jsonl archive
- Elf hook specs -> Claude Code settings.json hook entries

### Unsupported

- Persistent Elf scheduled jobs (no native Claude Desktop cron runner)
- Cross-host Elf mesh thread routing (elf msg) and multi-agent Buzz mailboxes

### Credential checklist

- ANTHROPIC_API_KEY or Claude OAuth login on the destination machine
- Destination MCP server environment placeholders (never serialized in pack)

## Steps

### Step 1: Generate the outbound Claude migration specification

Run the migration stitcher across export-from-elf.yaml and import-into-claude.yaml to inspect every skill, instruction file, MCP server, and unsupported Elf feature before copying files.

**Agent action (`cli`):**

```sh
python3 tools/elf-hands/wf-dialog/workflows/lib/stitch-migrations.py --source elf --target claude --out-dir ./elf-to-claude-pack
```

### Step 2: Inspect disclosed unsupported capabilities

Review the Unsupported bucket (persistent Elf schedules and cross-host elf msg mesh routing) and verify internal elf-memory stores are excluded from the export.

**Agent action (`cli`):**

```sh
python3 -c "import json; d=json.load(open(\"./elf-to-claude-pack/migrate-elf-to-claude.guide.json\")); print(d[\"portability\"][\"unsupported\"])"
```

### Step 3: Copy skills, CLAUDE.md, and MCP config without overwriting originals

Sync normalized SKILL.md folders, translated CLAUDE.md rules, and env-var-referenced MCP JSON into ~/.claude while retaining untouched originals in original-bytes/elf/.

**Agent action (`cli`):**

```sh
ls -la ~/.elf/skills ~/.elf/AGENTS.md ~/.elf/mcp.json ./elf-to-claude-pack
```

### Step 4: Verify SHA-256 original-bytes retention and Claude skill discovery

Validate sha256-manifest.json digests against original-bytes/elf/ and confirm Claude Code sees each exported skill under ~/.claude/skills/.

**Agent action (`cli`):**

```sh
ls -la ~/.claude/skills && cat ./elf-to-claude-pack/sha256-manifest.json
```

Leaving Elf is held to the exact same engineering standard as arriving: every skill, instruction, MCP server, and preserved original file exports cleanly with an explicit receipt and zero lock-in.

## Symmetric portability and named loss

| Bucket                   | What Elf exports                                                                        | Why it matters                                                         |
| ------------------------ | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| **Portable directly**    | `SKILL.md` directories, `.mcp.json`, preserved original files                           | Byte-identical round-trip when source artifacts originated from Claude |
| **Requires translation** | Elf workspace rules -> `CLAUDE.md`; session history -> `RESUME.md` + `transcript.jsonl` | Clean Markdown and JSONL remain readable by any editor or agent        |
| **Unsupported**          | Persistent Elf schedules, `elf msg` cross-host routing                                  | Explicitly listed before export rather than silently omitted           |

## Original bytes stay recoverable

Because Elf keeps untouched source snapshots in `original-bytes/` instead of overwriting them with lossy translations, moving from Claude to Elf and back to Claude restores unmodified upstream artifacts rather than re-translating a translation.

Looking to import into Elf instead? See [Migrate from Claude Code & Desktop to Elf](/guides/migrate-claude-to-elf).

## Workflow Reference

```elf-hands
{
  "repo": "ch5/elf-hands",
  "path": "tools/elf-hands/wf-dialog/workflows/lib/stitch-migrations.py",
  "workflowId": "stitch-migration",
  "variables": {
    "preserveOriginals": true,
    "source": "elf",
    "target": "claude"
  }
}
```

## Sources

- https://docs.anthropic.com/en/docs/claude-code/mcp
- https://git.ch5.me/ch5/ch5-company/src/branch/main/docs/strategy/elf-portable-life/PORTABILITY.md
- https://git.ch5.me/ch5/ch5-company/src/branch/main/docs/strategy/elf-portable-life/MIGRATION_ENGINE.md
