After this page, you can carry one live claude session from this machine to another and it keeps working there under the same name. You can also preview any move before you run it, and move every live worker off a machine in one command.
fno agents session move carries a running claude session to another machine over ssh. The session keeps its name and its session id. A finished move leaves this machine with no running session and no registry row, so nothing runs twice.
A few words this page uses:
- Session: one agent’s running or resumable context, with its transcript.
- Harness: the agent program that runs the session, such as claude, codex or opencode.
- Row: the session’s line in this machine’s registry, the list that
fno agents session listreads. - Transcript: the file that records everything the session did.
claudekeeps it under its projects directory. A sidecar directory of helper files and a small origin record sit beside it. - Claim: the lock that says “this node builds here”. A node is one item of work on the backlog board, the list
fno backlog listprints. - Worktree: the checkout the session works in.
- Worker: a session that builds nodes. Lead: a session that holds a role scope, a named set of projects it directs, and it directs workers.
- Canon doc: the handoff file a lead carries for its role scope.
Before you start
- fno on both machines, from a build that carries
session move. The v0.4.8rc2 release and earlier do not include it. A version line does not settle it: a source build can print an older version. Check the feature instead. Runfno agents session move --helpon each machine. A build that carries the move prints a usage line. An older build answersunknown command. Install covers the release and source routes. - Password-free ssh from this machine to the target. Check with
ssh <host> fno --version, which prints the target’s version line. The move never asks for a password. - A claude daemon on the target, started from a login session there. fno calls a daemon started this way gui-born. To produce it, sit at the target’s graphical login, open a terminal, and run claude once. Its daemon starts in that login. A daemon that an ssh session or a launchd job started loses DNS on resume. The move refuses a daemon born anywhere else, and a resume over ssh starts one in the wrong place. The dry run cannot catch this one, because it reads this machine only. The real run refuses before anything moves.
- The same absolute paths on both machines: the worktree path, and the path of the claude transcript directory. Byte-identical paths are the usual setup with the same username on both machines. No flag changes this. The move creates the worktree on the target at that path. The target path must hold nothing there, or already hold this branch at this commit. Anything else refuses.
Preview the move
Add--dry-run to print the steps and move nothing. The preview reads this machine only:
atlas with your session’s name. Replace desk-o5f with the target’s host name, such as the name tailscale status prints for it. Any name your ssh accepts works here, an alias from your ssh config included. fno agents session list prints one JSON object per row, and this page uses four of its fields:
name for the command, and liveness: "alive" for a session that is running now. A row with a role_scope field is a lead. To put a session on this list, spawn it with fno agents spawn or let it join the mesh. Run a fleet covers both.
The print names every step, in order, and stops there:
<session-id> in the sample is the session’s id, and the command fills it in. fno agents session list prints it under harness_session_id. The list shows 11 steps because atlas carries uncommitted changes. A clean tree drops worktree sync, for 10 steps.
Move one session
Run the same command without--dry-run, from your own terminal on this machine. Do not run it from inside the session that is moving. The move stops that session, and the session takes its own terminal with it.
verify step polls the target for up to 120 seconds before the last line. The other steps take as long as the push and the copies take, so the whole move grows with the repo and transcript sizes. The target must list the session live under the same name and id, and its transcript must be longer than the copy the move made. When you see moved:, the session is working on the target, its claim is gone here, and it no longer runs on this machine. The worktree and the transcript files stay on disk here, as a backup. Remove them after you check the target.
There is no undo command. To move the session back, run the same command on the target, with this machine’s host name after --to.
To check it from the target:
Clean up this machine
The move left the worktree and the transcript files on disk here, as a backup. The row’scwd field in fno agents session list names the worktree path. When the target checks out, remove them:
~/.claude/projects/, in the folder named for the project, with the session id in the file name. Remove that session’s files by hand.
What a move carries, and in what order
The order is the contract. The source stops before the move copies one byte of the transcript, so two writers never share one transcript. The source row leaves last, after the target proves it holds a live session.
The claims handover keeps the claim’s holder string, so a node that was building on this machine keeps building, now on the target. The claim note records the move: it says which machine the claim came from.
Move every session off the machine
Add--all to move every live claude worker on this machine, one at a time:
--all sorts this machine’s rows into three piles. Live workers move in registry order. A live lead session does not resume on the target. The move carries its canon doc, then prints the command for its successor, the session that takes the lead’s scope on the target. The move skips every other row, and prints the reason. The first failure stops the run, and the last line names the workers it did not move:
--all --dry-run:
<handle> with the successor’s agent name on the target. The excerpt shows one line per pile. The real list names every row.
To take a machine out of service, run --all on it first. If the machine also holds claims you want elsewhere, read Run one fleet across machines.
Recover from a failed verify step
A failed verify step leaves the source stopped, with its row still in place. The move exits 1 and prints the resume command. To find the cause, look at the target. Run ssh desk-o5f fno agents session list to see whether the row landed. The daemon bullet above names the check that fails most often.
Refusals and fixes
A refusal prints one line and exits 2. It happens before any step touches either machine..local trimmed, matches this machine. Name the other machine.
fno agents session list to read the names.
ssh with fno --version. Fix the name, the ssh keys, or install fno there.
/ . _ - + @ ,. Rename the directory, or move the session by hand.
Move a codex or opencode session by hand
The command moves claude sessions only. The refusal above names a developer document for the by-hand route. That recipe is here. For any other harness, run these steps once, in this order:- Push the branch from the worktree.
- Stop the session:
fno agents session stop <name>. - Copy the worktree to the same path on the target.
- Copy the transcript. Run
fno agents registry transcript send <session-id>here, andfno agents registry transcript receive '<code>'on the target. The send prints the code. - On the target, run
fno agents registry adopt <session-id>, thenfno agents registry rename cc-<short-id> <name>.<short-id>is the first eight characters of the session id. - On the target, run
fno agents session resume <name>.
Next steps
- Run one fleet across machines: share one store, so one backlog board covers every machine.
- Use one mux across your machines: open the moved session’s terminal in your mux and type to it.
- Recover a worker: revive a session whose machine died, instead of moving it.