Repository

CharlonTank/agents-sleep-preventer

Agent Session Pilot (formerly Agents Sleep Preventer)

Open github.com

CharlonTank/agents-sleep-preventer

Agent Session Pilot (formerly Agents Sleep Preventer)

Keeps Mac awake only while AI coding agents (Claude Code, Codex) are actively working; includes menu bar session list, sleep-on-completion, local voice dictation, and Telegram remote control. Free, MIT, Rust + Swift, macOS 14+ Apple Silicon

Visit project

Show me a random project

First shared
Oct 4, 2026
HN activity
11

Show HN@CharlonOct 4, 2026

Show HN: Agents Sleep Preventer – keep your Mac awake only while AI agents work

I run several Claude Code and Codex sessions in parallel and kept coming back to either a sleeping Mac with half-finished work, or a Mac that stayed up all night because I'd left caffeinate on. Agents Sleep Preventer hooks into the agents' own configs (Claude Code, Codex, Hermes), so it knows when each session is actually working. It keeps the Mac awake only then, lid closed included, and lets it sleep when they're done. The menu bar lists every session by project and branch: which are working, which need you and why ("Claude needs your permission to use Bash"), and the background commands each one still runs, with a Stop button. "Sleep when done" puts the Mac to sleep once everything finishes, with an optional time limit for agents that poll forever. It also does local push-to-talk dictation (Whisper or Parakeet, nothing leaves the Mac). Free, MIT, Rust + Swift. macOS 14+ on Apple Silicon, plus a Windows build.

Community

Hacker News discussion

Loading the thread…