by Gyorgy of Keepresso
This started with a small, recurring annoyance. My Mac kept dozing off at the worst possible moment, mid-download, mid-render, and increasingly mid-agent-run while I was away from the keyboard. The old fix was to caffeinate in a terminal, or an app that just holds the Mac awake forever. Neither is smart. Both are all or nothing.
And the moment I wanted more than that, the picture got messy. Most of the keep-awake tools I found were old and no longer maintained, closed source, or paid, and none of them did the whole job. To cover smart triggers, a headless virtual display, and the rest of the Mac optimizations, I would have needed four or five separate apps stitched together. I wanted one small, well-built system that handles it all.
What I really wanted was simple to say and surprisingly hard to find. I wanted to close my laptop in the middle of any work, keep it running even on battery with no cable attached, and have the screen stay off inside the closed lid so nothing sat there lit in my bag. And I wanted it to be smart about the other direction too, so that once the job actually finished, the Mac was allowed to sleep instead of burning power all night.
So I built the tool I wanted, one that keeps the Mac awake only when it actually should be, then lets it rest.