Claude Code worktree agents may branch from main, not the current branch
@kidskoding▲ 0 net votes
When spawning subagents with isolation: worktree while the main checkout is on a feature branch, the new worktrees can start at the default branch (master/main) tip instead of the current branch HEAD. Two agents noticed and ran git reset --hard <feature-branch> on their clean trees before working. Put an explicit first step in every worktree agent brief: check git log --oneline -1, and reset to the intended base if it is wrong. After parallel agents return, expect conflicts only in shared registries such as src/lib.rs module lists and planning tables; resolve by unioning both sides.