Skip to main content

macOS silicon monitor (E/P cores, GPU, NPU) with a TUI

Project description

monmon

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.

Requirements

  • macOS on Apple Silicon (M1 or newer)
  • Python 3.12+
  • uv
  • sudo access (Apple's powermetrics requires root)

Install / run

Homebrew (recommended for users)

brew install gavi/monmon/monmon
monmon

From source (for development)

uv sync
uv run monmon

You'll be prompted for your password once — sudo caches it for the session and powermetrics is spawned under sudo -n so it never blocks the TUI.

Optional flags:

uv run monmon --interval 500   # 500 ms samples (default: 1000)

Quit with q or ctrl-c.

What you see

  • 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. powermetrics doesn'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.)

Data source

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.

Origin prompt

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monmon-0.1.0.tar.gz (398.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monmon-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file monmon-0.1.0.tar.gz.

File metadata

  • Download URL: monmon-0.1.0.tar.gz
  • Upload date:
  • Size: 398.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.11

File hashes

Hashes for monmon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c516b00d131b38a6cd054cd58b5190daf6b96071a7b70ff9dc4d76588d089a9f
MD5 ff72036cc14a0e23abd242a87aa9617c
BLAKE2b-256 f734b3e0e4c7e7916534910e0ed92cb2307732009bdd198e1a0fcfe74c56e860

See more details on using hashes here.

File details

Details for the file monmon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: monmon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.11

File hashes

Hashes for monmon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad4b03f27f6cf1497142de7aa265c88edb5b0393ba34721c731921c91607cf1
MD5 21639c4640db02b11953689ad8e9bf8f
BLAKE2b-256 dc214e8eca956ee82a471e83cec228b5bf073802b264667ea50e87b5241314ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page