cd /news/ai-tools/show-hn-machine-load-see-which-ai-co… · home › topics › ai-tools › article
[ARTICLE · art-177445] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: Machine-load – see which AI coding session is slowing your Mac

Stak Technologies released machine-load, an unofficial open-source macOS utility that groups a Mac's CPU, GPU and memory load by the Claude Code session or project that started each process, so users can see which of several concurrent sessions is slowing the machine. The tool installs as a Claude Code plugin via `/plugin install machine-load --marketplace Stak-Technologies/machine-load` and adds a load chip above the prompt, a `/load` side panel with a 30-minute load chart, and a sortable details table covering Claude sessions, detached jobs and system apps. Machine-load attributes work to sessions by walking parent processes against `~/.claude/sessions/*.json`, reading only the `CLAUDE_PID` environment variable from re-parented background jobs, and matching Docker containers through their `docker run` command or `CI_SHA`/`CI_BRANCH` variables; Stak Technologies states nothing leaves the machine and that the utility is not affiliated with or endorsed by Anthropic.

key takeaway

machine-load attributes each process, detached background job and Docker container to the Claude Code session that started it by walking parent processes against ~/.claude/sessions/*.json and reading only the CLAUDE_PID variable, so concurrent sessions can be told apart.

read4 min views13 publishedNov 27, 2026
Show HN: Machine-load – see which AI coding session is slowing your Mac
Image: Michielbdejong (auto-discovered)

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 ? 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.

── more in #ai-tools 4 stories · sorted by recency
── more on @stak technologies 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-machine-load…] indexed:0 read:4min 2026-11-27 · —