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

Hooks can be filtered by a permission rule pattern

Hooks can carry a permission-rule matcher so they only spawn for matching tool calls.

Use it now Notable New Features
JSON All of v2.1.248
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
HooksArea: what it touches
New FeaturesKind: in v2.1.248,
What probably matters to youSection of the release
What

A hook can now carry a matcher written in permission rule syntax, so it only fires when the tool call matches. Non-matching commands no longer spawn the hook process at all, which cuts startup cost on hooks that previously ran and immediately exited.

Details
  • The field is documented as permission rule syntax, the same form used for permission allow and deny rules.
  • The stated benefit is avoiding hook spawns for commands the hook would ignore.
Evidence

Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands.

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.248 →

Feedback