/machine-transfer:machine-transferfrom machine-transfer
Move a multi-session Claude Code workspace (desktop app sessions and sidebar sections, repos and worktrees, ~/.claude config, skills and memory, scheduled tasks) from one Mac to another without losing work: take stock, freeze one wave at a time, write handoff notes, push everything to remotes, carry over the rest through GitHub or Syncthing, then restart each lead session as a fresh successor on the target that checks its branch heads before it resumes. Use when someone asks to move, migrate or transfer their Claude Code setup, sessions or projects to a new or second machine, to plan or run such a move, to write a handoff note or handover message for a successor session, to restart sessions on another Mac, or to check a move's progress.
Ships in machine-transfer. 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.
A busy Claude Code workspace is more than files. It has lead sessions with child sessions, work on unpushed branches, sidebar sections, memory, skills, scheduled tasks and signed-in tools. Copying the disk moves the files and loses the rest. This skill moves the workspace by fresh restarts: every lead session writes down its state, a successor starts on the target machine, checks that state against git, and takes over. The old session goes idle.
Words used below are defined in references/glossary.md. The short version: the source machine is where you are, the target is where you're going, a lead session owns a scope, its successor takes it over on the target, and a wave is one sidebar section moved at a time.
~/.claude sit at the same paths, ideally under the same user name.
Memory folders, handoff notes, scripts and hooks all name absolute paths;
identical paths let them work unchanged.git rev-parse, gh auth status), not by trusting either report.| Role | Where | Does |
|---|---|---|
| Operator | both machines | Decides, signs in to tools, moves files that need a human, types the go for new sessions on the target, says when to switch. |
| Transfer coordinator | source | One session that runs the move: inventory, plan, briefs, the transfer board, check-ins, carry-over. |
| Entry session | target | The first session on the target, reached over Remote Control. Builds folders, clones, unpacks, then starts each successor. Starts no child sessions of its own. |
| Lead session (predecessor) | source | Reaches a safe point, writes its handoff note, sends the handover message, retires. |
| Successor session | target | Checks the heads in the handover, restarts its child sessions, reports restored. |
Stages 1–4 run once. Stages 5–7 repeat for each wave. Stages 3 and 4 can run
side by side. Details, checks and the "ends with" for each stage:
references/stages.md. scripts/… below means this
skill's own scripts folder; install the skill on the target too (stage 3,
step 0), so both machines have the same scripts.
~/.claude setup.
Run scripts/scan-workspace.sh and scripts/scan-unpushed.sh.gh and
clones the transfer repo. Then the entry session builds the folder
skeleton, sidebar sections and tools.
Checklist: references/target-setup.md.git bundle for branches that can't be pushed, a secret scan first.scripts/scan-unpushed.sh must come back empty for the wave.~/.claude travel over a file bridge as sealed
archives with a manifest: references/file-bridges.md.The transfer coordinator keeps a transfer board (templates/transfer-board.md): one row per side with where it runs, how to reach it, its state and what it still owes. It checks in with every side on a schedule, reports only changes and gaps to the operator, and reconciles contradictions with evidence. Rules and message patterns: references/coordination.md.
ListAgents shows two rows with one title, address by the row's [ref].local_… id and the file
name of its transcript differ. Record the session id on the board.~/.claude
archive must be sent again before each wave's successors start:
scripts/stage-claude-home.sh <dir> --memory-only --only-project '<glob>'
for that wave's projects, then seal and check. Never unpack it over a
project whose successor is already restored.settings.json is staged as
settings.json.from-source, so the source's hooks and paths don't act on
the target before the operator has checked the paths, reviewed hooks,
permissions (defaultMode above all), env and apiKeyHelper, and
merged them.~/.claude.json, which isn't copied (it holds
account state). Add the servers again on the target with fresh keys.~/Downloads (or Desktop and
Documents) without a privacy grant. Have the operator move incoming files
to a folder under the project root rather than changing security settings.| Path | What |
|---|---|
references/glossary.md | The terms used throughout |
references/stages.md | Each stage: what gets built, the operator's part, what it ends with |
references/restart.md | How a lead session comes back on the target |
references/file-bridges.md | GitHub and Syncthing as primary bridges; AirDrop/USB fallbacks; sealed archives |
references/target-setup.md | Target prerequisites learned the hard way |
references/secrets-and-schedules.md | Credentials, OAuth order, scheduled tasks |
references/services.md | Background services (LaunchAgents, cron, login items) and their state |
references/coordination.md | Transfer board, check-ins, reconciling reports |
references/state-copy.md | The heavier alternative: copying session state |
templates/*.md | Freeze brief, handoff note, branch ledger, handover message, restored note, entry briefs, transfer board |
scripts/scan-workspace.sh | Inventory of a projects root as TSV |
scripts/scan-unpushed.sh | Everything not on a remote; silent when clean |
scripts/stage-claude-home.sh | Stage ~/.claude config and memory, without history or secrets |
scripts/seal-archive.sh | Secret scan → manifest → tar (optionally age-encrypted) |
scripts/check-archive.sh | Safe unpack plus manifest check on the target |
scripts/check-heads.sh | Compare a branch ledger with the local clones |
.env files with live values, or
tokens in ~/.npmrc.references/coordination.md (opens in a new tab)references/file-bridges.md (opens in a new tab)references/glossary.md (opens in a new tab)references/restart.md (opens in a new tab)references/secrets-and-schedules.md (opens in a new tab)references/services.md (opens in a new tab)references/stages.md (opens in a new tab)references/state-copy.md (opens in a new tab)references/target-setup.md (opens in a new tab)scripts/check-archive.sh (opens in a new tab)scripts/check-heads.sh (opens in a new tab)scripts/scan-unpushed.sh (opens in a new tab)scripts/scan-workspace.sh (opens in a new tab)scripts/seal-archive.sh (opens in a new tab)scripts/stage-claude-home.sh (opens in a new tab)templates/branch-ledger.md (opens in a new tab)templates/entry-brief-carry.md (opens in a new tab)templates/entry-brief-setup.md (opens in a new tab)templates/entry-brief-spawn.md (opens in a new tab)templates/freeze-brief.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (n-uf/claude-machine-transfer) — no native marketplace selected
npx claudepluginhub p/n-uf-machine-transfer