Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.274 ·

Background shell memory-pressure reaping made smarter and better explained

Claude Code checks real host memory scarcity before killing idle background shells and explains why, with an opt-out env var

Group of 3 You'll notice Improvements
JSON All of v2.1.274
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Background TasksArea: what it touches
ImprovementsKind: in v2.1.274,
What probably matters to youSection of the release

What

  • Before killing a background shell command because of a memory-pressure event, Claude Code now checks actual host memory scarcity (reading /proc/meminfo on Linux/WSL, comparing available memory against both a percentage and an absolute floor) instead of reaping almost unconditionally.
  • More situations now skip a reap: a turn is currently running, delegated agents (subagents) are running, or the session was recently reaped, with deduplicated diagnostic logging explaining why a reap was skipped.
  • When a background shell is stopped for memory pressure, the explanation shown to the agent now explicitly tells it not to debug or auto-restart the command, to report what happened instead, and to only restart it if the user asks.
  • The message also tells the agent about the new CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP environment variable, which lets users turn this reaping behavior off entirely.

Why

This avoids killing background commands unnecessarily, stops the agent from reflexively trying to restart a command the system deliberately stopped, and gives users a way to disable the safeguard if it gets in their way.

See this entry in the whole of v2.1.274 →

Feedback