nightwatch

Nightwatch keeps your laptop awake with the lid closed (demo)

Stay awake for the agentic era.

01 the menu bar

One eye in your menu bar.

It keeps your laptop awake until a time you pick.

Click the eye.

Days, hours and minutes slide out.

Type 8, press Enter.

Awake until the countdown reaches zero.

Click the countdown.

Type more time and it adds on.

Hold × to end.

A 0.6 second hold, so a stray click can't end it.

Right-click the eye.

Status first, then Settings and Quit.

scroll to play it, or use the pill yourself

02

Lid closed.
Still running.

Your agents keep working with the lid closed. Opening it tries to undo everything in this log.

Built-in mics cut out with the lid closed. Use AirPods or an external mic.

nightwatch.logduring a session
  1. lid closed
  2. display, keyboard lightoffbrightness saved
  3. slack, whatsapp, discordfrozenSIGSTOP
  4. audiomuted
  5. low power modeon
  6. docker desktopfrozenopt-in, no containers
  7. your agent CLIsrunning
  8. timer7:59:56still counting
  9. lid opened
  10. display, keyboard lightrestored
  11. frozen appsresumedSIGCONT
  12. audiounmuted
  13. low power modeoffunless a rule needs it

03

Battery and heat.

These are the defaults. Change them in Settings.

The rules only run while the app is open.

batterydefaults
  1. 100%[##############################]awake
  2. 40%[############··················]Low Power Mode on
  3. 10%[###···························]session ends
  4. heatserious: Low Power Mode on · critical: session ends

04

Recovery.

Every change goes into a journal on disk before it happens, so it can be undone even after a crash.

If the menu shows a recovery warning, fix it before you leave the machine alone.

recovery journalevery change
  1. 1write the change to the journal
  2. 2make the change
  3. 3session endsundo what the journal lists
  4. ?app crashed or quitthe launchd agent undoes it after the end time
  5. !an undo failedthe entry stays on disk and the menu warns you

05

Optional extras.

hotspotoff until set up

Joins your phone hotspot if the Wi-Fi drops.

tmuxoptional

Keeps terminal sessions alive while the lid is closed.

browsersmedia tab groups

Suspends background tabs to save power and heat.

06

Install.

macOS 26 or later, Apple silicon. Paste this into your coding agent:

prompt
Install the latest Nightwatch demo by following the project README. If a step needs your password, give you the command to run in Terminal. (Demo only; not a real installer.)

Or read the project README for local run and deploy steps.

Nightwatch is an experimental concept demo. Recovery can fail, and a timer is not a safety guarantee. Keep the device on a stable, ventilated surface, never in a closed bag.

h top m menu bar l lid b battery r recovery i install

asleep