---
title: "Migrate from Grok Bot to Claude Code & Desktop"
slug: migrate-grok-bot-to-claude
htmlUrl: https://elf.dance/guides/migrate-grok-bot-to-claude
markdownUrl: https://elf.dance/guides/migrate-grok-bot-to-claude/md
description: "Export Grok Bot conversations via neutral Agent Pack into Claude with explicit complete_history: false tail caveats and zero silent loss."
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-grok-bot-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 Grok Bot to Claude Code & Desktop

Export Grok Bot conversations via neutral Agent Pack into Claude with explicit complete_history: false tail caveats and zero silent loss.

## Portability Receipt

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

### Portable directly

- Raw local Grok Bot snapshot archive preserved verbatim in original-bytes/grok-bot/
- Normalized recent conversation tail (transcript.jsonl and transcript.md)

### Requires translation

- Truncated local Grok Bot replica -> structured RESUME.md handoff prompt for Claude
- Bot persona notes -> project CLAUDE.md instruction seed

### Unsupported

- Full server-side history beyond local tail replica (complete_history: false)
- Cloud-only Grok Bot routines and hidden server memory entries
- Direct automated import API (Grok Bot exposes no inbound/outbound full-history API)

### Credential checklist

- GROK_BOT_SESSION_REF (read-only local profile session; never exported)
- ANTHROPIC_API_KEY or Claude Desktop account sign-in on destination

## Steps

### Step 1: Inspect the local Grok Bot persistence directory read-only

Verify the local sand-client-persistence directory exists on disk. Because Grok Bot stores only a truncated local replica, record complete_history: false upfront and skip Cookies, sand-secrets.json, and gateway-descriptor.json.

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

```sh
ls -la "$HOME/Library/Application Support/Grok Bot/sand-client-persistence"
```

### Step 2: Generate the stitched Grok Bot-to-Claude pack specification

Run the deterministic migration stitcher across export-from-grok-bot.yaml and import-into-claude.yaml to emit the compatibility buckets, RESUME.md rules, and named loss disclosures.

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

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

### Step 3: Place RESUME.md and CLAUDE.md seed into your Claude workspace

Review the generated neutral/RESUME.md handoff summary and persona seed before copying them into your destination workspace without overwriting existing files.

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

```sh
cat ./grok-to-claude-pack/migrate-grok-bot-to-claude.md
```

### Step 4: Verify disclosed complete_history: false and SHA-256 manifest

Confirm neutral/pack.json marks complete_history: false and every snapshotted .blob matches sha256-manifest.json with zero cookie or gateway secrets present.

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

```sh
python3 -c "import json; print(json.load(open(\"./grok-to-claude-pack/neutral/pack.json\")))"
```

Cross-ecosystem moves (`A -> B`) run through the same neutral Agent Pack (`profile.json`, `transcript.jsonl`, `transcript.md`, `RESUME.md`) without routing lock-in. Because Grok Bot offers no import API and its local replica only holds a truncated tail, this migration is **honestly scoped as a structured resume handoff** rather than a silent claim of complete history transfer.

## Explicit `complete_history: false` disclosure

Every Grok Bot export sets `"complete_history": false` in `profile.json` and records exact truncation boundaries:

- **What is preserved verbatim:** the raw local replica bytes inside `original-bytes/`, plus the exported `transcript.jsonl` and `transcript.md` tail.
- **What stays on the Grok cloud box:** older turn history outside the local tail window, server-side memories, and cloud-scheduled routines.
- **How Claude resumes cleanly:** `RESUME.md` distills active goals, constraints, and recent decisions so Claude starts with verified context while keeping raw originals inspectable on disk.

## Related migration paths

- Moving directly into Elf? Read [Migrate from Claude Code & Desktop to Elf](/guides/migrate-claude-to-elf).
- Moving from Elf back to Claude? Read [Migrate from Elf to Claude Code & Desktop](/guides/migrate-elf-to-claude).

## Workflow Reference

```elf-hands
{
  "repo": "ch5/elf-hands",
  "path": "tools/elf-hands/wf-dialog/workflows/lib/stitch-migrations.py",
  "workflowId": "stitch-migration",
  "variables": {
    "completeHistoryExpected": false,
    "preserveOriginals": true,
    "source": "grok-bot",
    "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
