PATH
A Claude Code environment variable, read out of the shipped bundle. It has been in the build since v2.1.138, including the newest one read.
Inline admin policy scripts run with a stripped environment and a PowerShell resolved from fixed paths only.
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.234.
In the changelogs
21Releases whose published page names PATH.
-
v2.1.302
CLAUDE_CODE_AUTO_MODE_MODELnow sits on a list of environment variablesClaude Code now lists
CLAUDE_CODE_AUTO_MODE_MODELwithPATH,CLAUDE_CODE_EXTRA_BODYandCLAUDE_CODE_HOST_CREDS_FILE, and refers to it in more placesfound in this entry's text
-
v2.1.290
Environment variables from settings are applied earlier for programs Claude Code starts
Environment variables from your settings are now added before Claude Code filters the environment it passes to programs it starts
found in this entry's text
-
v2.1.290
Bash commands now get their PATH from a new source
Claude Code's saved shell setup now takes its PATH from a new source, falling back to your own, and always adds a guard on pkill
found in this entry's text
-
v2.1.287
A real gh install can take priority over Claude Code's stand-in
In stand-in mode, Claude Code now puts its gh shim after your PATH, so an installed gh runs first
found in this entry's text
-
v2.1.287
Shell snapshot timing is now measured, and Bash commands get an extra PATH step
Claude Code now records how long its shell snapshot takes and how it was captured, and adds an extra PATH step before Bash commands
found in this entry's text
-
v2.1.284
Bash commands no longer get duplicate folders in PATH
Claude Code no longer adds a folder to PATH a second time when it is already there for Bash commands
found in this entry's text
-
v2.1.282
Cloud file sync turns off when repository settings change PATH or similar variables
Cloud file sync now switches off for a session when a settings file in the repository sets PATH, a loader variable, or the temp or config folder
found in this entry's text
-
v2.1.281
Self-hosted runner: gh routing by path, staged files as args, subagent prompt inlining
The self-hosted runner now routes GitHub calls by path, passes staged files as arguments and can inline subagent prompts
found in this entry's text
-
v2.1.281
Settings now record which env values they offered
Claude Code now remembers which environment variable values came from your settings files, so later checks can tell them apart
found in this entry's text
-
v2.1.277
Cloud/remote hook execution now inspects a script's shebang line, not just its declared interpreter
Cloud/remote hook execution now reads a script's actual shebang line, not just its declared interpreter
found in this entry's text
-
v2.1.275
Git-related environment variables and CLI flags now get pattern-matched for hardening
Claude Code now scans environment variables and git flags for tricks that redirect where git actually operates
found in this entry's text
-
v2.1.274
Shell snapshot invalidation tracks plugin bin/ PATH changes
Cached shell snapshots are now invalidated when plugin bin/ directories change what's on PATH
found in this entry's text
-
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
found in this entry's text
-
v2.1.269
Agent proxy can now inject extra git include.path and prepend to PATH
The agent/tool proxy can now add extra git config includes and prepend a directory to PATH
found in this entry's text
-
v2.1.260
PATH executable resolution now skips symlinked/broken entries
PATH lookup for command completion now skips broken or unsafe symlinked executables.
found in this entry's text
-
v2.1.235
New opt-in prompt-input spell checking (aspell/hunspell/ispell)
Claude Code can now spell-check prompt input using aspell, hunspell, or ispell if you opt in
found in this entry's text
-
v2.1.235
Policy-helper subprocess environment scrubbing moved and hardened
Policy-helper environment scrubbing moved into its own module and now strips more variables
found in this entry's text
-
v2.1.235
Policy helpers can now be delivered by remote settings, but only after an explicit consent record — and they run in a scrubbed environment
Remote-delivered policy helpers now require explicit consent and run with a scrubbed environment
found in this entry's text
-
v2.1.234
Inline policy helpers run with a scrubbed environment and a fixed PowerShell path
Inline admin policy scripts run with a stripped environment and a PowerShell resolved from fixed paths only.
found in this entry's text
-
v2.1.202
Agent Proxy: Governed Git and GitHub (gh) Shim
found in this entry's text
-
v2.1.132
Custom Linux Sandbox Binary Paths
found in this entry's text
First cited
0No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.
Presence across releases
1Build by build
149One row per release since the first build this name was read out of. Absent means the build was read and the name was not in it, never mined means no bundle for that release was ever archived, and a declared type or a default is only ever what that release's own bundle stated.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the environment variable does. All environment variables.