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.246 Home All releases olderv2.1.245 v2.1.247newer
Claude Code v2.1.246

Hooks modules are read and linked before they run, with file and size caps

You'll notice
Useful3 Signal3
Hooks

Hooks modules now load up front and refuse if they link too many files or grow too large.

What

A hooks module's imports are now resolved and read up front rather than during evaluation, and two limits apply to every load: a module may link at most a fixed number of files, and the combined size of all its sources has a byte ceiling. Exceeding either refuses the load with its own message. No flag turns this off.

Details
  • Imports are pre-read into a map keyed by the importing file plus the exact import text, so the same spelling from different files resolves independently.
  • Refusing an import, spotting a module importing itself, and resolving an import path all moved into shared helpers new in this build.
Evidence

is past the

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.246 →