Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.248 Home All releases olderv2.1.247 v2.1.250newer
Claude Code v2.1.248

Hooks can be filtered by a permission rule pattern

Use it now
Useful5 Signal4
Hooks Notable

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

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.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.248 →