Developer tools

Machine-load plugin groups Mac system resources by Claude Code session

Stak Technologies released machine-load, an unofficial macOS plugin that attributes CPU and memory usage to specific Claude Code sessions for better resource management.

A MacBook showing a system load dashboard with session-based metrics.
Illustration generated for this article

Stak Technologies has released machine-load, an unofficial open-source utility designed for macOS users of Claude Code. Published on November 27, 2026, this plugin provides a session-first view of system load, allowing developers to identify which specific AI coding session or project is consuming computational resources.

What happened

Traditional system monitors group activity by program name, such as listing multiple Node.js processes or Docker containers separately. This approach becomes inefficient when developers run several Claude Code sessions simultaneously, as it obscures which specific session is causing performance bottlenecks. Machine-load addresses this by aggregating child processes, background jobs, and Docker containers under the specific Claude Code session or project that initiated them.

The utility is not affiliated with or endorsed by Anthropic and is provided as-is without support. It is strictly limited to macOS environments. The tool aims to answer practical questions for developers, such as determining which session is slowing down the machine, what tasks it is executing, and which session might need to be paused to restore performance.

How it works

Machine-load traces work to a session using a hierarchical method. First, it walks up the parent process tree until it reaches a live Claude Code session, verifying against session start times to avoid crediting reused process IDs to the wrong session. For background jobs whose shell has exited and been re-parented to launchd, the plugin reads the CLAUDE_PID environment variable, discarding all other environment data immediately for privacy.

Docker containers are linked to the docker run command that started them, which is traced using the same parent process or PID methods. If users pass specific environment variables like CI_SHA or CI_BRANCH, the match is exact. Otherwise, containers are matched by image name or Compose project folder. If no other method succeeds, jobs are grouped by their working folder and credited to a session only if exactly one session is active in that directory.

To minimize performance overhead, only one session samples system metrics every 10 seconds. Other sessions read the results from a local state file, ensuring low cost even with many sessions open. The plugin uses standard macOS tools like sysctl, ps, and lsof to gather data.

Key details

  • Interface: A load chip above the prompt shows load average with a colored dot (calm, busy, overloaded) and a 30-minute chart. A side panel (/load) provides plain-English explanations of load numbers.
  • Details Table: Sortable columns for name, running time, CPU, and memory. Rows remain stable between refreshes to prevent visual jumping.
  • Categorization: Processes are grouped into Claude sessions, detached jobs (grouped by folder), and Mac apps/system processes.
  • Docker Insights: Displays container image, branch, step, uptime, and the originating session.
  • Privacy: Full command lines are never shown. Labels are derived from fixed lists, file names, or module names. Only CLAUDE_PID, CI_SHA, and CI_BRANCH are retained from environments.
  • Demo Mode: The /load demo command swaps in fake sessions for screenshots, protecting user privacy during sharing.

Why it matters

For engineers building products with AI, managing local compute resources is critical as models and agents become more resource-intensive. When multiple AI-assisted coding sessions run in parallel, they can saturate CPU cores and memory, leading to sluggish IDEs and slow test runs. Machine-load provides the visibility needed to make informed decisions about resource allocation, allowing developers to pause non-critical sessions rather than guessing which process is the culprit.

The plugin’s focus on privacy and low overhead makes it viable for daily use. By avoiding the display of full command lines and discarding sensitive environment variables immediately, it mitigates the risk of leaking proprietary code or credentials through screen shares or logs. The use of a shared state file for sampling ensures that the monitoring tool itself does not become a source of system lag.

However, users must be aware of its limitations. As an unofficial tool relying on undocumented interfaces like ~/.claude/sessions, it may break with future updates to Claude Code. Additionally, it cannot display fan speeds on Apple Silicon due to permission restrictions, and CPU percentage is reported as a share of a single core.

What you can do

  • Install the plugin in Claude Code by typing /plugin install machine-load --marketplace Stak-Technologies/machine-load and confirming the marketplace addition.
  • Use the /load command to open the side panel and view plain-English explanations of current system load and resource usage.
  • Utilize the search function to find specific sessions, folders, or programs, noting that case, spaces, and dashes are ignored for flexible matching.
  • Run /load demo to generate fake session data when creating documentation or screenshots to protect your actual work context.
  • Monitor the load chip above the prompt for quick status checks, clicking it to expand the detailed panel when the dot indicates a busy or overloaded state.
  • Be prepared for potential breaking changes by checking for updates, as the plugin depends on internal Claude Code file structures that are not officially documented.
  • #claude code
  • #macos
  • #system monitoring
  • #developer tools
  • #open source

Tools from the Bytechap store

Keep reading

All stories