My Mac fell asleep on Claude Code 86 times in a week. I took it personally.

by•

Late October. I had Claude Code on long jobs, the kind where you start it and go make lunch.

I kept coming back to a sleeping Mac and a job that had stopped halfway.


So I went through the Mac's own sleep log to see how bad it was. 86 sleeps in one week. Somewhere between 15 and 23 of them landed in the middle of a run.


I tried the usual fixes. I walked into meetings with the lid half open, like I was carrying soup. I turned on a keep-awake app, forgot about it, and found a warm bag and a dead battery.

So I built Night Crew. It watches the coding agents. The Mac stays awake while one is working and goes to sleep about a minute after the last one stops.

Then my own app embarrassed me.


One morning it let go of the Mac at 5:37 with the lid shut. The Mac stayed awake until I opened it at 9:08. Three and a half hours of nothing. The culprit was Apple Books, quietly holding the Mac awake in the background. I also learned that macOS only asks "the lid is closed, should I sleep?" at the moment the lid closes. It never asks again.
So now Night Crew asks for it.


On 21 November I launched here. Night Crew got one point. I have a theory about who gave it.

Two days later I was sure the app had failed to start after a restart. I went through the logs. There had been no restart. I had pressed ⌘Q myself. Bug closed. Cause: me.


The day after that I saw a burst of checkouts with no payments and decided nobody could pay. It was bots. They browse, they start a checkout, they leave.


Between all of that I shipped 13 updates in just over three weeks. The newest one is the one I like most. You lock the Mac, close the lid and leave. Then you open the Claude app on your phone and start a task, and it runs on your Mac with your files. No relay server of mine and no open port.


So that's three weeks. A sleep log, a book app, a keyboard shortcut and some very polite bots.
What's the strangest thing you've done to keep a laptop awake while an agent was running?

Product Link:

12 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.