Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Sandbox hardens how worktree pointer files are read

The sandbox now reads git worktree pointer files without following links, checks where they point, and suggests git worktree repair when they look wrong

Group of 2 You'll notice Improvements
JSON All of v2.1.333
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SandboxArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release

What

A git worktree is an extra checkout of a repository in another folder. Its .git is a small pointer file saying where the real git data lives. The sandbox, the walled-off area that limits what commands can read and write, now treats these pointer files more carefully:

  • Pointer files are read with O_NOFOLLOW, so a symbolic link (a file that points to another file) is not followed.
  • The gitdir and worktrees paths are compared to check that they name the same folder.
  • When the paths do not spell the real ones, a warning is logged that points you to git worktree repair.
  • A refusal of a path that goes through a per-process name is also recorded.
  • The sandbox setup tracks a new worktreePointerReadHardeningApplied state, with a builtConfigWorktreePointersHardened cache, alongside the existing worktree and common-dir .git guards. It appears to add another rule that blocks reading worktree pointer files.

The finding's title also mentions small glab and AWS tweaks, which it does not describe.

Why

This tightens the sandbox against link tricks aimed at worktree git data. If you use worktrees and see a warning about paths that do not match, running git worktree repair fixes the pointer files.

See this entry in the whole of v2.1.333 →

Feedback