Agents Sleep Preventer

Agents Sleep Preventer

Keep your Mac or Windows PC awake. Dictate your next prompt.

Automatic sleep prevention for coding agents, plus local voice dictation with Whisper and Parakeet. Available for macOS and Windows 10/11 x64. No subscription.

v5.2.1 · macOS + Windows

Speak. Your words appear where you type.

Local voice dictation for prompts, messages, and documents. Download a model once; your audio is then transcribed on your computer.

Whisper or Parakeet

Parakeet v3 is the Windows default for fast transcription and automatic language detection. Choose Whisper Turbo for custom vocabulary and more languages. Both engines are included.

Your audio stays on your computer

No cloud transcription or subscription. On Windows, the last 100 transcripts are kept locally, and Copy Last Dictation is available if insertion is blocked. For French with Whisper, choose fr in settings; English is the default.

Dictate on Windows

Open Dictation Settings from the tray menu, choose your model and language, then Download Dictation Model. Focus a text field and press Ctrl+Alt+Space to start, then again to finish. The shortcut is customizable.

Dictate on macOS

Enable dictation in Settings, download your model, then hold Fn+Shift while speaking. Release to transcribe. Set your language and shortcut in the Dictation tab.

Installation

Windows 10/11 · Intel & AMD x64

Extract the entire ZIP and open asp.exe. In the tray menu, choose Install agent hooks and start at login. You can also use the PowerShell command below. Keep the speech folder next to asp.exe.

.\asp.exe install --yes
Download for Windows

The Windows app is currently unsigned: SmartScreen may show a warning. The ZIP includes a README with installation and microphone instructions.

macOS · Apple Silicon

Signed and notarized DMG. Drag the app into Applications, launch it, then complete the guided setup.

Download for macOS

Homebrew · macOS

Install the cask, then open the app once

brew install --cask charlontank/tap/agents-sleep-preventer

Build from Source

Build the full app using the platform-specific instructions in the repository.

View on GitHub

The Problem & Solution

Before

You give an agent a long task, step away, and your computer goes to sleep before it finishes.

After

ASP keeps your computer awake while an agent works. When all agents finish or wait for your input, normal idle sleep resumes.

Core Features

Smart Detection

Follows agent activity through hooks, so sleep prevention starts and stops with your tasks.

Multi-Instance

Keep several agent sessions running. Your computer stays awake while any registered session is working.

Lid awareness · macOS

macOS detects lid closure. On Windows, your existing lid and power-button settings remain in control.

Menu bar & system tray

Check activity and choose automatic mode, keep awake, or allow sleep from a native desktop menu. On macOS, Sleep when done puts the Mac to sleep once every agent has finished, even on power.

Thermal protection · macOS

Automatically re-enables sleep if Mac is throttling due to heat

Auto-Cleanup

Expired or terminated sessions are removed automatically, so interrupted agents do not keep the machine awake indefinitely.

Daemon Mode

Run the sleep monitor in the background or use the desktop app with local dictation.

Claude Code + Codex

Automatic native Claude Code and Codex hooks on both platforms. Hermes profiles are also supported on macOS.

Auto-Launch

Start with your session using a macOS LaunchAgent or Windows Startup shortcut.

Extra controls on macOS

The macOS menu bar also includes terminal navigation and detailed process monitoring.

Dynamic Icon

Icon changes based on state: ☕ when active, 😴 when sleeping

Live Instance Tracking

Shows active instances with PID, age (seconds), and real-time CPU usage

Click-to-Focus

Click any menu item to bring its terminal window to front

Global Hotkeys

Ctrl+Alt+Cmd+J instantly cycles through all your active agent terminals - the killer feature for multi-instance workflows

Kill Inactive

Option-click to kill inactive agent processes directly from the menu

Thermal Status

Real-time thermal state indicator (OK or WARNING!)

How It Works

1

Send a prompt to Claude Code or Codex after installing the hooks.

2

ASP prevents idle sleep while at least one agent is working.

3

Normal idle sleep resumes when all agents finish or need your input.

CLI Commands

Shared commands for macOS and Windows. On Windows, use .\asp.exe from the installation folder.

asp start

Register current agent process and disable sleep

asp stop

Unregister process and re-enable sleep if no others active

asp status

Show registered agents and current sleep status.

asp cleanup

Clean up stale PIDs from interrupted sessions

asp daemon

Run the sleep monitor in the background.

asp menubar

Launch the macOS menu bar or Windows tray app.

asp reset

Force reset: clear all PIDs and re-enable sleep immediately

asp install

Install the app, agent hooks, and startup integration.

asp uninstall

Remove ASP hooks and startup integration.

Setup & Integration

Install once, then use your agents as usual.

Windows · no administrator required

Extract the entire ZIP and run asp.exe install. Both speech engines are included; download your model from the tray menu.

macOS · guided setup

The first-run assistant configures the permissions and sleep-control integration required on your Mac.

Preserve your existing hooks

ASP adds its native agent hooks while preserving your existing configuration. Windows integration targets native agents; WSL requires separate setup.

Automatic startup

Open ASP from Applications on Mac or the Start menu on Windows. The installer also configures startup at login.