What it is, why it exists, how it was made
What
A small macOS menu bar app and CLI that holds your Mac awake, lid closed included, exactly while your AI agents are working, then lets it sleep.
It also tells you what each agent did and what the Mac was doing while you were away.
Why
Remote Control lets you drive Claude Code or Codex from your phone, but only while the Mac is awake. Close the lid and the session dies.
caffeinate and Amphetamine don't know when your agents finish and can't stop lid-close sleep on battery. Some lid tools rely on a sudoers rule. I wanted something that watches the agents and holds the narrowest possible privilege.
How
Swift and SwiftUI, a pure, unit-tested decision function, the agents' own hooks, and a single-purpose root helper approved once through SMAppService.
Designed and directed by me, built with Claude Code: the same kind of agent Trinetra keeps awake.
The idea and the spike
Tested what actually keeps a MacBook awake. A power assertion, the thing caffeinate uses, holds idle sleep but not a closed lid on battery. Only pmset disablesleep does, and it needs root.
v0.1
Menu bar app with the animated third eye, Claude Code and Codex hooks, timers, trinetra run, and one pure Reconciler function that decides awake or asleep.
Lid mode done properly
Replaced an admin script with a signed helper: fixed pmset commands only, code-signature checked, reverts on disconnect and after 2 minutes without a heartbeat. Added Gemini CLI and Cursor, session summaries, the battery-saved estimate and CI on every push.
System monitor, health alerts, this site
Optional modules for CPU, GPU, heat, power and network with alerts, demos made with HyperFrames, and this page on its own subdomain.