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.8 Home All releases olderv2.1.7 v2.1.9newer
Claude Code v2.1.8

macOS Sleep Prevention

What

Claude Code now automatically prevents macOS from sleeping during long-running operations.

Usage: Automatic—no user action required.

Details
  • Uses macOS caffeinate -i command to prevent idle sleep
  • Active only during operations that need it (reference-counted)
  • Automatically restarts caffeinate every 4 minutes to maintain prevention during very long tasks
  • Properly cleans up on session exit
  • Only applies to macOS; no effect on other platforms
Evidence

OW9() at line 517291 (caffeinate, -i, -t, "Started caffeinate to prevent sleep")

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.8 →