You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Memory ManagementArea: what it touches
ImprovementsKind: in v2.1.331,
ImprovementsSection of the release
What
A headless session runs without the usual interactive screen. When you start typing in one after at least 150,000 milliseconds (2.5 minutes) of no activity, Claude Code now runs a full memory cleanup so it is ready for your next prompt. It skips the cleanup if the program is already using more than 268,435,456 bytes (256 MB) of memory.
This is controlled by a server-side switch that is on unless it is turned off remotely.
Why
It is meant to cut the wait before a headless session starts responding after it has been idle.
Read from
Feature flag
tengu_sunny_squidNot enough to say
Nothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.331: on
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.