ProcessGuard documentation
ProcessGuard monitors processes, battery, memory, thermal state and network connections on macOS. It keeps 7 days of history and tells you why the machine is slow, with the evidence behind each answer.

The three parts
ProcessGuard has three parts. All of them use one JSON-RPC 2.0 API on a Unix domain socket.
| Part | What it is | Who uses it |
|---|---|---|
pguardd | A Rust daemon. It samples the system, scores each process and keeps history in SQLite. | Runs in the background. You do not open it. |
ProcessGuard | A SwiftUI app with a main window and a menu bar item. | You, every day. |
pguard | A command-line client. Text for people, one JSON document for tools. | You in a terminal, your scripts and your AI assistants. |
pguardd (Rust) ProcessGuard (Swift)
┌────────────────────────┐ ┌──────────────────────┐
│ Sampler → Scorer │ │ Menu bar item │
│ Battery / system state │◄────────►│ Sidebar + charts │
│ Network scanner │ UDS │ Live + history │
│ SQLite storage │ └──────────────────────┘
│ JSON-RPC server │◄────────► pguard CLI, scripts, AI assistants
└────────────────────────┘ UDS
Design principles
- It observes. It acts only when you ask. The daemon runs an action only on a request from ProcessGuard's signed app or CLI, only when you switched that action on, never on macOS services, security agents or itself. It logs every attempt.
- Evidence, not guesses. A cause is a reading past its threshold. A co-movement is labelled as a co-movement. Each answer lists what the evidence cannot show.
- One run is one identity. A process is identified by its PID, its start time and the boot session, so a reused PID never mixes two programs.
- Local. No account, no telemetry. IP geolocation uses an offline database inside the app.
Where to start
pguard command, its output and exit codes.
AI agents →Agent sessions, left-behind processes, local models and the agent prompt.
JSON-RPC API →All methods, parameters, push events and error codes.
Requirements
- macOS 14.4 or later.
License
ProcessGuard is commercial software, not open source. © 2026 Stefano Straus, all rights reserved; the source code is not published. The prerelease is free and works until March 1, 2027; the final version will be paid. The daemon and the CLI include Rust crates under their own licenses; the full list is in Settings › About › Attributions. IP address data powered by IPLocate.io, licensed under CC BY-SA 4.0. The country outlines of the Connections map are from Natural Earth, in the public domain.