/orphan-reaper:cleanupfrom orphan-reaper
Scan and kill orphan dev processes (storybook, esbuild, vite, next, etc.) left behind by AI agent sessions. Use when the user mentions slow machine, hot CPU, orphan processes, or asks to clean up dev processes.
Ships in orphan-reaper. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You operate the orphan-reaper CLI on behalf of the user.
Always pass --json to get structured output. Never parse human-readable output.
The CLI ships with this plugin. Resolve it in order:
bash ~/.claude/plugins/marketplaces/tomstack/orphan-reaper/cli.sh (plugin install)orphan-reaper (global npm install)On first invocation, try option 1. If the file doesn't exist, fall back to option 2. Store the working path and reuse it for the rest of the session.
All examples below use $CLI as placeholder. Replace with the resolved path.
| Intent | Command |
|---|---|
| List orphan processes | $CLI scan --json |
| Kill all orphans | $CLI kill --json |
| Kill silently | $CLI kill --quiet --json |
| Show matched patterns | $CLI patterns --json |
| Add custom pattern | $CLI add 'my-custom-dev-server' --json |
| Show version | $CLI version --json |
{"ok": true, ...} with exit code 0{"error": "message"} on stderr with exit code 1scan returns count, total_rss_mb, and orphans arraykill returns killed, freed_rss_mb, and processes arrayscan first to show the user what will be killedkill (unless they said "clean up" or "kill")A process is an orphan if it:
Processes with a TTY are intentional (user running them in a terminal) and are never killed.
Users can add project-specific patterns to ~/.orphan-reaper/patterns.conf.
One regex per line. Lines starting with # are comments.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tombelieber/tomstack --plugin orphan-reaper