MemoryLake
Back to all articles
TutorialMay 25, 20266 min read

Claude → Claude Code: Migrate Your AI Memory (2026 Method)

Claude the chat product and Claude Code share a model but live in very different places. Project Knowledge, System Prompts, and chat patterns all need to land in repo files, slash commands, or MCP servers. Here's the real plan.

The short answer

The Claude chat product and Claude Code don't share memory automatically. You'll download each Project's Knowledge files, copy each System Prompt into a CLAUDE.md at the matching repo root (or ~/.claude/CLAUDE.md for global guidance), and convert reusable prompts into slash commands under .claude/commands/. Plan 15–25 minutes per repo. A shared MCP-based memory layer like MemoryLake lets both clients read the same source.

Why people move from Claude chat to Claude Code

Three drivers in 2026:

  • Repo-native execution. Claude Code reads, edits, and runs commands in your repo without copy-paste.
  • Multi-step coherence. Long refactors and migrations stay coherent across many turns.
  • MCP and tool integration. First-class MCP and shell access fit teams shipping multi-file work.

What "memory" means in Claude vs Claude Code

Same model, different surfaces.

Claude chat memory lives inside Projects. Each Project has its own Project Knowledge (uploaded files and pasted text) and an optional System Prompt.

Claude Code memory centers on `CLAUDE.md` at the repo root, `~/.claude/CLAUDE.md` (user-global), custom slash commands under .claude/commands/, and MCP servers configured in Claude Code settings.

A Project's System Prompt becomes a CLAUDE.md. Project Knowledge becomes repo docs/ references. Reusable prompts become slash commands.

Step 1: Export your Claude memory

Claude has no Project-export bundle.

  1. Capture each Project's System Prompt. Open the Project → Project Instructions. Copy the contents into a text file labelled with the Project name.
  2. Download Project Knowledge files. Click each file and download originals. Re-upload from local copies if available.
  3. Copy pasted-text knowledge. Save into a notes.md per Project.
  4. List recurring prompts. Capture frequent question patterns in a prompts/ directory, one file per pattern.

End state: one folder per Claude Project with the System Prompt, original files, notes.md, and prompts/.

Step 2: Import into Claude Code

Claude Code expects plain markdown.

  1. Map each Project to a repo. If a Project corresponds to a single codebase, target that repo. For broader Projects, pick a primary repo plus user-global guidance.
  2. Create `CLAUDE.md` at the repo root. Paste the Project System Prompt, restructured for repo-specific concerns.
  3. Add Knowledge as repo docs. Place downloaded files under docs/ and reference them inside CLAUDE.md.
  4. Write `~/.claude/CLAUDE.md`. Paste cross-Project guidance you want available everywhere.
  5. Create `.claude/commands/<name>.md` for each reusable prompt. Claude Code exposes them as /<name>.
  6. Re-add MCP servers. Open Claude Code settings and add the MCP servers you used in Claude Desktop with their endpoint URLs and Bearer tokens.
  7. Probe. Run a small slash command or task in Claude Code.

What you'll still lose after migrating

  • Chat thread continuity. Claude chat conversations stay in the Claude UI.
  • Per-Project boundary. A CLAUDE.md reads alongside the repo content; the explicit Project wall becomes less visual.
  • Image and file-pull conversational habits. Terminal flow differs from chat flow.
  • Ongoing sync. New Project Knowledge in Claude next week won't appear in CLAUDE.md unless you redo the copy.

The better way: one memory layer, every Claude surface

If you use Claude chat for design and Claude Code for shipping, files drift the moment you finish migrating. Cross-repo standards end up in two places.

MemoryLake holds those rules once and exposes them through MCP. Both Claude Desktop (chat) and Claude Code support MCP, so the same project context flows into both from a single endpoint.

  • One source of truth. Update once; both surfaces see the change.
  • Cross-repo standards. Team conventions live above any single repo.
  • Drop-in for the next tool. Add Cursor or Windsurf with a config change.

Connect MemoryLake in 3 steps

Step 1: Create a project and load your context

Sign in to MemoryLake, open Project Management, and click Create Project. Name it "Claude ↔ Claude Code shared context." Drag your downloaded files (PDF, Word, Excel, PowerPoint, Markdown, or images) into the Document Drive under My Space, then open the Documents Tab and click Add Documents. Paste each System Prompt and your reusable prompts into the Memories Tab via Add Memory.

Step 1: Create a project and load your context
Step 1: Create a project and load your context

Step 2: Generate an MCP Server endpoint

Open the MCP Servers Tab inside the project, click Add MCP Server, describe it (e.g., "Claude + Claude Code bridge"), and click Generate. MemoryLake returns a Key ID, a Secret, and an Endpoint URL. Copy the Secret immediately — it is shown only once.

Step 2: Generate an MCP Server endpoint
Step 2: Generate an MCP Server endpoint

Step 3: Point both clients at the endpoint

Add MemoryLake to Claude Desktop's MCP config with the endpoint URL and the Secret as a Bearer token, then restart Claude. In Claude Code's settings, add the same MCP server. Re-open Claude Code.

Step 3: Point both clients at the endpoint
Step 3: Point both clients at the endpoint

Native migration vs MemoryLake

DimensionNative Claude → Claude CodeMemoryLake bridge
Steps required7–10 manual3 one-time
Estimated time15–25 min per repo~5 min setup
Preserves Project boundaryPer-repo onlyYes (one Project)
MCP tool reuseConfigure per clientEndpoint shared
Syncs ongoing changesNoYes
Works with a third tool laterNo (rebuild)Yes (add MCP)

Frequently asked questions

Can I import a Claude Project directly into Claude Code?

No. You translate the System Prompt into a CLAUDE.md and move Knowledge files into the repo.

Will my chat history move to Claude Code?

No. Chat history stays in the Claude chat product.

Do MCP servers carry over?

They share the protocol but live in separate configs. Add each MCP server to Claude Code's settings.

How long does the migration usually take?

Plan 15–25 minutes per repo, longer when a Project spans multiple repos.

How do I keep Claude and Claude Code in sync after migrating?

Connect both to a shared MemoryLake Project via the MCP Server endpoint so updates propagate to both.