Update: you probably don't need this anymore. Recent Claude Code keeps your
Mac awake on its own while it's working - it spawns caffeinate -i -t 300 and
lets it lapse when idle / on exit. Shipped since around v2.1.83.
Verify during an active session:
pgrep -fl caffeinate