Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

New CLAUDE_CODE_LAZY_WORKTREE variable turns off a worktree behaviour

Setting CLAUDE_CODE_LAZY_WORKTREE to anything now turns off one worktree behaviour that otherwise runs when other conditions hold

Use it now Notable No documentation found New Features
JSON All of v2.1.331
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
WorktreesArea: what it touches
New FeaturesKind: in v2.1.331,
What probably matters to youSection of the release

Unclear It is not clear what the worktree behaviour does, so what setting CLAUDE_CODE_LAZY_WORKTREE changes is unknown.

What

Claude Code now recognises an environment variable (a setting you put in your shell before starting it) called CLAUDE_CODE_LAZY_WORKTREE. A worktree is a separate working copy of your git repository that Claude Code can create. One worktree behaviour runs only when several conditions hold and this variable is not set. Setting it, to any value, turns that behaviour off. The variable is also passed on to processes Claude Code starts.

Two other variable names now appear:

Why

This is an opt-out for a worktree behaviour. The name suggests that behaviour delays creating the worktree until it is needed.

Read from
Names in the bundleCLAUDE_CODE_LAZY_WORKTREE
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear what the worktree behaviour does, so what setting `CLAUDE_CODE_LAZY_WORKTREE` changes is unknown.

See this entry in the whole of v2.1.331 →

Feedback