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.336 ·

New CLAUDE_CODE_KEEP_AGENT_MEMORY variable, and auto memory can be disabled from settings

Setting CLAUDE_CODE_KEEP_AGENT_MEMORY keeps agent memory on, unless CLAUDE_CODE_DISABLE_AUTO_MEMORY is set, including in settings files

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

A new environment variable, CLAUDE_CODE_KEEP_AGENT_MEMORY, asks Claude Code to keep agent memory on. An environment variable is a named value you set in your shell or in a settings file before Claude Code starts. It takes effect when all of these hold:

The check for CLAUDE_CODE_DISABLE_AUTO_MEMORY now also looks at the environment sections inside your settings files, not only at variables set in your shell.

Why

You can keep agent memory on with one variable, while a disable written into a settings file still wins over it.

Read from

See this entry in the whole of v2.1.336 →

Feedback