Coding agents stop when the terminal closes, and they either ask about everything or nothing. I wanted tasks that keep going after I quit the app, run on my Mac or a server, and only interrupt me when it actually matters.
Piwright
An agent harness that keeps working when I walk away
- Role
- Design + Build
- Year
- 2026
- Platform
- SwiftUI + pi
My own agent harness, built on pi: a native Mac app and a daemon on each machine that run coding tasks and automations in the background, approval first.

The Problem
The Approach
Contracts first: a versioned trace schema and daemon API, plus a fixture mode so the app never waited on the daemon. Then milestones, through to control and automations. Every screen was designed in Wonder first, and once it worked, I redesigned the whole Mac app in Liquid Glass and rebuilt it to match.
Plans, approvals and stuck tasks come to me. Everything else just runs.
The App
A native Mac app in SwiftUI with a floating glass sidebar. Each task opens to Chat, Overview, Changes and Trace, and I can start a new one from anywhere.

It's approval first: the plan shows up before anything runs, and risky steps wait for a yes.
Under the Hood
- A daemon per machine. On the Mac it runs under launchd, so tasks survive the app quitting. A remote server is reached over an SSH tunnel.
- A pi extension that writes an append-only, crash-safe SQLite trace. It's the only writer; the app only reads, with search, filters and export.
- Smarter tasks: each phase can run on its own model, cheap fixes are tried in code before I'm asked, long tasks compact their own context, and required checks must pass before a task counts as done.


Automations
Automations run on a schedule, an interval, or when I hit Run now. Each one is a card with its own detail sheet, recorded outcomes, editing and an on/off switch. They run behind the same approvals as everything else.

What needs me also shows up in the menu bar's Quick Peek.

Where It Stands
The core harness shipped in its first week. The glass redesign is built (Chat, Overview, Changes and Trace, Automations cards, Settings split into Skills, MCP servers, Prompts, Instructions and Memory, and pi-native subscription sign-in), and I'm polishing the window chrome and checking it against the designs now.
Crafted PortalOne quiet place for studio clients, projects and invoices