What Still Stops Overnight Coding Agents After You Fix MacBook Sleep Solo developer Dawon Lee released Lidnight v1.11.87, a notarized macOS menu bar app that keeps Claude Code and Codex sessions running with the lid closed and relays approval prompts to a phone over an end-to-end encrypted channel. Lee notes that preventing sleep is only part of the problem: agents also stall on permission prompts and usage limits, which the app's Pro tier addresses with opt-in auto-continue and wake-up recaps. Lidnight costs $9.99 for one Mac and is closed source, while Lee's separate MIT-licensed lid-check CLI audits past runs against pmset history. Disclosure: I'm Dawon Lee, the solo developer of Lidnight https://lidnight.app/en/?from=devto , a paid macOS menu bar app mentioned below. If you start a long Claude Code or Codex task on a MacBook and shut the lid, macOS puts the machine to sleep and drops the session. I wrote about the caffeinate and pmset mechanics in an earlier post https://dev.to/dawonlee/how-i-keep-long-claude-code-runs-alive-with-my-macbook-lid-closed-900 . If you want to check whether past runs overlapped with sleep or DarkWake, I also maintain a read-only MIT CLI called lid-check https://github.com/whereisdw/lid-check that cross-checks local Claude Code, Codex, Antigravity, and Gemini CLI logs against pmset history. Keeping the Mac awake with the lid closed is only part of it. Three other things can still leave a run unfinished by morning. Long runs often stop to ask for input. Claude Code pauses on shell permission prompts and AskUserQuestion turns, and Codex pauses on approval prompts unless configured for unattended mode. With the lid shut, the Mac stays powered on all night waiting for a single keypress. In Lidnight v1.11.87, native Swift AppKit/SwiftUI, Apple Silicon, macOS 13+, Apple Developer ID notarized , short status alerts go to your phone no code or prompt body in push text , and the remote status board uses an end-to-end encrypted relay so you can approve, deny, or reply away from your desk. Commands Lidnight flags as risky can only be approved on the Mac. Even without prompts, an overnight run can hit a usage limit halfway through. Claude Code can often continue on its own after a 5-hour reset, but a weekly limit, a long sleep, or a Codex session can still leave the work waiting for you. Lidnight's free tier tracks open-lid sessions, local token and API-cost estimates across 13 tools, and live 5h/weekly usage limits for Claude Code, Codex, Antigravity, and Kiro inside the menu bar popover. The Pro tier adds opt-in auto-continue for Claude Code and Codex after a usage limit resets, along with a wake-up recap showing run duration, completed runs, token spend, and start-to-end battery percentage. Running pmset disablesleep 1 manually is easy to forget. If a script crashes or you close the lid and walk away, the Mac can drain flat or run hot. These are the limits I built in: If stopping macOS from sleeping on lid close is your entire problem, you don't need to pay for anything. As of December 5, 2026, open-source MIT projects already handle basic lid-closed keep-awake for $0: If you're fine running your own Telegram bot, open-source projects like Agent Session Pilot also handle remote approvals for free. The downsides: Lidnight is closed source and costs $9.99 USD for 1 Mac or $14.99 USD for 3 Macs with the same key, one-time purchase, plus regional tax at checkout . Like Adrafinil and StayAwake, its pmset helper asks for a one-time admin password on setup open-lid monitoring needs no password . It supports Apple Silicon only, has no AC-only keep-awake toggle or lid-close chime yet, and currently has no public user reviews. Paying $9.99 14-day or 5-lid-closed-run free trial, whichever comes first; 14-day no-questions-asked refund only makes sense if you want a notarized build that runs on macOS 13+ Ventura through Tahoe , phone approvals without setting up your own bot, opt-in quota auto-continue, and local battery/thermal/token recaps in one menu bar app. You can check Lidnight https://lidnight.app/en/?from=devto or audit your past overnight sessions first with lid-check https://github.com/whereisdw/lid-check .