Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.271 ·

Environment variable passthrough gets an explicit allowlist

Environment variables now pass through shell commands via an explicit allowlist instead of always merging with PATH

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaElsewherewhat it touches
KindInternal Changesin v2.1.271,
Under the hood

Environment variables now pass through shell commands via an explicit allowlist instead of always merging with PATH

What

When Claude Code builds the environment for running shell commands, it now checks a new allowlist of variable names first. If a variable's name is on this allowlist, its value is taken directly rather than being merged or split the way PATH normally is; names not on the allowlist still go through the previous merging logic.

Why

This gives Claude Code more explicit control over which environment variables get special handling, rather than relying only on the general-purpose PATH-merging behavior for everything.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe finding does not say which variable names are in the allowlist beyond that they're uppercased.

See this entry in the whole of v2.1.271 →

Feedback