---
title: "watch-my-ram：一个用于关注 Mac 内存的 Claude Code 模组"
url: "https://claudemods.dev/zh-cn/builds/running-multiple-claude-code-sessions-in-parallel-is-great-u-4cd372"
source: "https://github.com/nguyenphusi/watch-my-ram"
source_type: "github"
repo: "https://github.com/nguyenphusi/watch-my-ram"
author: "Si Nguyen"
author_handle: "nguyenphusi13"
stars: 0
category: "记忆与上下文"
categories: ["memory"]
tags: ["hooks", "macos", "memory", "process-monitoring", "slash-command", "statusline"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add nguyenphusi/watch-my-ram\nclaude plugin install watch-my-ram@watch-my-ram"
added: "2026-11-13T04:31:20.777Z"
updated: "2026-11-13T04:34:49Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# watch-my-ram：一个用于关注 Mac 内存的 Claude Code 模组

一个小型开源 Claude Code 模组，它在提示符上方显示 RAM 使用情况和内存压力，并新增 /watch-my-ram 命令，用于列出活动会话、残留的开发进程和打开的端口。它只读取并发出警告——绝不会自动终止任何内容。

## Description

并行运行多个 Claude Code 会话很棒。直到我的 16 GB Mac 开始冲我大喊。空闲会话、残留的开发服务器、孤儿进程，全都在占用内存。

所以我构建了 watch-my-ram，一个用于关注 Mac 内存的小型 Claude Code 模组。

它的功能如下：
• 在提示符正上方显示 RAM 使用情况和内存压力。
• /watch-my-ram 列出活动会话及其内存使用情况、PR 合并状态、残留的开发进程和打开的端口。
• 当 Claude 在另一个会话已经在测试时开始运行测试，它会发出警告。

它只读取并发出警告。它不会自动终止任何内容。你可以向 Claude 询问建议，并决定要关闭什么。

它是开源的。仓库链接：https://github.com/nguyenphusi/watch-my-ram

## Install

```
claude plugin marketplace add nguyenphusi/watch-my-ram
claude plugin install watch-my-ram@watch-my-ram
```

## Original README

Running multiple Claude Code sessions in parallel is great. 
Until my 16 GB Mac starts yelling at me.  

Idle sessions, leftover dev servers, orphaned processes, all eating up memory. 

So I built watch-my-ram, a small Claude Code mod to keep an eye on my Mac's memory.  

Here's what it does:  

• Shows RAM usage and memory pressure right above the prompt.  

• /watch-my-ram lists active sessions, their memory usage, PR merge status, leftover dev processes, and open ports.  

• Warns when Claude starts running tests while another session is already testing.  

It only reads and warns. 
It doesn't kill anything automatically. 
You can ask Claude for suggestions and decide what to close.  

It's open source. 
Link to repo: https://github.com/nguyenphusi/watch-my-ram  

P.S. A better solution is probably getting a new Mac with more RAM though 😂
