Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.304 ·

Git worktree checks now guard against files swapped while being read

When reading git files for a linked worktree, Claude Code now checks the opened file is the one it inspected and reads nothing if not

Under the hood Internal Changes
JSON All of v2.1.304
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Internal ChangesKind: in v2.1.304,
Internal ChangesSection of the release
What

A linked worktree is an extra working copy of a git repository that shares the same history. Claude Code checks the git files behind a linked worktree before trusting it.

Two things changed:

  • When reading the end of one of these git files, Claude Code now confirms that the file it opened is the same file it looked at a moment earlier. If they differ, it reads nothing and logs a note saying so.
  • An extra check on the git directory paths now rejects more worktree setups.
Why

This protects against a file or a shortcut link in the git directory being swapped for another one between the moment Claude Code checks it and the moment it reads it.

See this entry in the whole of v2.1.304 →

Feedback