Lumen
Built to turn your Mac off, and wake it again, from your iPhone, iPad or another Mac. Not yet tested on real hardware.
A native Apple-platform product (working title): a menu-bar Mac app with a privileged helper, an iPhone and iPad client, and an optional relay for remote use. Built around a small, documented protocol and a written threat model.
- Noise-KK-style handshake (custom HKDF construction, X25519, ChaChaPoly, pinned by known-answer tests; not reviewed by a cryptographer). iPhone and iPad pair only by QR code; the Apple TV pairs by approval on the Mac with a code shown on both screens.
- Root daemon over XPC and Bonjour discovery. A Cloudflare Worker relay for remote access is built and tested, but not yet deployed.
- Live Activity, Siri and App Intents, timers, schedules, and wake through a second Mac. Live Activity and the second-Mac wake still need testing on real hardware.
- Power Guard and
lumenctl mcp: coding agents get exactly five tools: keep the Mac awake, or ask it to sleep or soft-off once work is done (owner policy and a cancellable countdown apply). No file, input or immediate-shutdown tool; the Mac app enforces the limits. - 304 Swift tests plus 12 relay tests, Swift 6 strict concurrency, threat model and decision records. Pre-release app; release planned for January 2027.
- Honest status: real sleep, shutdown and wake, the signed root helper and Wake-on-LAN have so far run only against test doubles and simulators, not on real hardware. The Apple TV app was not built for this release.
- Swift
- SwiftUI
- XPC
- CryptoKit
- MCP
- Cloudflare Workers
- App Intents
Look inside: numbers from the codebase
| Tests | 304 Swift tests (212 + 92) and 12 relay tests, passing on 24 Nov 2026 | swift test, npm test |
|---|---|---|
| Code | about 30,000 non-blank lines of Swift 6 with strict concurrency, no third-party Swift dependencies | wc over *.swift |
| Handshake | Noise-KK-style, pinned by known-answer tests against an independent implementation | docs/adr/0003 |
| Agent tools | 5 MCP tools; keep-awake holds capped at 8 h each and 12 h in a row | README.md |
| Decision records | 8 ADRs, plus a threat model | docs/adr/ |
| Not yet on hardware | power actions, root helper, Wake-on-LAN, wake through another Mac, FileVault unlock, Live Activity | README.md |
From docs/mcp-transcript.md: an agent asks for a restart and for a tool that does not exist.
# action the server never offers (restart)
-> {"jsonrpc": "2.0", "id": 8, "method": "tools/call", "params": {"name": "sleep_when_work_done", "arguments": {"action": "restart"}}}
<- {"jsonrpc":"2.0","id":8,"result":{"content":[{"type":"text","text":"action must be sleep or turn-off."}],"isError":true}}
# tool that does not exist (shutdown_mac)
-> {"jsonrpc": "2.0", "id": 9, "method": "tools/call", "params": {"name": "shutdown_mac", "arguments": {}}}
<- {"id":9,"jsonrpc":"2.0","result":{"content":[{"type":"text","text":"Unknown tool shutdown_mac."}],"isError":true}}
Numbers from the private Lumen codebase (the code stays private; the app release is planned for January 2027). Paths are relative to its root.
