A Show HN keeps your Mac awake while AI agents work. The thread: that's a built-in command and a 15k-line reinvention (github.com)
Adrafinil, a Show HN named after a modafinil derivative, keeps a lid-closed Mac awake only while AI agents are working, then sleeps. Useful — until the thread points at the wheel it reinvents.
macOS ships 'caffeinate -dimsu.' Amphetamine has done conditional triggers for years. One commenter compressed the whole thing to a three-line shell loop; another asked why a sleep toggle needs 15,000 lines of code; a third noted the coding agent itself just shipped the feature.
Sign in to save