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.251 Home All releases olderv2.1.250
Claude Code v2.1.251

Sandboxed shells get a masked copy of the environment

You'll notice
Useful3 Signal3
Sandbox

Sandboxed shells see a masked environment, so your credential variable names stay hidden.

What

With credential env scrubbing on and sandboxing enabled, shell commands are now given a masked environment, and bash shells additionally get their env var names respelled. Sandboxed processes therefore cannot read the real names of your credential variables.

Details
  • Requires both credential scrubbing and sandboxing to be active; with either off, the normal environment is used.
  • The name-respelling step applies to the bash shell path specifically.
Evidence

sandboxMaskedEnv: Ee && R ? Ght().masked : void 0

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