Keep your Mac or Linux laptop working with the lid closed while your AI coding agents run — and let it sleep again the moment they finish.
caffeinate, Amphetamine's basic mode, and agents' own "prevent sleep" settings all use IOPMAssertion, which only blocks idle sleep. Closing the lid still sleeps the Mac. The only switch that survives a closed lid is the system flag pmset disablesleep 1, which needs root and is easy to forget on. NonSleep turns that flag on only while something actually needs it, and guarantees it turns off again.
- Agent-aware. omp holds an
"omp agent session"power assertion exactly while a prompt is in flight, in every project and with every provider; NonSleep watches for it (and forcaffeinate). Claude Code, Cursor, Antigravity and Codex report their turns through official hooks thatnonsleep integrateinstalls. A closed MacBook keeps running a long turn — in a terminal, an IDE, or inside Orca — and sleeps when it's done. - Menu bar app + CLI, sharing one state:
nonsleep run claude,nonsleep on 3h,nonsleep wait 1234. - Fail-safe. Every request is a lease tied to a process, an expiry, and the current boot. Crash,
kill -9, or reboot → the lease dies → a LaunchAgent reaper (every 60 s) restores normal sleep on its next run. - Safety cut-outs. Suspended on battery below 20% and when macOS reports serious/critical thermal state. When the flag drops with the lid closed (and no external display), the Mac sleeps immediately.
- Minimal privilege. A sudoers rule that allows exactly
pmset -a disablesleep 0and… 1. No helper daemon running as root, no telemetry, and no network traffic unless you press Check for updates.
| What you want to do | Amphetamine / Caffeinate | NonSleep |
|---|---|---|
| Close lid & keep working | ❌ Forces Mac to sleep immediately | ✅ Keeps running with lid closed |
| Auto-sleep when AI agent finishes | ❌ No awareness; stays on indefinitely | ✅ Auto-sleeps the moment prompt ends |
| Listen to YouTube / Music with lid closed | ✅ Custom timer (45m, 2h) + <20% battery auto-cutoff |
|
| Overheating / Battery drain in backpack | ❌ No safety; runs battery to 0% and gets hot | ✅ Automatic thermal & battery cut-outs |
| Privacy when closing lid | ❌ Leaves session unlocked | ✅ Automatically locks screen on lid close |
- AI Coding Agents (Hands-free): Turn on hooks once (
nonsleep integrate all). Run Claude Code, Cursor, Codex, or omp. Close your MacBook and head home; when the prompt or turn ends, your Mac goes to sleep automatically. - Listen to YouTube / Podcasts / Audio with Lid Closed: Click Custom… in the menu bar or run
nonsleep on 45m. Your Mac keeps playing audio with the lid closed and goes to sleep when the timer expires. - Long Downloads, Builds, or Renders: Run
nonsleep run -- npm run buildornonsleep wait <PID>. Close the lid; your Mac sleeps the second the process exits.
- macOS (13+): Homebrew or Direct download
- Linux: Prebuilt release tarball (Ubuntu/Debian, Fedora, Arch; x86_64 & aarch64, no root needed)
- From source: Swift build
brew tap Tran-Duc-Duy/tap
brew trust Tran-Duc-Duy/tap # Homebrew refuses casks from third-party taps until you do
brew install --cask nonsleepThen click Finish setup… in the NonSleep window (or run nonsleep setup) once, to install the sudoers rule. Updating later is brew upgrade --cask nonsleep; brew uninstall --cask nonsleep restores normal sleep and removes the sudoers rule, the reaper and the CLI link before it deletes the app. The cask source lives in Casks/nonsleep.rb and is mirrored to Tran-Duc-Duy/homebrew-tap.
- Download
NonSleep-X.Y.Z-macOS.zipfrom Releases, unzip, and move NonSleep.app to/Applicationsor~/Applications. It's a universal app (Apple silicon and Intel). - The app is ad-hoc signed, not notarized (Apple requires a paid $99/yr developer account for notarization), so macOS Gatekeeper prompts an unverified developer warning on first launch. Open it once, then go to System Settings › Privacy & Security and click Open Anyway, or run:
xattr -dr com.apple.quarantine /Applications/NonSleep.app
- The NonSleep window opens: click Finish setup… and approve the administrator dialog.
Verify download integrity and cryptographic build provenance:
# Verify SLSA build provenance (verifies binary was built on GitHub Actions from this repo)
gh attestation verify NonSleep-*.zip --owner Tran-Duc-Duy
# Or check SHA-256 checksum against SHA256SUMS.txt in the release
shasum -a 256 NonSleep-*.zipNonSleep never checks for updates on its own: no launch check, no timer, no telemetry. The management window has a Check for updates button that reads the latest release tag from the GitHub API only when you click it, compares it with the running version, and links to the release page. It downloads and installs nothing.
| Installed with | Update |
|---|---|
| Homebrew | brew upgrade --cask nonsleep |
| Zip download | Download the new zip from Releases and replace the app |
| From source | git pull && scripts/install.sh |
Requires the Swift toolchain (Xcode or Command Line Tools).
git clone <this repo> && cd nonsleep
scripts/install.sh # builds, installs ~/Applications/NonSleep.app, runs `nonsleep setup`
nonsleep statusFinish setup… and nonsleep setup do the same thing; only the sudoers step needs the administrator dialog:
| What | Where |
|---|---|
| sudoers rule | /etc/sudoers.d/nonsleep |
Reaper LaunchAgent (nonsleep reap at login + every 60 s) |
~/Library/LaunchAgents/dev.nonsleep.reaper.plist |
| CLI symlink | ~/.local/bin/nonsleep → the CLI inside the app |
The rule, validated with visudo -c before it's installed:
you ALL=(root) NOPASSWD: /usr/bin/pmset -a disablesleep 0, /usr/bin/pmset -a disablesleep 1
Uninstall: scripts/uninstall.sh, or nonsleep integrate all --remove && nonsleep setup --remove
and delete the app. Either way normal sleep is restored first.
Laptops on systemd distributions suspend on lid close by default (HandleLidSwitch=suspend). NonSleep for Linux includes the native CLI and an opt-in tray indicator, with no root needed:
# Download the latest prebuilt release (no Swift compiler needed):
curl -fsSLO https://github.com/Tran-Duc-Duy/nonsleep/releases/latest/download/nonsleep-linux-$(uname -m | sed s/arm64/aarch64/).tar.gz
tar -xzf nonsleep-linux-*.tar.gz && cd nonsleep-*
./install.sh --indicator # CLI + tray indicator + desktop autostart
nonsleep statusVerify download integrity against SHA256SUMS.txt:
curl -fsSLO https://github.com/Tran-Duc-Duy/nonsleep/releases/latest/download/SHA256SUMS.txt
sha256sum --ignore-missing -c SHA256SUMS.txtFrom source: scripts/install-linux.sh (needs Swift 6). Uninstall: ./uninstall.sh / scripts/uninstall-linux.sh.
How it differs from macOS:
- Lid-closed mode is a logind inhibitor lock (
handle-lid-switch:sleep, block mode) held by a smallnonsleep keeperprocess that exists only while a live lease does. If it orsystemd-inhibitdies, logind drops the lock, so there's no sudoers rule and no reaper. - omp holds a login1 inhibitor while a turn runs; NonSleep reads it via
busctl … ListInhibitors. Hooks for Claude Code, Cursor and Antigravity work the same as on macOS. - Lock on lid close uses
loginctl lock-session; "sleep now" usessystemctl suspend. There's no thermal cut-out on Linux (battery cut-out only). - Polkit lets processes in your active local session take these locks; over SSH they're refused. That's why
install.shuses desktop autostart fornonsleep autorather than asystemd --userservice. - State lives in
~/.local/state/nonsleep, config in~/.config/nonsleep/config.json.
--indicator installs nonsleep-indicator (python3 + GTK 3 + AppIndicator), an autostart entry
for it, and its icons into ~/.local/share/icons/hicolor/scalable/apps. It is a pure frontend:
it polls nonsleep status --json every 5 s and runs nonsleep on|off|sleep from its menu, so it
holds no lease, no lock and no state of its own — killing it changes nothing about sleep.
-
icon: moon (normal sleep) · eye (awake with lid closed) · moon with pause bars (safety cut-out active, normal sleep allowed)
-
menu: the current headline, leases with their countdown, detected agents, then Keep awake 45 m / 2 h / until off / custom…, Off, Sleep now
-
GNOME shows tray icons only through the AppIndicator extension (shipped with Ubuntu). On Debian and Fedora install the bindings:
python3-gi gir1.2-gtk-3.0 gir1.2-ayatanaappindicator3-0.1/python3-gobject gtk3 libayatana-appindicator-gtk3. -
No tray at all (sway, i3, …):
nonsleep-indicator --onceprints one waybar/polybar JSON line (text,alt,class,tooltip) and needs no GTK:
The moon (moon.zzz) means normal sleep, the pulse (waveform.path.ecg) means the lid can close, and ⚠︎ means a safety cut-out paused it or something failed.
The menu has the essentials:
- Auto: while agents are working (on by default)
- Keep awake → 1 h / 3 h / 8 h / until turned off
- Turn off releases every lease, including ones made from the CLI, and disables auto mode
- Sleep now releases everything and sleeps the Mac. While NonSleep holds the Mac awake, macOS ignores the Apple-menu Sleep item and the power button; this always works. Auto mode pauses until you wake the screen, so a dark wake can't re-arm it.
- Open NonSleep… (⌘,) opens the window
The window also opens when you open the app again from Finder/Spotlight, and on first launch or while setup is incomplete. It shows what is holding the Mac awake (with Release per lease), which agents are working, every config setting (saved straight to config.json), Launch at login, and a setup check (sudoers rule, reaper, screen-lock delay). The app sits in the Dock only while the window is open.
Lock on lid close (on by default): when the lid closes while NonSleep keeps the Mac awake, and no external display is attached, the app turns the display off (pmset displaysleepnow). Without this, a closed-but-awake Mac stays unlocked: whoever opens the lid is straight in. The lock only happens if System Settings › Lock Screen › Require password after screen saver begins or display is turned off is Immediately; the setup check shows the current value.
Leases held by the app die with the app: quitting releases them, and if nothing else holds a lease, normal sleep returns (immediately, if the lid is closed).
Logs: log show --last 1h --predicate 'subsystem == "dev.nonsleep.app"'.
nonsleep status [--json] lid-closed mode, leases, agent activity, power
nonsleep on [DURATION] detached: until `off`, DURATION (90m, 3h, 1h30m), or reboot
nonsleep off release every lease, restore normal sleep
nonsleep sleep release every lease and sleep now
nonsleep run [--] CMD… hold while CMD runs; exits with CMD's status
nonsleep wait TARGET… hold while PIDs or process names (claude, omp) run
nonsleep auto headless auto mode (same logic as the menu bar app)
nonsleep reap sweep dead leases, re-apply state (LaunchAgent)
nonsleep config print config path and effective config
nonsleep doctor verify sudoers, reaper, screen lock, hooks, and conflicting apps
nonsleep history [--clear] show recent sleep session history, duration and battery stats
nonsleep mcp run stdio Model Context Protocol server for AI coding agents
nonsleep integrate [AGENT…] add hooks for claude / cursor / antigravity / all (--remove to undo); no AGENT: status
nonsleep hook AGENT EVENT what those hooks call (event JSON on stdin; always exits 0)
run spawns the command in your terminal's foreground process group, so interactive TUIs keep working and Ctrl-C goes straight to them.
off (and Turn off in the menu) drops the leases that exist now. A run, wait, or auto process that is still running takes its lease back on its next tick (10–15 s), so stop that process if you want it to stay off.
nonsleep status --json prints the same state with stable keys, so a tray indicator, a GNOME
extension, a waybar module or a shell script never has to parse localized prose:
{
"schema": 1, // bumped only on a rename or removal
"version": "0.4.0",
"platform": "macos", // or "linux"
"generatedAt": "2026-11-05T15:16:52Z",
"mode": "awake", // awake | normal | suspended | foreign
"headline": "Stays awake with the lid closed", // localized, display only
"blockedBy": null, // localized cut-out reason when mode is "suspended"
"power": { "sleepDisabled": true, "lidClosed": false, "externalDisplay": false,
"onBattery": true, "batteryPercent": 56, "thermal": "nominal" },
"leases": [{ "id": "manual", "reason": "Manual until 23:04",
"ownerPID": null, "expiresAt": "2026-11-05T16:04:00Z" }],
"agents": [{ "name": "omp agent session", "pid": 3755, "source": "assertion" }],
"thermalGuard": { "trips": 0, "resumes": 0, "retryLimit": 3, "lockedOut": false }
}mode is the field to switch an icon on: suspended outranks foreign, which outranks
awake/normal, exactly like the headline. ownerPID is null for detached leases, expiresAt
is null for leases that live until off or reboot, and thermalGuard stays idle on Linux,
which has no heat cut-out.
| Agent | How NonSleep sees it |
|---|---|
| omp | Built in: the "omp agent session" assertion, held only while a turn is in flight, for every session, project and provider (omp setting power.sleepPrevention must not be off). |
| Claude Code | nonsleep integrate claude → hooks in ~/.claude/settings.json (UserPromptSubmit, PostToolUse hold; Stop, StopFailure, Notification, SessionEnd release). |
| Cursor (IDE agent) | nonsleep integrate cursor → hooks in ~/.cursor/hooks.json (beforeSubmitPrompt and post-tool events hold; stop, sessionEnd release). Only observe-only events are used, so NonSleep never approves or blocks a tool call. |
| Antigravity (App, IDE, CLI) | nonsleep integrate antigravity → a nonsleep entry in ~/.gemini/config/hooks.json (PreInvocation, PostToolUse hold; Stop releases once fullyIdle). |
| Agents inside Orca | Detected the same way as in any terminal. To hold while Orca is open at all, add "Orca" to processNames. |
| Anything else | nonsleep run <cmd>, caffeinate -i <cmd>, or nonsleep wait <pid>. |
Hook integrations: nonsleep integrate shows what's installed, nonsleep integrate all installs everything, --remove takes it out again (the window has a toggle per agent). NonSleep only adds or removes its own entries; other hooks in those files (Orca's, for example) are left as they are, and the first edit saves a .nonsleep-backup copy. The rewritten file is pretty-printed with sorted keys.
Each turn's lease belongs to the agent process that ran the hook (the first ancestor that isn't a shell), so it dies with the agent, and expires hookTimeoutMinutes after the agent's last hook event. That covers turns that end without a stop event (Claude Code skips Stop on user interrupt). A single tool call that runs longer than that without any hook firing (a long build) can let the lease lapse; wrap it in nonsleep run or raise the timeout. Cursor's CLI (cursor-agent) does not emit beforeSubmitPrompt/stop, so it only holds from post-tool events.
processNames match the executable name or the script an interpreter runs (bun …/omp matches omp). Presence alone counts, so an idle claude session keeps the Mac awake; prefer hooks, run, or the assertion signal when you can.
~/Library/Application Support/NonSleep/config.json — every key optional:
{
"assertionNames": ["omp agent session", "caffeinate"],
"processNames": [],
"minBatteryPercent": 20,
"graceSeconds": 120,
"sleepWhenDone": true,
"lockOnLidClose": true,
"hookTimeoutMinutes": 30,
"soundEnabled": false,
"soundPath": null,
"backpackProtection": true,
"thermalLimit": "serious",
"backpackThermalLimit": "fair",
"thermalRetryLimit": 3,
"thermalCooldownMinutes": 3,
"thermalMinRunMinutes": 5,
"historyMaxEntries": 50,
"historyRetentionDays": 30,
"language": "auto"
}assertionNames: case-insensitive substrings of power-assertion names (pmset -g assertions).graceSeconds: auto mode keeps holding this long after the last activity, which covers the gap between turns.sleepWhenDone: when the flag drops with the lid closed and no external display, runpmset sleepnow.lockOnLidClose: menu bar app only; see Lock on lid close above.hookTimeoutMinutes: how long a hook-reported turn holds after the agent's last hook event.soundEnabled/soundPath: chime when the last lease drops.soundPathtakes any.aiff/.wav/.mp3;nulluses the macOS system sound.backpackProtection: with the lid closed on battery and no external display, applybackpackThermalLimitinstead ofthermalLimit— a closed Mac in a bag has no airflow.thermalLimit/backpackThermalLimit:nominal,fair,serious, orcritical. Lid-closed mode stops at or above that state. Closing the lid removes the keyboard deck from the heat path, so a Mac that feels too hot in your bag should run atfair(ornominalfor a hard stop on any heat at all).thermalRetryLimit/thermalCooldownMinutes/thermalMinRunMinutes: after a heat stop, NonSleep waitsthermalCooldownMinutesunder the limit and resumes, up tothermalRetryLimittimes per run. A resumed run that overheats again withinthermalMinRunMinutesproves cooling isn't helping, so NonSleep stops retrying and says so in the status line.thermalRetryLimit: 0never resumes on its own. The budget resets when every lease is gone (nonsleep off, or the agent finishing).historyMaxEntries/historyRetentionDays: bounds onhistory.json.historyMaxEntries: 0turns history off;historyRetentionDays: 0keeps entries until the count evicts them.language:auto(follow the system),en, orvi. The menu bar app has a picker under Settings; the CLI uses it for status lines and lease reasons. An unrecognised code falls back toautowithout invalidating the rest of the config.
nonsleep history prints recent sessions with duration, battery delta, and the hottest thermal state reached. The file can't grow unbounded:
| Bound | Effect |
|---|---|
historyMaxEntries (50) |
Oldest sessions are evicted on every write. |
historyRetentionDays (30) |
Entries past the window are dropped on the next write. |
| 80-character reason | Lease reasons (including arbitrary text from MCP callers) are truncated before they are written. |
| 5-second minimum | A reconcile that flips the flag twice isn't a session and isn't recorded. |
| 64 KiB file ceiling | A file over the ceiling is deleted instead of parsed, so a corrupt or tampered file can't be loaded into memory. |
At the defaults that is ~250 B per session and ~12 KB at the cap. nonsleep history --clear removes the file.
A closed lid removes the keyboard deck from the cooling path, so the same workload that is comfortable with the lid open runs hotter once the Mac is shut. NonSleep does not add load, but it is what lets the load keep running, so it owns the cut-out:
| Control | Default | What it does |
|---|---|---|
thermalLimit |
serious |
Lid-closed mode stops at or above this state. |
backpackThermalLimit |
fair |
Stricter ceiling while enclosed (lid closed, on battery, no external display). |
sleepWhenDone |
true |
On a heat stop with the lid closed, the Mac sleeps immediately — the fastest way to cool it. |
thermalRetryLimit |
3 |
Auto-resumes granted after it cools back under the limit. |
thermalMinRunMinutes |
5 |
A resumed run that overheats again this fast ends the retries for this run. |
If the machine still gets hotter than you want: set thermalLimit to fair, raise thermalMinRunMinutes, and keep the Mac on a hard surface rather than a bag or a bed, where the aluminium bottom is the only remaining heat path. nonsleep status shows the trip and resume counters while an episode is running.
A Wi-Fi router keeps transmitting whether or not your Mac is listening; a phone hotspot does not. With the lid closed, macOS puts the Wi-Fi chip into low-power polling and the hinge antenna loses several dB behind the closed display, so the phone sees no traffic and shuts the hotspot off to save its own battery. NonSleep cannot change either side of that — it holds no network state and makes no network calls at all.
What works, in order: USB tethering over the charging cable (it enumerates as a wired interface, so neither end can idle it out), iPhone Settings › Personal Hotspot › Maximize Compatibility (2.4 GHz penetrates the closed lid better than 5 GHz), and keeping the phone plugged in while it shares. A Mac on router Wi-Fi is unaffected.
flowchart LR
CLI[nonsleep CLI] -->|lease| L[(leases/*.json)]
App[Menu bar app] -->|lease| L
Reaper[LaunchAgent reaper<br/>every 60 s] --> R
L --> R{reconcile<br/>under flock}
R -->|live lease and safe| On[sudo pmset -a disablesleep 1]
R -->|no live lease, low battery or hot| Off[sudo pmset -a disablesleep 0<br/>+ sleepnow if lid closed]
A lease is alive while its boot time matches, it has not expired, and (if owned) its owner PID still has the same start time, which also guards against PID reuse. Whoever reconciles first sweeps dead leases. NonSleep only turns the flag off if NonSleep turned it on, so it never fights Amphetamine or a manual pmset.
Source map (Sources/):
| File | Role |
|---|---|
NonSleepKit/NonSleep.swift |
reconcile engine, safety policy |
NonSleepKit/Lease.swift |
lease lifetime, on-disk store, cross-process lock |
NonSleepKit/ThermalGuard.swift |
heat ceilings, cooldown and auto-resume budget |
NonSleepKit/Power.swift |
IOKit reads (flag, lid, battery, displays, thermal), pmset calls |
NonSleepKit/Processes.swift |
libproc/sysctl process info, power assertions |
NonSleepKit/Agents.swift |
agent activity matching, grace window |
NonSleepKit/StatusReport.swift |
status --json: stable schema for tray indicators and scripts |
NonSleepKit/Lid.swift |
lid open/close events (IOKit clamshell message) |
NonSleepKit/Setup.swift |
install checks: sudoers rule, reaper, screen-lock delay |
NonSleepKit/Integrations.swift |
Claude Code / Cursor / Antigravity hooks: event → action, config install/remove |
nonsleep/main.swift |
CLI |
scripts/nonsleep-indicator.py |
Linux tray indicator / waybar module; shells out to the CLI only |
NonSleepBar/NonSleepBarApp.swift |
app entry, delegate, menu bar menu |
NonSleepBar/BarModel.swift |
state and actions shared by menu and window |
NonSleepBar/MainWindow.swift |
management window |
NonSleep is designed for maximum transparency and minimal privilege:
- No telemetry, no background network: Nothing is ever sent on its own — no analytics, no crash reports, no launch check. The engine, the CLI, the MCP server and the reaper contain no network code at all (
grep -rn "URLSession\|import Network\|socket(" Sources/NonSleepKit Sources/nonsleepreturns nothing). The only request the project can make is the Check for updates button in the app window, which reads the latest release tag from the GitHub API on click and downloads nothing. Verify withlsof -p "$(pgrep -f 'NonSleep|nonsleep' | tr '\n' ',')" -i. - Zero Third-Party Dependencies: 0 npm packages, 0 Swift Package Manager remote dependencies. Links only standard library and Apple system frameworks (
AppKit,SwiftUI,IOKit,CoreGraphics). - Minimal Privilege (No Root Daemon): Does not run any background daemon as root. Setup requests administrator rights once to install a single-line sudoers rule strictly limited to
/usr/bin/pmset -a disablesleep 0and1. - TOCTOU-Proof Setup: The sudoers file is staged into
/etc/sudoers.d/as0440 root:wheelbeforevisudo -cvalidation to prevent local race conditions. - Non-Intrusive Agent Hooks: Hook scripts for Claude Code, Cursor, and Antigravity only notify when turns start and finish. They never approve, deny, modify, or read agent prompt contents.
- Verifiable Supply Chain: All CI/release GitHub Actions are pinned to immutable commit SHAs, and release artifacts include GitHub Artifact Attestations (SLSA Level 3).
- Build from Source: If you prefer not to run pre-compiled binaries, building directly from source takes ~30 seconds:
git clone https://github.com/Tran-Duc-Duy/nonsleep.git && cd nonsleep && scripts/install.sh.
See SECURITY.md for full threat model details and reporting procedures.
Built with pure Swift, AppKit, and SwiftUI — no Electron, no Node.js, and zero background polling:
| Metric | NonSleep Measurement | Real-World Impact |
|---|---|---|
| App Bundle Size | 4.5 MB | Universal binary (arm64 + x86_64) + icon assets |
| CLI Binary Size | 601 KB | Standalone native binary (nonsleep), including the MCP server and both languages |
| Idle CPU Usage | 0.0% – 0.1% | Pure IOKit event-driven callbacks; zero CPU wakeups |
| CLI Execution Speed | ~0.03 seconds | Subcommands execute in ~30 ms, then immediately exit |
| Memory (RAM) | ~3.9 MB (CLI) / ~25 MB (App) | Native lightweight footprint vs 300–800 MB for Electron apps |
| Disk Storage Footprint | < 10 KB total | Config (~300 B) + ephemeral leases (~150 B); zero database |
| Zero Junk / Zero Logs | 0 disk bloat | No SQLite, no log files, dead leases swept every 60s |
| Battery Protection | Automatic cut-out | Drops sleep assertion if battery < 20% or thermal warning |
- A closed, awake MacBook in a bag gets hot. The thermal cut-out helps, but don't rely on it alone.
- While a lease is held, macOS does not sleep at all: no idle sleep, and the Apple-menu Sleep item and power button do nothing. Use Sleep now /
nonsleep sleep. - Release builds are ad-hoc signed, not notarized (no Apple Developer ID yet), hence the one-time Open Anyway step. Builds you make yourself aren't quarantined.
swift build
scripts/test.sh # swift test; also works with only the Command Line Tools
scripts/build-app.sh # → build/NonSleep.app (ARCHS="arm64 x86_64" for universal, needs Xcode)
swift scripts/make-icon.swift Resources/AppIcon.png # regenerate the icon (drawn in CoreGraphics)See CONTRIBUTING.md for guidelines and the release process (push a vX.Y.Z tag; CI builds and publishes the release), and SECURITY.md for reporting vulnerabilities. Changes are listed in CHANGELOG.md.