Rambar
Shows RAM by agent session: every Claude Code or Codex session with the full process tree it spawned — MCP servers, dev servers, shells — whether it runs under the desktop app, a terminal, or headless.
brew install maxghenis/tap/rambar
View source
Live panel: sessions ranked by physical footprint, one expanded to its helper tree, and the same four MCP servers resident once per session — 2.9 GB of duplicates on this machine.
What it shows
Sessions, not apps
Each agent session groups its whole descendant tree, so a dev server or MCP server counts against the session that spawned it
Duplicate helpers
The same MCP server resident once per session shows up as one line: name, count, total memory
Orphan reclaim
Helpers that outlive their session get flagged after a grace period, with one click to terminate them
Kernel pressure, not percent
Alerts fire on macOS memory-pressure events and name the session that grew most in the last 10 minutes
History
A 60-minute sparkline in the panel; a week of 5-second samples in SQLite for the mornings something ate 20 GB overnight
Agents read it too
A CLI (rambar top) and an MCP server, so a session can check its own footprint before spawning subagents
Install
Install
brew install maxghenis/tap/rambar, or build from source
Start the collector
rambar install-daemon starts the 5-second sampler as a launchd agent; rambar doctor checks every layer
Optional: connect your agents
claude mcp add rambar -- rambar mcp gives sessions read access to the ledger
Requirements
- macOS 14.0 (Sonoma) or later
- No special permissions — collection uses same-user system calls; no AppleScript, no screen recording