Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

New host environment variables CLAUDE_CODE_HOST_KEEPS_ROUTE and CLAUDE_CODE_HOST_KEPT_ENV, passed on to background sessions

Claude Code reads two new host variables and now passes them, plus two new disable switches, into background and tmux sessions it starts

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

Unclear It is not clear what either variable changes in Claude Code's behaviour beyond being read and passed on.

What

Claude Code reads two new environment variables. An environment variable is a setting you give a program when you start it. Both appear to be meant for an app that runs Claude Code inside itself.

When Claude Code starts a background session, which is a separate Claude Code run working on its own, the new session now receives four more variables if they are set in the session that started it:

The tmux launcher also passes CLAUDE_CODE_HOST_KEEPS_ROUTE and CLAUDE_CODE_HOST_KEPT_ENV into the sessions it opens. The four names are added to the lists of variables that are allowed through. The record of each started session also gains a fromOrdinaryContainer field.

Why

If you set any of these variables, they now carry over to background and tmux sessions, so those sessions behave like the one you started from. The two disable variables look like off switches for subagent names and in-place updates. Nothing documents these variables yet.

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 doubtIt is not clear what either variable changes in Claude Code's behaviour beyond being read and passed on.

See this entry in the whole of v2.1.333 →

Feedback