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

Git metadata files are read with a size cap instead of being slurped whole

You'll notice
Useful2 Signal2
Git Safety

A giant git config file can no longer be slurped whole into memory; reads cap at a megabyte.

What

Reading a repository's config now reads at most 1,000,000 bytes and, when more remains, discards the trailing partial line before parsing, so a pathologically large config cannot pull an unbounded amount into memory.

Details
  • The .git file and commondir readers moved to the same capped reader, using sniffEncoding: !0, withBytes: !0.
  • Those two return null when the read was truncated, so a truncated prefix is treated as no answer rather than parsed as a path.
Evidence

sniffEncoding

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