Agent Session Pilot
Agent Session Pilot logo: a crescent moon cradling a terminal prompt

Agent Session Pilot

Your coding agents: awake, watched, and one message away.

Keeps your computer awake while agents work, lets you drive every Claude Code session from Telegram, names the one eating your RAM or disk, and dictates your prompts locally. macOS, Windows 10/11 x64, and Linux servers. No subscription. Formerly Agents Sleep Preventer.

v5.8.10 · macOS · Windows · Linux

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
SHA-256

SHA-256 of the file, to compare with yours:

25d3e4cba854da4b9e79a459c535c00533eaabcc1d1ba79fb03e552da1b1ee1bGet-FileHash .\AgentsSleepPreventer-5.8.10-windows-x86_64.zip

The Windows app is not signed yet, so SmartScreen may show a warning. It is built by GitHub Actions from the public code, and you can check its SHA-256 above. The ZIP includes a README with installation and microphone instructions.

macOS 14+ · Apple Silicon

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

Download for macOS
SHA-256

SHA-256 of the file, to compare with yours:

21bcd7a523a1f530b1c6f55c81286d86cd48138ba38c5b7fef2f60c4d4b01925shasum -a 256 ~/Downloads/AgentsSleepPreventer-5.8.10.dmg

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

Linux server · x86_64

For a machine that never turns off: Telegram, the RAM and disk watch, and the workshop in tmux, as a systemd user service. No root needed. Download, check, install: the second line compares the file with the checksum published on this page and must print OK.

curl -fLO https://github.com/CharlonTank/agents-sleep-preventer/releases/download/v5.8.10/AgentsSleepPreventer-5.8.10-linux-x86_64.tar.gz
echo "d183511b60ca6f83c60e1ba703ca8a94653fb3e18e9be413b2daafd4590f9023  AgentsSleepPreventer-5.8.10-linux-x86_64.tar.gz" | sha256sum -c
tar -xzf AgentsSleepPreventer-5.8.10-linux-x86_64.tar.gz asp
install -Dm755 asp ~/.local/bin/asp
~/.local/bin/asp service install
~/.local/bin/asp telegram setup

Or the same steps as a script. Read it before you run it: it is short.

curl -fsSL https://asp.charlon.dev/install.sh -o install.sh
less install.sh
sh install.sh

Read install.sh · To remove it: asp service uninstall, then delete ~/.local/bin/asp.

Know what you install

An app that keeps your computer awake and talks to your agents deserves a close look. Here is exactly what it does, and what it doesn't.

Open source, MIT license

All the code is public on GitHub: read it, build it yourself, or have someone you trust look at it. The Windows and Linux downloads are built by GitHub Actions, in public, from that code.

GitHubMIT

Signed and notarized by Apple

The Mac app is signed with an Apple Developer ID and notarized: Apple scanned it, and macOS checks it before the first launch. Every update is signed too, and the app refuses one that isn't.

No account, no tracking

No sign-up, no analytics, no ads, no server of ours. The app only goes online to check for updates on GitHub, download a dictation model from Hugging Face when you ask, see whether the network is back after a drop (one empty request to the agent's API), and reach Telegram if you connect your own bot.

Your words stay on your computer

Dictation and Telegram voice notes are transcribed on your computer. Telegram messages go straight between your computer and your own bot. Its token stays in the macOS Keychain (on Linux, in a file only you can read).

What it changes, and how to undo it

On a Mac, setup adds hooks to Claude Code and Codex (yours are kept), a login item, and this one sudo rule, so the app can turn sleep off and on without asking for your password. Nothing else gets admin rights. asp uninstall removes all of it.

# /etc/sudoers.d/agents-pmset
you ALL=(root) NOPASSWD: \
  /usr/bin/pmset -a disablesleep 0, \
  /usr/bin/pmset -a disablesleep 1, \
  /usr/bin/pmset -a sleep 5, \
  /usr/bin/pmset sleepnow

Who makes it

Charles-André Assus, a developer (charlon.dev). A question or a bug: open an issue on GitHub. The notes of every release are public there.

charlon.devIssuesReleases

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, a notification tells you when a long task is done or an agent needs you.

Safety nets · macOS

Sleep comes back on when the Mac overheats, and on battery at 10% or less. Set a nightly sleep time and the Mac goes to sleep every night once you step away, even with agents still working.

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.

Telegram Remote

Talk to every Claude Code session from your phone through your own bot. Voice notes are transcribed on your computer. macOS and Linux.

RAM & Disk Watch

Names the session behind a memory or disk drift, by notification and on Telegram. It never kills anything. macOS and Linux.

Workshop

asp workshop opens your named Claude Code sessions in iTerm or tmux in one go, with your first prompts typed. macOS and Linux.

Your agents, from the macOS menu bar

One glance shows which sessions are working, which wait for you and why, and what each one is still running.

By project and branch

Every Claude Code, Codex and Hermes session, grouped by project and Git branch: needs you, working (with its duration) or idle. A session named with /rename gets its own row, with its profile and Claude account.

Needs you, and why

Sessions waiting for you come first, with the agent's own message, such as "Claude needs your permission to use Bash".

See and stop background commands

A dev server or a polling loop a session left running is listed under it. Stop ends it and everything it started.

Sleep when done, with a time limit

The Mac sleeps once every agent is done, or at the limit you pick (30 min to 2 h 30) even if one keeps polling. Never while you are using it.

Click to focus

Click a session to bring its terminal window to the front.

Global hotkeys

Ctrl+Option+Cmd+J cycles through working sessions' terminals, Ctrl+Option+Cmd+L through idle ones.

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 force when-done --within 1h30

macOS: sleep once every agent is done, or in 1 h 30 at the latest.

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.