A folder move records the path the agents' state is under in the VM's
state (the moved section, set in recordMove under the VM's lock: the
first move's old path, kept through more moves, cleared by a move back).
The VM's next setup gets a moved file with both paths and their Claude
Code slugs (claudeMoved, claudeSlug), and guest/claude.sh's
claude_project_moved renames ~/.claude/projects/<old slug> to the new
one, or merges into it without replacing anything, and moves
~/.claude.json's projects entry (claude_json_project_move, kept on its
own for reuse). Once the setup succeeds, followed clears the section.
The slug is Claude Code's own rule (2.1.318's sanitizePath): every
UTF-16 unit but an ASCII letter or digit a dash; over 200, cut and
ended with "-" and abs(h*31+u, int32) in base 36.
Tests: TestClaudeSlug, TestClaudeMoved, TestClaudeProjectMoved,
TestMovedTo, TestFollowed, TestMoveHere's record and its clearing,
move.txtar, e2e project's moved checks. Docs: commands.md's moved
folder (Claude Code, Codex, opencode), internals overview.
Co-Authored-By: Claude Opus 5.5 <[email protected]>