Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By tombelieberv0.1.2MITIn 1 marketplace
Kill orphan dev processes left by AI agent sessions
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Kill orphan dev processes left by AI agent sessions
You have 10 AI agents running. Each spawns storybook, vite, esbuild, webpack. The agents finish. The processes don't. Your machine hits 100% CPU and you don't know why.
npx orphan-reaper scan
AI coding agents (Claude Code, Cursor, Copilot) spawn dev servers as child processes. When the agent session ends, these processes become orphans — no parent, no terminal, invisible, burning CPU and RAM forever.
Your bun dev or npm run dev pipeline handles cleanup properly. But agents bypass the pipeline and run individual scripts directly. When the agent exits, there's no orchestrator to clean up.
orphan-reaper finds and kills these orphans. Nothing else.
| Method | Command |
|---|---|
| npx (no install) | npx orphan-reaper scan |
| Claude Code plugin (auto-cleanup) | See Plugin below |
| Global | npm i -g orphan-reaper |
orphan-reaper scan # List orphan processes (don't kill)
orphan-reaper kill # Kill all orphans (SIGTERM)
orphan-reaper patterns # Show matched process patterns
orphan-reaper add 'pattern' # Add a custom pattern
orphan-reaper version # Show version
| Flag | Effect |
|---|---|
--json | Machine-readable JSON output |
--quiet | Only print if something was killed |
$ orphan-reaper scan
PID 42381 127MB node .../storybook dev -p 6006
PID 42399 33MB node .../esbuild --service --ping
PID 51002 89MB node .../vite preview --port 4173
3 orphan(s), ~249MB total
$ orphan-reaper kill
killed PID 42381 127MB node .../storybook dev -p 6006
killed PID 42399 33MB node .../esbuild --service --ping
killed PID 51002 89MB node .../vite preview --port 4173
Killed 3 process(es), freed ~249MB
A process is an orphan if it matches ALL three conditions:
tty == "??" means it outlived its parent shellProcesses with a TTY (your intentional terminal sessions) are never touched. This is the key safety mechanism — POSIX TTY assignment is the only reliable way to distinguish "user is running this" from "an agent left this behind."
21 patterns covering the most common dev tools:
| Category | Patterns |
|---|---|
| Component dev | storybook dev, storybook build |
| Bundlers | esbuild.*--service.*--ping, webpack serve, parcel serve, rollup.*--watch |
| Dev servers | vite dev, vite preview, astro dev, astro preview, next dev, remix dev, nuxt dev, wrangler dev |
| Frameworks | angular.*serve, turbo.*preview |
| Test runners | vitest.*--watch, jest.*--watch, playwright.*test, cypress open |
| Compilers | tsc.*--watch |
Add project-specific patterns to ~/.orphan-reaper/patterns.conf:
# Add via CLI
orphan-reaper add 'my-custom-dev-server'
# Or edit directly
echo 'my-custom-dev-server' >> ~/.orphan-reaper/patterns.conf
One regex per line. Lines starting with # are comments.
All commands support --json for scripting and tool integration:
$ orphan-reaper scan --json
{"ok": true, "count": 2, "total_rss_mb": 160, "orphans": [
{"pid": 42381, "rss_mb": 127, "command": "node .../storybook dev -p 6006"},
{"pid": 42399, "rss_mb": 33, "command": "node .../esbuild --service --ping"}
]}
$ orphan-reaper kill --json
{"ok": true, "killed": 2, "freed_rss_mb": 160, "processes": [...]}
{"ok": true, ...} with exit code 0{"error": "message"} on stderr with exit code 1orphan-reaper ships as a Claude Code plugin with automatic cleanup on session end.
Install via marketplace:
claude plugin marketplace add tombelieber/tomstack
claude plugin install orphan-reaper@tomstack
What the plugin does:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub tombelieber/tomstack --plugin orphan-reaperPlugins from other owners that cover similar ground