Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.71 Home All releases olderv2.1.70 v2.1.72newer
Claude Code v2.1.71

Heap Dump and Memory Diagnostics

What

A new diagnostic tool for dumping the JS heap and analyzing memory usage, useful for debugging memory leaks in long-running Claude Code sessions.

Details
  • Writes .heapsnapshot files to ~/Desktop for analysis
  • Generates a -diagnostics.json file with memory state information
  • Reports heap used, RSS, external memory, and total process memory
  • Detects potential leak indicators: high memory growth rate, active handles (timer/socket leaks), open file descriptors (file/socket leaks), detached contexts (iframe/context leaks)
  • Distinguishes between native memory leaks vs heap leaks
  • Available through a diagnostic command
Evidence

Heap dump output (search for "[HeapDump] Heap dump written to")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.71 →