Your agent didn't fail. You closed the lid
SleepSwitch is a macOS menu bar toggle that stops your Mac from sleeping — lid closed included. One click, no password prompts, and a battery guard so you don't cook your laptop in a bag. You kick off a long agent run — Claude Code refactoring half a service, Codex grinding through a test suite, some pipeline that's going to take 40 minutes. You close the lid and walk away. You come back to a…
SleepSwitch is a macOS menu bar toggle that prevents your Mac from sleeping, even when the lid is closed. It provides a quick and easy way to keep your Mac awake during long agent runs or other time-consuming tasks. Users can toggle the feature with one click, and the app handles both lid-close and display sleep with a separate battery guard feature to prevent overheating.
The sleep management feature is particularly useful for agentic workflows, where long-running tasks can be interrupted by macOS power management issues. The installation process is straightforward, requiring only Command Line Tools and a simple installation script. The app also includes a battery guard feature that automatically turns off the sleep blocking when the battery level falls below a set threshold.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.