Claude Code v2.1.288 · 2 Oct 2026
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
Copy link
Copy markdown
JSON
All of v2.1.288
Use it now Tier: how much it should matter to you
5 Useful: my rating, 1 to 5
4 Signal: worth watching, 1 to 5
Worktrees Area: what it touches
New Features Kind: in v2.1.288, 02 Oct 26
What probably matters to you Section 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.
How sure we are
Something disagrees Something we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt Which host application sets these variables is not shown.
The name it cites is new in this build New in this build: CLAUDE_CODE_HOST_WORKTREE
See this entry in the whole of v2.1.288 →
2 Oct 2026 · 350 entries, this one is #7.
Use it now23 You'll notice177 Nothing to try yet24 Under the hood126
Open the release →
Names in this entry
env CLAUDE_CODE_HOST_WORKTREE Two new environment variables let an embedding app block file writes inside chosen paths, except inside one declared worktree
env CLAUDE_CODE_HOST_WORKTREE_FENCE Two new environment variables let an embedding app block file writes inside chosen paths, except inside one declared worktree
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
← Previous · 6 of 350
Setup-guide paste feature wired in but switched off
Nothing to try yet Terminal UI
In v2.1.288 What probably matters to you release-page order
Next → · 8 of 350
claude mcp serve lists agent types and blocks background agents in restricted mode
Use it now Background Agents