Skip to content

Comment on Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work

Comments

I have been using the builtin macOS `caffeinate` command for this.

For example:

caffeinate -dimsu

That keeps the Mac awake so I can use Claude remotely from phone.

You can also wrap your command as well, but I rarely use it.

caffeinate -dimsu your-agent-command

Caffeinate is burned into my muscle memory at this point. I attribute that to the realization that you could repeat opt flags. There's something catchy about

caffeinate -dimsum

Yum, dim sums with caffeine! I didn’t know you could repeat flags, I’m gonna steal the idea for some of my own scripts.

Claude Code actually uses caffeinate -i -t 300 during Claude’s turn, restarted automatically until the turn finishes.

The new wave apps named after speed / modifinil must be hard core?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.