Add official System Monitor plugin - #1171
Conversation
|
Nice to see this proposed as an official plugin — host visibility is genuinely useful when agents are the ones loading the machine. I built something very similar independently (bb-plugin-system) and, in auditing it, measured a few things on macOS that may be worth checking against this implementation before it becomes official. Sharing them because they bit me, not as criticism of the PR: 1. 2. "Memory pressure" isn't 3. Load average is not CPU%. Dividing
On refresh cadence: a fixed short interval spawning several child processes per tick fights macOS timer coalescing, and App Nap silently stretches it when the app is backgrounded anyway. What I'm moving to is an adaptive interval — frequent while a thread is running a turn or the panel is open, sparse otherwise — which bb can do better than a generic monitor because it knows when work is happening. Worth considering for an official plugin that will run on every user's machine. The one thing mine has that this doesn't is retained history (24h ring buffer + sparklines + |
|
This is a proposal to add
System Monitoras an official plugin, please close this pull request if you believe it shouldn't be part of the official/built-in plugins and I will move this to my repository.I've been running bb on a VM and I've been enjoying this plugin architecture, I figured it could be a good idea to show stats of the host machine, especially the remaining space.
Summary
bb system-monitor [show] [--json]for human-readable and structured outputSystem Monitor reports metrics for the host running the bb server, not separately enrolled execution machines. CPU speed uses
os.cpus()with a Linux/proc/cpuinfofallback.