Commands
Why the CPU numbers are trustworthy
The CLI samples CPU twice with a short delay before reporting. A singlelibproc sample gives a cumulative figure that is close to meaningless as an instantaneous percentage; the delta between two samples is the real utilisation.
This is the difference between a number you can set a threshold on and a number that merely looks precise.
Uses
Scripting
--json gives a stable snapshot to pipe into monitoring, dashboards, or a chat alert.Cron checks
Periodic sampling on a machine where you do not want a GUI running.
CI smoke tests
Exercise the monitoring core on a macOS runner without launching the app.
Emergency stop
--kill from a terminal when the menu bar is unreachable.Limits
The same boundaries as the app, since it is the same core:- Only your own user’s processes can be sampled or signalled. Anything else returns
notPermitted. - Token costs are estimates from local logs and a hand-maintained pricing table — they will not match a provider invoice exactly.
Full context on the limits
What Agent Sentinel does and does not claim to do.