5 pages for baseref.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code settings
Claude Code CLI · in the page
settings
…--------------- | :------------------------------------ | | `worktree.baseRef` | Which ref new worktrees branch from. `"fresh"` (default) branches from `origin/<default-branch>` for a clean…
All settings
Claude Code CLI · in the page
settings-reference
…trees.md) | Agents, sessions, and worktrees | Any file | | [`worktree.baseRef`](#worktree-baseref) | Branch new [worktrees](/docs/en/worktrees.md) from the remote default branch or your local HEAD | A…
Week 19 · May 4–8, 2026
Claude Code CLI · in the page
whats-new/2026-w19
…cs/en/interactive-mode.md#command-history) Other wins New `worktree.baseRef` setting (`fresh` | `head`) controls whether `--worktree`, the `EnterWorktree` tool, and agent-isolation worktrees branch…
What's new
Claude Code CLI · in the page
whats-new/index
…plugin archive for the current session. Also this week: **`worktree.baseRef`** chooses whether new worktrees branch from the remote default or local `HEAD`; **auto mode hard deny rules** block actio…
Run parallel sessions with worktrees
Claude Code CLI · in the page
worktrees
…so they branch from your repository's default branch unless `worktree.baseRef` is set to `"head"`. A subagent in its own worktree takes the instruction files it [starts with](/docs/en/sub-agents.md#w…