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

Spawned git and shell helpers get only an explicit environment

You'll notice
Useful3 Signal3
Permissions

Spawned git and shell helpers no longer inherit your full environment, only what Claude Code builds.

What

Three process-spawn sites no longer pass the parent's full environment to the child; each child now receives only the variables Claude Code builds for it.

Details
  • New fixed environment sets for git: one setting GIT_LITERAL_PATHSPECS to "1", a variant setting it to "0", and a config-isolation set including GIT_CONFIG_NOSYSTEM: "1".
  • These replace an older space-separated string listing the same variable names.
  • Unconditional at those call sites.
Evidence

extendEnv: !1

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 →