aaryanbindage

Lidwake — Development skill for Claude Code

Development community

LidWake: keep a MacBook running with the lid closed and no external monitor until Claude finishes, the battery runs low or a timer ends.

How to install Lidwake

This entry records only its repository, not the path inside it, so there is no exact command to give. Open aaryanbindage/Lidwake and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Lidwake does

LidWake: keep a MacBook running with the lid closed and no external monitor until Claude finishes, the battery runs low or a timer ends. Control it from your phone.

Alternatives in Development

  • Stop Review Gate — You are reviewing uncommitted changes before the author finishes their turn 664 ★
  • Run Daily — Trigger the daily digest now (background via OS scheduler) and monitor until completion 355 ★
  • Upload — Archive, upload, and submit to external TestFlight (full loop with monitor) 160 ★

README

LidWake

Keeps a MacBook running **with the lid closed and no external monitor**. It ends when the first of your chosen events happens: Claude finishes, the battery gets low, a process exits, a timer runs out, and so on. You can change a running session from the terminal, the menu bar, or **your phone**.

How it works

macOS always sleeps when you close the lid unless an external display is connected. `caffeinate` can't stop that. Only `pmset -a disablesleep 1` can, and it needs root. The installer adds a sudoers rule that lets LidWake run exactly that command (plus `disablesleep 0` and `shutdown -h now`) without a password. When the event happens, LidWake turns normal sleep back on and then sleeps, shuts down, or does nothing.

What gets installed:

Part What it is
lidwake The engine and CLI (bash). The session re-reads its event list every 5 s, so you can add or remove events while it runs.
lidwaked Remote control server (Swift, LaunchAgent). Serves the web page and a token-protected API, connects to the relay or tunnel, and ends the session if the Mac gets critically hot.
relay/ End-to-end encrypted relay (Node) for a permanent link, plus optional accounts (Postgres). Deploy it to Render.
LidWake.app Menu bar app: start, add or remove events, and a QR code for your phone.
com.lidwake.recover Runs at login. Turns sleep back on if a session ever crashed.

Install (on the Mac)

cd LidWake
bash install.sh                 # REMOTE=0 bash install.sh to skip the web server
lidwake claude-hook --install   # optional: lets --claude work

The server and the app need `swiftc`; run `xcode-select --install` first if you don't have it. To remove everything, run `bash uninstall.sh`.

Use

lidwake start --claude -b                       # until Claude Code finishes its reply
lidwake start --process ffmpeg --then shutdown  # until ffmpeg exits, then shut down
lidwake status