Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.259 ·

git tool's allowed-subcommand shim gains git grep and worktree flag parsing

The restricted git wrapper now parses -C and --work-tree flags and fully handles git grep.

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaSandboxwhat it touches
KindImprovementsin v2.1.259,
You'll notice

The restricted git wrapper now parses -C and --work-tree flags and fully handles git grep.

The sandboxed git command allowlist now parses -C, --work-tree, and --work-tree= flags before the subcommand and resolves relative paths against that worktree. It also adds a full handler for git grep, alongside the existing expanded handling for git diff. This applies to everyone using the restricted git wrapper.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed Bash Read() deny rules not covering files given as option values (--ignore-revs-file=.env, -f.env, @file), git diff/git grep file…

See this entry in the whole of v2.1.259 →

Feedback