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.242 Home All releases olderv2.1.241 v2.1.243newer
Claude Code v2.1.242

Git commands now ignore repository-supplied replace refs and grafts

You'll notice
Useful3 Signal3
Git Safety

A repository can no longer use replace refs or grafts to change what history Claude Code sees.

What

Every git subprocess Claude Code runs is now given GIT_NO_REPLACE_OBJECTS=1 and GIT_GRAFT_FILE=/dev/null, so a repository cannot use replace refs or a graft file to change what history Claude Code sees. This sits alongside the existing scrubbing of hook environment variables.

Details
  • Applied unconditionally on the git environment path, with no opt-out.
  • The shallow-repository probe gained a matching hardened path.
Evidence

GIT_NO_REPLACE_OBJECTS

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