whatisgithub

What is agent-ram-monitor?

mdmxmyr/agent-ram-monitor — explained in plain English

Analysis updated 2026-05-18

1PythonAudience · developerComplexity · 2/5LicenseSetup · easy

In one sentence

A CLI and Mac menu bar app that shows which AI coding session is eating your RAM, so you can kill the culprit and resume the session afterward.

Mindmap

mindmap
  root((agent-ram-monitor))
    What it does
      Tracks session RAM
      Kills bloated sessions
      Resumes sessions
    Tech stack
      Python
      Swift
      AppKit
    Use cases
      Find RAM hogs
      Investigate spikes
      Resume agents
    Audience
      Developers
      AI agent users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Find out which Claude Code, Codex, or Copilot session is using too much memory.

USE CASE 2

Kill a bloated session's process tree and immediately resume the same conversation.

USE CASE 3

Investigate a past memory spike using the flight recorder history log.

USE CASE 4

Watch a live menu bar gauge that warns when a session crosses a memory threshold.

What is it built with?

PythonSwiftAppKit

How does it compare?

mdmxmyr/agent-ram-monitor0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultyeasyhardhard
Complexity2/54/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

macOS only, needs Xcode Command Line Tools to compile the menu bar app.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

Agent RAM Monitor is a tool for people who run AI coding assistants like Claude Code, Codex, or Copilot CLI throughout the day and sometimes notice their computer's memory quietly filling up. Instead of just seeing a wall of unlabeled processes in Activity Monitor, this tool groups memory usage by coding session, showing you which specific task an agent was working on and how much memory its entire process tree, including any helper tools or browsers it spawned, is actually using. The tool comes as both a command line program and a native menu bar app for Mac. It breaks down each session's memory into categories like helper servers, browser windows, and test runner processes, and if a group of many identical worker processes is bloating things, it collapses them into a single line so you can kill the whole group at once. Each session is also linked back to its resumable ID, so once you kill a heavy process you can immediately restart that same conversation with the agent picking up right where it left off, now with a smaller memory footprint. Because memory problems often happen while nobody is watching, the app quietly logs a snapshot every few seconds to a small local history file. After noticing a spike, you can run a command that reconstructs what happened, showing exactly when memory jumped and which specific process caused it. The menu bar app also shows a live gauge of your Mac's total memory, turns a warning color when any single session crosses a memory threshold you can configure, and lets you jump straight to the window running that session. The project is written in Python using only its built in standard library, plus a single Swift file for the native Mac menu bar interface, so installing it does not require any extra Python packages. It only works on macOS, since it depends on Mac specific system tools, and it is released under the MIT license.

Copy-paste prompts

Prompt 1
Install agent-ram-monitor on my Mac and show me which coding session is using the most RAM.
Prompt 2
Explain how agent-ram-monitor maps a process back to a resumable Claude Code session.
Prompt 3
Run agent-ram-monitor blame to find out what caused my memory spike last night.
Prompt 4
Show me how to configure the memory alert threshold for the menu bar app.

Frequently asked questions

What is agent-ram-monitor?

A CLI and Mac menu bar app that shows which AI coding session is eating your RAM, so you can kill the culprit and resume the session afterward.

What language is agent-ram-monitor written in?

Mainly Python. The stack also includes Python, Swift, AppKit.

What license does agent-ram-monitor use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is agent-ram-monitor to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is agent-ram-monitor for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.