load
Reviewed
at commit 19c2865
New version, not yet reviewed
Keep Claude-driven browsers and builds from saturating the machine
0 upvotes
Log in to upvote or save- Made by
- Ben Drucker
- Pinned commit
-
19c28652509ea41db459b8d98c29464c4fd5ffe3 - What we checked
-
Paces heavy work on your machine. It can remind Claude to slow down when load or memory pressure is high, refuse Bash commands that match caps you configure (such as a limit on concurrent builds), and keeps each agent to one agent-browser session. Caps and load thresholds are off until you set them. It looks at the process list and system load, sends nothing anywhere, and depends on the mod-events plugin for its event log.
Review details
Static review of the source at the pinned commit; not run. Full re-review of the plugin (the diff since b28bf4d was too large for a delta). Registers session.start, tool.call for every tool (after the tool runs, samples the machine at most every 15 s and appends a pacing reminder as context when the level rises; off unless the remind threshold is set), tool.call for Bash, turn.complete, classic.SubagentStop and session.end. The Bash hook splits the command with its own tokenizer and checks (1) agent-browser calls: denies a launch while the agent already owns a session, when a session name is built from a shell expansion, when 'close --all' would close other agents' sessions, and when the optional browserSessions limit is reached; it runs 'agent-browser session list --json' and closes sessions it saw an agent launch ('agent-browser --session <name> close') when that agent ends, on a 30 s sweep and at session end; (2) user-configured pool:limit:regex caps (default none): denies a matching command when too many matching processes run, when it starts several in parallel, under critical macOS memory pressure, or above the configured load per core. Machine state comes from 'ps -axo pid=,ppid=,command=' (all processes; used only to match the caps' regexes and count claude processes, kept in memory, only pool names, counts and load go into mod-events events) and 'sysctl -n vm.loadavg hw.ncpu kern.memorystatus_vm_pressure_level' (macOS; elsewhere load and pressure are missing). Reminders and denials are plain text to the model. Probes fail open. No fetch, no file access, no model calls, no npm dependencies. mod-events was not reviewed here. The cap regexes come from the user's own configuration.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: no
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: no
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/load/)