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

Device hooks get a full child environment, and an untrustworthy shell prefix is dropped

You'll notice
Useful3 Signal3
Cloud Sessions Notable

Hooks run for cloud sessions get a full environment, and an untrusted CLAUDE_CODE_SHELL_PREFIX is dropped with a warning.

CLAUDE_CODE_SHELL_PREFIX
What

Hooks run on your machine for a cloud session now get a composed environment rather than just a PATH. If CLAUDE_CODE_SHELL_PREFIX is set but is not an absolute path outside what the cloud session can write, it is left out of the hook's environment and you are warned that the hook ran unwrapped.

Details
  • PATH entries that the session can write to, or that cannot be resolved on this machine, are stripped and reported.
  • The old host-path/search-path plumbing is replaced by host environment composition, child environment construction, and explicit path placement and program resolution.
Evidence

Hooks marked cloud: "device" run for the cloud session WITHOUT your CLAUDE_CODE_SHELL_PREFIX here: this machine cannot vouch for that wrapper (it is not an absolute path outside what the session can write).

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 →