Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.119 Home All releases olderv2.1.118 v2.1.120newer
Claude Code v2.1.119

Spawn Mode for Worktree Isolation

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 worktree or in daemon.json spawnMode: "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 EnterWorktree as their first action
  • Session records now carry worktreePath, worktreeBranch, and worktreeHookBased fields
  • After killing a worktree session, the worktree is retained with a hint to use claude rm for 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.

See this entry in the whole of v2.1.119 →