Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.288 ·

Host apps can fence off folders so file tools write only to a worktree

Two new environment variables let an embedding app block file writes inside chosen paths, except inside one declared worktree

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

Unclear Which host application sets these variables is not shown.

What

Claude Code now reads two environment variables (settings passed in from whatever launches it):

When they are set, Claude Code's file tools (the tools it uses to create and edit files) refuse to write inside the fenced paths, except inside the declared worktree. The refusal tells Claude to edit the worktree copy instead. If the values cannot be read, they are ignored, a log entry says so, and no write is blocked.

Claude Code removes both variables from the environment it hands to the programs it starts, so they do not leak further down.

Why

This gives an app that embeds Claude Code a way to keep it writing only to a worktree. Ordinary terminal users who do not set these variables see no change.

Read from
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 doubtWhich host application sets these variables is not shown.
The name it cites is new in this buildNew in this build: CLAUDE_CODE_HOST_WORKTREE

See this entry in the whole of v2.1.288 →

Feedback