A terminal UI for watching Apple Silicon work: efficiency cores, performance cores, GPU, and the Neural Engine (NPU) — plus the top processes driving load.
One-shot build note: this entire project was generated in a single pass by Claude Opus 4.7 (1M context) running in Claude Code, from the prompt shown at the bottom of this README. No manual edits were made before the first successful run.
- macOS on Apple Silicon (M1 or newer)
sudoaccess — Apple'spowermetricsrequires root- Homebrew (for the recommended install path) or Python 3.12+ and uv (for the source path)
brew install gavi/monmon/monmonThat's a shorthand for brew tap gavi/monmon && brew install monmon. It
pulls the formula from gavi/homebrew-monmon, creates an isolated
Python 3.12 virtualenv in $(brew --prefix)/opt/monmon/libexec, installs
all dependencies pinned to exact versions, and puts monmon on your $PATH.
git clone https://github.com/gavi/monmon.git
cd monmon
uv sync
uv run monmonmonmon # 1 s sample interval
monmon --interval 500 # 500 ms samples — snappier, more CPU overhead
monmon --helpThe first time you launch, macOS prompts for your password so sudo can
start powermetrics. The credential is cached for the session, so subsequent
runs in the same shell skip the prompt.
If the in-TUI password prompt fails (common on TouchID-only setups where subprocess sudo can't trigger the biometric dialog), cache your credential in the shell first:
sudo -v && monmonQuit with q or ctrl-c.
brew update && brew upgrade monmon # pull in new releases
brew uninstall monmon # remove
brew untap gavi/monmon # drop the tap too- CPU panel: every E-core and P-core cluster with per-core active-residency bars and current frequency. E-clusters render in cyan, P-clusters in magenta.
- GPU panel: active residency, frequency, and power draw.
- NPU panel: Apple Neural Engine power.
powermetricsdoesn't expose an "active" counter for ANE, so monmon treats any non-trivial power draw as "in use" and scales the bar against an 8 W ceiling. - Process table: top processes by CPU from
psutil. (powermetrics' task sampler is unreliable across macOS versions, so we use psutil for the "what's running?" view.)
Everything above comes from a single powermetrics -f plist stream with the
cpu_power, gpu_power, and ane_power samplers. Samples are NUL-delimited
XML plists; see src/monmon/power.py for the parser.
This is the exact prompt that produced the project, verbatim:
lets build a mac monitoring system that shows gpu
lets use
uv for package management and tui
we need to see e-cores and p-cores and also gpu and npu to see what is being run
go ahead a build it
Model: Claude Opus 4.7 (1M context) via Claude Code. One-shot — the only
follow-up was a cosmetic request to add this section and a CLAUDE.md.
