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.335 ·

Path matching for deny rules and hooks works differently

Deny rules and hooks now match file paths with a different matcher, which treats repeated ** and trailing spaces differently

You'll notice Improvements
JSON All of v2.1.335
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.335,
ImprovementsSection of the release

Unclear Beyond repeated ** and trailing spaces, it is not known which paths now match differently.

What

Claude Code has changed how it checks file paths against two kinds of pattern. A deny rule is a setting that blocks Claude from touching certain paths. A hook is a command you set up to run when Claude does something. Both now use a different pattern matcher.

Two differences are visible:

  • Repeated ** segments in a pattern are collapsed into one. ** means "any number of folders".
  • Spaces at the end of a pattern are handled differently.
Why

This could change which paths your deny rules block and which paths trigger your hooks. If you rely on patterns with repeated ** or trailing spaces, check that they still match what you expect.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtBeyond repeated ** and trailing spaces, it is not known which paths now match differently.

See this entry in the whole of v2.1.335 →

Feedback