Keep your Mac awake for exactly as long as Claude Code is actively working — no more, no less — even across several concurrent sessions.
Claude Code can run for a while unattended (long tool calls, big builds), and
by default your Mac will happily go to sleep mid-task if you walk away. These
two hooks start a shared caffeinate -is (prevent idle + system sleep) on the