---
title: "watch-my-ram：一個用來關注 Mac 記憶體的 Claude Code 模組"
url: "https://claudemods.dev/zh-tw/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-tw"
content_locale: "zh-tw"
---

# 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 😂
