A session-first view of your Mac's load, inside Claude Code.

Most monitors group work by program: "node ×87", "Docker". When several Claude Code sessions run at once, the questions are different. Which session is slowing my machine down? What is it running? Which one should I pause? machine-load answers by grouping everything (child processes, background jobs that lost their parent, and Docker containers) under the Claude Code session or project that started it.

An unofficial open-source utility from Stak Technologies. Not a supported product.

macOS only. Unofficial: not affiliated with or endorsed by Anthropic. Provided as-is, with no support.

  • A load chip above the prompt. It shows the load average with a coloured dot (calm, busy, overloaded) and opens the panel when clicked. When another mod already has a row there, the chip sits on the same line. It also adds a small 30-minute load chart beside theponytail band when that band is expanded.
  • A side panel (/load ) that explains the load number in plain English ("on average 34 tasks wanted the processor at once; your Mac has 10 cores"), with a 30-minute load chart and CPU, GPU and memory figures.
  • A details table with sortable columns (name, running time, CPU, memory). Rows hold their place between refreshes, so the list doesn't jump while you read it. It has three collapsible sections:
  • Claude sessions: each session's processes and Docker containers.
  • Detached jobs: work whose session has ended, grouped by folder.
  • Mac apps and system.
  • A Docker drill-down. Each container shows its image, the branch and step it is running, how long it has been up, and the session that started it.
  • Search across sessions, folders, branches and programs. Case, spaces and dashes are ignored, sobilling api findsbilling-api-worktree .
  • /load demo swaps in made-up sessions, so you can take screenshots without showing your own work. Run it again to switch back.
  • Plain-English labels such as "Jest test worker", "Next.js dev server" and "Playwright test browser", instead of raw command lines.

In Claude Code, type:

/plugin install machine-load --marketplace Stak-Technologies/machine-load

Answer y to add the marketplace, then pick a scope. The chip appears above the prompt in new sessions, and /load opens the panel.

In order:

  1. Parent processes. Walk up a process's parents until reaching a live Claude Code session (from~/.claude/sessions/*.json , checked against the process start time so a reused PID is not credited to the wrong session).
  2. CLAUDE_PID. Background jobs whose shell exited are re-parented to launchd but still carry theCLAUDE_PID of the session that started them. Only that one variable is read from a process's environment, and the rest is discarded straight away.
  3. Docker. - A container is tied to the docker run command that started it, and that command is traced as in steps 1–2.
  • If you pass -e CI_SHA=<commit> todocker run (and optionally-e CI_BRANCH=<branch> ), the match is exact and the branch is shown.
  • Without those variables, a container is matched to a docker run of the same image when there is only one.
  • Compose containers are matched through their project's working folder.
  1. A container is tied to the
  2. Folder. If none of the above works, a job is grouped by its working folder, and credited to a session only when exactly one session works in that folder.
  • Full command lines are never shown. Labels come from a fixed list, the program name, a script's file name, a Python module name (-m ) or an npm script name.
  • Of a process's environment, only CLAUDE_PID is kept:ps reads the rest, which is discarded at once and never stored or shown. Of a container's environment, onlyCI_SHA andCI_BRANCH leave Docker.
  • Nothing leaves your machine. To keep the cost low with many sessions open, one session samples every 10 seconds and the others read its result from ~/.claude/state/machine-load.json . That file holds labels, session names, folder paths and branch names; never command-line arguments or environment values. IfDOCKER_HOST points at a remote Docker server, the plugin'sdocker calls go there.
  • macOS only. Unofficial: not affiliated with or endorsed by Anthropic. Provided as-is, with no support. It usessysctl ,ioreg ,memory_pressure ,ps andlsof .
  • It depends on Claude Code's ~/.claude/sessions files, which are not a documented interface and may change in a future Claude Code release.
  • Fan speed is not shown, because it needs admin rights on Apple Silicon.
  • CPU % is a share of one core (100% = one core fully busy).
claude plugin validate .
claude plugin test .

MIT. See LICENSE.

原文来源:github.com