Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.267 ·

New process.env read/write primitive for tools

New internal helpers let Claude read and set process environment variables

Use it now Notable New Features
JSON All of v2.1.267
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
5Signal: worth watching, 1 to 5
SDKArea: what it touches
New FeaturesKind: in v2.1.267,
What probably matters to youSection of the release

Unclear Whether this is already exposed as a usable tool, or is unreleased backing code, is not stated.

What

New internal functions read a process.env variable by name, validate a name/value pair before writing (rejecting names containing = or NUL bytes, and rejecting non-string values), and set or delete a process.env entry (deleting it when the value given is undefined). This looks like the backing implementation for a capability that lets Claude get or set environment variables for the current process.

Why

If exposed as a tool, this would let Claude inspect or change environment variables directly rather than only through shell commands, with basic validation to reject malformed names or values.

Read from
Names in the bundleprocess.env
What the documentation says
process.env Agent SDK reference - TypeScript modified, high confidence | `env` | `Record<string, string \| undefined>` | `process.env` | Environment variables. When set, this replaces the subprocess environment instead of merging with `process.env`, so pass `{ ...process.env, YOUR_VAR: 'value' }` to keep inhe… see the edit
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up process.env, on Modifying system prompts. Pass settings keys through the [`settings`](/docs/en/agent-sdk/typescript#options) option in TypeScript or [`settings`](/docs/en/agent-sdk/python#claudeagentoptions) in Python, and environment variables through the `env` option. In TypeScr… agent-sdk/modifying-system-prompts see the edit
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 doubtWhether this is already exposed as a usable tool, or is unreleased backing code, is not stated.
Anthropic's documentation agreesprocess.env on Agent SDK reference - TypeScript

See this entry in the whole of v2.1.267 →

Feedback