What
Background sessions and remote control servers can now be configured to use git worktree isolation, giving each session its own isolated copy of the repository.
Details
- Configured via
--spawn-mode worktreeor in daemon.jsonspawnMode: "worktree" - System prompt injected for worktree sessions: "This is a git worktree — an isolated copy of the repository"
- Agents in worktree mode are instructed to call
EnterWorktreeas their first action - Session records now carry
worktreePath,worktreeBranch, andworktreeHookBasedfields - After killing a worktree session, the worktree is retained with a hint to use
claude rmfor cleanup
Evidence
Worktree spawn mode (search for "--spawn-mode", "spawnMode", "worktree retained at")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.