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 ·

New faster matcher for permission path rules, behind a pathRuleMatcher switch

A new one-pass matcher for allow and deny path rules is added, controlled by pathRuleMatcher, which defaults to off and maps on to shadow

Group of 3 Nothing to try yet In Development
JSON All of v2.1.335
Nothing to try yetTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
PermissionsArea: what it touches
In DevelopmentKind: in v2.1.335,
In DevelopmentSection of the release

What

Permission path rules are the allow and deny rules that decide which files and folders Claude Code may touch. A new matcher for these rules is added, built to work through a path in a single pass:

  • The relativeRuleRootsSwitch setting gains pathRuleMatcher, with the values off, shadow or on. It defaults to "off" when the server sends nothing.
  • When the setting is read, "on" is currently turned into "shadow".
  • When it is "on", the new matcher decides the result. Otherwise the old matcher still decides, the new one runs alongside it, and the two results are compared and reported.
  • Rules the new matcher cannot handle are reported as "it cannot be matched in one pass", and for hook rules containing such rules the "on" mode falls back to "off".

Before, the switch set only isOn and looksAhead.

Why

This is groundwork for a different way of checking allow and deny path rules. In shadow mode your rules are still decided by the old matcher, but if the new one is ever switched on, matching results could differ.

See this entry in the whole of v2.1.335 →

Feedback