DevTrendsDeveloper trends
Accent color

charlontank /

agents-sleep-preventer

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 Prevente…

DTDesktop productivityDTAgent extensionDTAgent observabilityDTContent / resourceDTDesktop appDTLinuxDTmacOSDTWindowsDTClaude CodeDTCodex

About

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.

Discovery history

  1. Show HN

    Oct 4, 2026 · 1 observations

Discuss this product