git worktree add cannot branch from an unborn HEAD, so starting a thread in New worktree mode inside a freshly-initialized repository (no commits yet) failed with a cryptic invalid-reference error. Detect the missing base commit up front and fail with actionable guidance to make an initial commit or use the current checkout instead. Co-authored-by: codex <[email protected]>