npx claudepluginhub sahasrarjn/claude-rampartsCaps RAM used by Bash-spawned work via a background watchdog (macOS).
A lightweight Claude Code plugin that caps the RAM used by Bash-spawned work, so a
runaway build/test/script can't OOM your Mac. Pure bash + ps + jq — no other
dependencies.
macOS has no cgroups, so there's no preventive hard cap for a process running
directly on the host. claude-ramparts runs a small background watchdog: a
SessionStart hook launches a daemon that polls Claude's process tree every
250 ms and kills any command subtree over the per-command cap, or trims the
tree when the global budget is exceeded. A PostToolUse hook tells Claude
when a command was killed. The daemon never touches the Claude process itself.
Each Claude session gets its own isolated daemon and data directory, keyed by
the hook's session_id. This means multiple concurrent Claude sessions are
independently governed — the second session does not inherit the first session's
daemon, and ending one session does not affect any other. All state (kills.log,
pidfiles, config overrides) lives under a per-session subdirectory.
This is reactive, not preventive: a process can briefly spike before being killed. It reliably prevents sustained overuse — the kind that freezes a machine. Governs Bash-spawned subprocesses only — not Claude's own internal tools.
Requires jq (brew install jq).
Dev / local:
claude --plugin-dir /path/to/claude-ramparts
Via marketplace:
# in Claude Code
/plugin marketplace add /path/to/claude-ramparts
/plugin install claude-ramparts@claude-ramparts-marketplace
Defaults: 4 GB per command, 8 GB total. Override by creating
config.json in the plugin's data dir (${CLAUDE_PLUGIN_DATA}/config.json):
{ "perCommandMB": 2048, "globalBudgetMB": 4096, "action": "kill" }
Fields: perCommandMB, globalBudgetMB, pollIntervalMs, graceMs,
action (kill | warn-only).
bash tests/run.sh # unit tests
RG_RUN_INTEGRATION=1 bash tests/run.sh # + real-process watchdog test
7-day visitors to each marketplace page
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.
tasteskill 2.5.1: professional company websites at the figma.com and x.ai level, checked in a real browser.