{"version":"2.1.336","anchor":"worktree-creation-can-be-pre-filled-by-a-host-host-fill-be","canonical_anchor":"worktree-creation-can-be-pre-filled-by-a-host-host-fill-be","heading":"Git worktrees can be prepared by the host app before Claude Code moves them into place","tier":"soon","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/worktree-creation-can-be-pre-filled-by-a-host-host-fill-be","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Git worktrees can be prepared by the host app before Claude Code moves them into place\n\nClaude Code can now let the app hosting it prepare a git worktree's files first, then move the finished worktree into place\n\n**Unclear.** It is not clear which host app supplies the fill, so readers cannot tell whether their setup uses it.\n\n**What**\n\nA git worktree is a second working copy of a repository, kept in its own folder, so work can happen there without touching your main checkout. When Claude Code creates one, it can now let the app it runs inside (the host) fill in the worktree's files first, in a temporary folder. Claude Code then moves the finished worktree into place. The move refuses to follow links that point elsewhere.\n\nIf the host's fill fails, Claude Code notes this and git creates the worktree the usual way, without the host's help. Claude Code does not use the host fill at all in these cases:\n\n- Windows\n\n- repositories that use sparse checkout, where only part of the repository is checked out\n\n- repositories with submodules, which are repositories nested inside another\n\n- a worktree that would sit on a different disk or drive from the repository\n\nWhile the fill runs, the worktree's lock note reads \"host fill of\" followed by the commit being filled.\n\n**Why**\n\nWorktree setup can be faster or safer when the host prepares the files. If anything goes wrong, Claude Code falls back to ordinary git, so a worktree still gets created.\n\n- Flag `tengu_valiant_pelican`: Not enough to say (read for one account on one subscription tier against v2.1.336; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Worktrees\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}