agent-awake

agent
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in scripts/build-app.sh
  • rm -rf — Recursive force deletion command in scripts/collect-report.sh
  • rm -rf — Recursive force deletion command in scripts/install.sh
  • rm -rf — Recursive force deletion command in scripts/uninstall.sh
  • rm -rf — Recursive force deletion command in tests/run.sh
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Keep a MacBook awake with the lid closed only while local AI coding agents (Codex, Claude Code, OpenCode) are working

README.md

AgentAwake icon

AgentAwake

Close your MacBook. Your AI agent keeps working.
The Mac stays awake with the lid closed only while Codex, Claude Code or OpenCode actually work.

Release macOS 14+ Apple silicon MIT

Install · How it works · Research · Русский

AgentAwake settings

Why

Closing the lid puts a MacBook to sleep, and your agent stops mid-task. caffeinate, Amphetamine and the "keep awake" switches in Codex and Claude only block idle sleep, so they do not help once the lid is closed. AgentAwake turns sleep off exactly while an agent works and gives it back the moment the work is done.

  • Lid closed, no external display, on power or battery
  • Only real local work: an open app, a plain chat or a cloud task do not count
  • Safe: battery floor, overheat protection, max-time limit
  • Menu bar icon, settings in English and Russian, free, MIT, no telemetry

Install

Download the latest AgentAwake.zip, move the app to Applications and open it. It is not signed by Apple, so the first time use right-click → Open (or System Settings → Privacy & Security → Open Anyway). Then click Install service… and enter your password once.

Or build from source (needs only xcode-select --install):

git clone https://github.com/mchibisov/agent-awake.git && cd agent-awake && bash scripts/install.sh

Then make sure your agents report that they are working:

Agent One-time setup
Codex (ChatGPT app, terminal) /experimental → Prevent sleep while running
Claude Code (Claude app, terminal) Claude settings → Keep computer awake while Claude works (on by default)
OpenCode (desktop, terminal) nothing, AgentAwake installs its plugin

codex exec has no signal of its own: run it as caffeinate -i codex exec "...".

How it works

  • ☕ an agent is working: sleep is off, you can close the lid
  • 🌙 nothing is working: normal sleep
  • ☀️ / ⏸ manual "stay awake" or pause from the menu

A small root service checks every 10 s whether Codex, Claude Code or OpenCode is doing local work (from the signals the agents themselves raise, see research) and flips pmset disablesleep. When the work ends it waits 90 s, restores sleep, and puts the Mac to sleep right away if the lid is closed.

Settings
Setting Recommended
Battery floor (sleep below this on battery) 15%
Overheat protection On
Only on power adapter Off
Wait after work ends 90 s
Max continuous awake time 8 h

Every setting shows its recommended value, Restore defaults resets them all.

Safety settings

Safety and limitations
  • A closed MacBook cools worse. Do not put it in a bag while an agent works.
  • pmset disablesleep is undocumented. It works on macOS 14 to 27, a future update could change that.
  • The app and the service share /Users/Shared/agent-awake/; any local program can change these settings.
  • Apple silicon only; Intel Macs are untested.
Check it, report a problem, uninstall
  • Check: start a 10-minute task, close the lid, open it later. The menu → Open log shows ON: working:... and no OFF mid-task.
  • Report: menu → Report a problem… makes a zip on your Desktop (user name removed) and opens a GitHub issue. Nothing is sent automatically.
  • Uninstall: Settings → About → Uninstall completely, or sudo bash "/Library/Application Support/agent-awake/uninstall.sh".

Contributors: repo map in AGENTS.md, tests with bash tests/run.sh. MIT license.

Yorumlar (0)

Sonuc bulunamadi