Good point, and I agree. Staying awake only keeps the Mac alive. It does not save the work. A few things that help with Claude Code in particular: claude --continue picks up the last session in that folder, and claude --resume lets you choose an older one. A crashed terminal does not have to end the task. Ask the agent to commit after each working step, on its own branch. A bad reboot then costs one step, not the whole run. Keep a short progress file in the repo with what is done and what is next. After a restart, the agent reads it and carries on. On a Mac that runs unattended, set sudo pmset -a autorestart 1 so it comes back on by itself after a power cut. Thanks for adding this. Recoverability is the part most setups skip.
