A macOS menu bar app that keeps your Mac awake, even with the lid closed, while AI coding agents work, and lets it sleep the moment they finish.
English · Русский
NotYet 1.0 on macOS 26 with Claude Code and a notyet run command in progress.
You start an agent on a long refactor, close the lid and leave. The Mac goes to sleep and the agent stops halfway. Keep-awake apps fix that by keeping the Mac awake for an hour or forever, which drains the battery long after the work is done. NotYet watches the agents themselves. It keeps your Mac awake exactly while they work, with the lid open or closed, and lets it sleep as soon as they finish or a safety limit is reached.
- Download
- What you get
- Getting started
- Everyday use
- Configuration
- Privacy
- Troubleshooting
- Building from source
- How it works
- Project structure
- Contributing
- License
Download NotYet-<version>-macOS.zip from the latest release, unzip it and move NotYet.app to the Applications folder.
- Requirements. macOS 14 Sonoma or later, on Apple silicon or Intel. The app is a universal binary.
- First launch. Releases are signed ad hoc and are not notarized. The first time you open NotYet, macOS blocks it. Open System Settings > Privacy & Security and click Open Anyway.
- Updates. After an update, macOS may ask you to approve the closed-lid helper again in System Settings > General > Login Items & Extensions.
- It knows when your agents work. Claude Code, Codex and Cursor report the start and end of every turn through their own hooks. OpenCode, Gemini CLI, GitHub Copilot CLI, Aider and Amp are recognized by their processes and CPU use.
- Sleep comes back on its own. When the last task finishes, NotYet waits a minute in case the agent continues, then lets your Mac sleep. With the lid closed, it then puts the Mac to sleep itself.
- Work with the lid closed. A small helper keeps your Mac awake with the lid closed, on battery or on power, without an external display.
- Fail-safe by design. Sleep is restored when work finishes, a safety limit is reached, NotYet quits or crashes, the helper loses contact for five minutes or you turn the helper off in System Settings.
- Safety limits. NotYet lets your Mac sleep when the battery reaches your temperature limit (45 °C by default), macOS reports high thermal pressure or the battery drops to your minimum level (20% by default).
- While you were away. When you come back, the menu shows what ran, how long each task worked, when it finished, when your Mac slept and why, and how much battery it used.
- Battery forecast. The menu shows how long your Mac can keep working on battery before NotYet stops at your limit, based on the estimate from macOS.
- The display turns off with the lid. As soon as you close the lid, NotYet puts the display to sleep. The CPU is never throttled and Low Power Mode is never turned on, so agents keep full speed.
- Any command, too.
notyet run -- cargo testkeeps your Mac awake until the command exits, then shows whether it succeeded. - Light on resources. In the background NotYet uses about 0.07% of one CPU core and 15 MB of memory. A full process scan takes 2–3 ms and runs every 10–30 seconds only while there is something to watch.
| NotYet | caffeinate |
Timer or rule-based apps | pmset disablesleep |
|
|---|---|---|---|---|
| Knows when an agent turn ends | Yes, through hooks | No | No | No |
| Sleeps as soon as work finishes | Yes | Only when the wrapped command exits | When the timer or rule ends | Never, until you undo it |
| Keeps working with the lid closed on battery | Yes | No | Varies by app | Yes |
| Restores sleep if something crashes | Yes | Yes | Varies by app | No |
| Battery temperature and thermal limits | Yes | No | Varies by app | No |
| Summary of what happened while you were away | Yes | No | No | No |
caffeinate. It ships with macOS and holds a power assertion while a command runs or for a set time.caffeinate -sprevents system sleep only on AC power, and none of its options keep the Mac awake when you close the lid on battery. It knows nothing about agents, so an interactive agent session that waits for your next prompt keeps the Mac awake for as long as the terminal stays open.- Timer or rule-based apps such as Amphetamine and KeepingYouAwake keep the Mac awake for a set time, while a chosen app is open or until the battery drops. An agent app or terminal stays open for hours while the agent idles, so these rules either end too early, in the middle of a task, or too late, after the work is long done.
sudo pmset disablesleep 1keeps a Mac awake with the lid closed, but it stays on until you turn it off. If you forget, the Mac never sleeps again, including in a bag. NotYet uses the same system setting only while tracked work runs and restores your original value automatically.
- Open NotYet. A welcome window appears and the moon in the menu bar shows its state.
- Under Connect your agents, click Connect for each agent you use. NotYet adds its hooks to
~/.claude/settings.json,~/.codex/config.tomlor~/.cursor/hooks.jsonand keeps everything else in those files as it is. - Under Work with the lid closed, click Set up. macOS asks you to approve the NotYet helper in System Settings > General > Login Items & Extensions. A window guides you there and updates once you approve.
- Start an agent. When the menu bar moon turns green and the menu says You can close the lid, close it and walk away.
-
The menu bar moon. Green means NotYet is keeping your Mac awake. White means your Mac can sleep. A dimmed moon means NotYet is paused.
-
The menu. Click the moon to see each task, whether it was reported by an integration or detected by activity, the battery, its temperature and the thermal state.
-
Stop tracking a task. Hover over a task and click the close button, or right-click it. NotYet stops keeping your Mac awake for it.
-
Keep awake for a while. Choose Keep awake for and pick 30 minutes, 1, 2 or 4 hours. The button turns green and shows when it ends.
-
Wrap a command. Add the command-line tool to your shell, then prefix any long command with
notyet run --:export PATH="$HOME/Library/Application Support/NotYet/bin:$PATH" notyet run -- cargo build --release
All settings are in Settings, which you open from the gear in the menu.
| Setting | Default | What it does |
|---|---|---|
| Keep your Mac awake while agents work | On | Turn off to pause NotYet. |
| Open at login | Off | Starts NotYet when you log in. |
| Notifications | On | Notifies you about safety stops, finished notyet run commands and what happened while you were away. |
| Keep working with the lid closed | On after setup | Uses the helper to keep your Mac awake with the lid closed. |
| Allow sleep after work finishes | 1 min | Waits this long after the last task finishes. |
| Stop waiting for a silent agent after | 30 min | Stops keeping your Mac awake for an agent that reports work but shows no activity for this long. |
| Detect agents by activity | On | Recognizes agents without an integration by their CPU use. |
| Battery temperature limit | 45 °C | Lets your Mac sleep above this battery temperature. |
| Thermal pressure limit | High | Lets your Mac sleep when macOS reports this thermal pressure or higher. |
| Keep working on battery power | On | Turn off to stay awake only on power. |
| Stop at battery level | 20% | Lets your Mac sleep at or below this level. |
- Nothing leaves your Mac. NotYet has no network code, no analytics and no telemetry.
- Process names stay local. It reads process names, paths and CPU time of your own processes only to recognize agents. It ignores their environment variables and never reads their files.
- Hooks only send a signal. The
notyethook receives the event name, session ID and working folder from the agent and passes them to the app through a local socket that only your user can open. - The helper does one thing. It runs as root, accepts connections only from a NotYet app with a matching code signature and can only turn sleep off with a lease, turn it back on and put the Mac to sleep.
- The menu says “Keep the lid open while work runs”. Closed-lid mode is off or not approved. Turn it on in Settings > General and approve NotYet in System Settings > General > Login Items & Extensions.
- The menu says “Closed-lid mode isn't responding”. This can happen after an update, because macOS ties the helper to the exact build. Turn closed-lid mode off and on in Settings > General, then approve the helper again.
- An agent is not detected. Connect its integration in Settings > Integrations. For agents without one, make sure Detect agents by activity is on.
- Your Mac stays awake while an agent waits for you. Agents with an integration report when they stop. For detected agents, NotYet waits for 90 seconds of low CPU use. Hover over the task and click the close button to stop tracking it.
- macOS says NotYet can't be opened. Open System Settings > Privacy & Security and click Open Anyway.
You need macOS 14 or later, Swift 6 (Xcode 16 or the Command Line Tools) and Rust 1.85 or later with the aarch64-apple-darwin and x86_64-apple-darwin targets.
git clone https://github.com/liwidale/notyet.git
cd notyet
cargo xtask test
cargo xtask bundle
open build/NotYet.app| Command | What it does |
|---|---|
cargo xtask bundle |
Builds a signed universal build/NotYet.app. Add --debug for a faster build for your Mac only. |
cargo xtask bundle --sign "Developer ID Application: …" |
Signs the app with your certificate instead of ad hoc. |
cargo xtask test |
Runs the Rust and Swift tests. |
cargo xtask lint |
Checks rustfmt, clippy and swift format. |
- Rust core.
crates/corelists your processes withlibproc, recognizes agents by executable and arguments, follows each agent's process tree and measures its CPU time. A state machine combines these readings with hook events into tasks that are working, waiting for input, stalled or finished. - Hooks. The
notyetcommand-line tool is a small Rust binary. Agents callnotyet hook <agent>from their hooks, and it sends one datagram to the app over a Unix socket in~/Library/Application Support/NotYet. It finishes in about 7 ms, so agents never wait for it. - Swift app. A SwiftUI menu bar app calls the Rust core through a C interface, decides whether your Mac may sleep and holds a
PreventUserIdleSystemSleeppower assertion while work runs. - Closed-lid helper. macOS has no public API that stops sleep when the lid closes. A launch daemon registered with
SMAppServiceturns onpmset disablesleepwhile work runs and turns it off afterwards. It remembers your original value, restores it after a crash or restart and releases its hold if the app goes silent for five minutes. - Safety and power. Battery temperature comes from the battery's IORegistry entry, thermal pressure from
ProcessInfoand battery level and time estimates from IOKit power sources. The lid state arrives as a system notification, so nothing is polled.
crates/core Rust process tracking, agent detection, hook protocol and integrations
crates/cli The notyet command-line tool
xtask Build, test, lint and bundle commands
Sources/CNotYetCore C header for the Rust core
Sources/NotYetKit Power policy, monitors, helper client and app model
Sources/NotYet SwiftUI menu bar app, settings and windows
Sources/NotYetHelper Privileged launch daemon for closed-lid mode
Sources/NotYetShared Protocol shared by the app and the helper
Tests Swift tests
Resources Info.plist and the launch daemon property list
branding App icon
Issues and pull requests are welcome.
- Run
cargo xtask lintandcargo xtask testbefore you open a pull request. - Keep the app free of network access, analytics and new dependencies unless a change needs them.
- Make every user-facing string localizable, with English as the source language.
MIT © 2026 Liwidale
NotYet is not affiliated with Anthropic, OpenAI, Anysphere, Google, GitHub or the makers of the other agents it works with. Product names belong to their owners.
ゝ made by liwidale
