06 / Independent project
Trinetra
Keeps a Mac awake while its agents work.
An open-source macOS menu bar app I built so remote-controlled coding agents keep running with the lid closed, then let the Mac sleep when the work is done.
Explore the repositoryPurpose / Layer 01
What makes it worth building?
Remote control lets you drive a coding agent from your phone, but only while the computer stays awake. Closing the lid or a long pause between prompts puts the Mac to sleep and the session stops.
Approach / Layer 02
How the pieces work together.
I track agent activity through Claude Code and Codex hooks, decide the power state in one pure, tested function, and keep the privileged part to a tiny helper that can only switch lid sleep on or off.
Trade-off / Layer 03
Where the boundary belongs.
Keeping a closed laptop awake costs battery and heat, so the battery floor and the automatic revert are mandatory rather than settings.
Notice the work
Hold the Mac awake
Let it sleep again
03 / Open the artifact
Follow the work.
Conceptual workflow. The repository has the design documents, source and tests.
Explore the repository04 / Trade-offs and limits
Keep the boundaries visible.
Keeping a closed laptop awake costs battery and heat, so the battery floor and the automatic revert are mandatory rather than settings.
Early v0.1, built from source with a personal signing team. Remote-session holds and phone alerts are on the public roadmap.