Double Shot: keeps a Mac awake while AI agents run, even with the lid closed
Double Shot is an MIT-licensed macOS menu bar app that detects when Claude Code, Codex, Gemini CLI, Copilot CLI, Aider and other agents are actually working and keeps the Mac awake until they finish. Lid-closed mode works through a sudoers rule limited to…
Why it matters
It solves the common problem of long agent runs stopping when you close the laptop lid.
What happened
1 min readDouble Shot is an MIT-licensed macOS menu bar app that detects when Claude Code, Codex, Gemini CLI, Copilot CLI, Aider and other agents are actually working and keeps the Mac awake until they finish. Lid-closed mode works through a sudoers rule limited to four pmset commands, with heat and battery cutoffs.
Our analysis
Detecting real activity from CPU use and session-log writes without hooks is a clever step beyond caffeinate or Amphetamine. But the app isn't notarized yet, and manual install means bypassing Gatekeeper and adding a sudoers rule, so review the code first. Running a Mac in a bag carries hardware risk, though heat cutoffs are built in. Useful, but a utility.