You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
PermissionsArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release
What
Claude Code checks git commands against its read block, a rule that limits which commands may only read. Before, this check gave a plain yes or no. It now returns a list of reasons, and it covers two more cases:
Git run after a directory change in the same command line
Git run after something writes to files git itself reads, such as HEAD, config or hooks
In these cases Claude Code reports: "Git after a directory change, or after writes to files git reads (HEAD, config, hooks), cannot be checked against the read block".
Why
This makes a permission safety check stricter for compound git commands, meaning several commands chained on one line. Changing folder or editing git's own files first can change what a later git command does, so Claude Code no longer treats such a command as safely checkable.
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed claude agents and claude rm refusing to remove a fully pushed session ("The worktree has unpushed commits") when its worktree has a…