Process Guardian plugin marketplace
npx claudepluginhub ibarapascal/process-guardianAuto-cleanup orphan processes from Claude Code sessions. Detects and kills orphan Claude subagents, MCP servers, and browser instances on session start. Tracks processes spawned by Bash tool calls and cleans up orphans from crashed sessions. Supports macOS, Linux, and Windows.
Claude Code plugin for auto-cleanup of orphan processes from AI coding sessions.
The problem:
What it does:
/check command for manual process managementKey principle:
claude plugin marketplace add ibarapascal/process-guardian
claude plugin install process-guardian@process-guardian
That's it. The plugin runs automatically on every session start.
Just start a new Claude session. Process Guardian will:
During your session, PostToolUse(Bash) hook silently tracks new PPID=1 processes (~50ms overhead per Bash call). On clean exit, tracking data is marked as clean. On crash/Ctrl+C, next session auto-cleans.
/check
Scans and displays both tracked session processes and allowlist-matched orphan processes with options to kill specific ones.
Your normal processes are never touched.
| Approach | Unknown Process | Risk |
|---|---|---|
| Blocklist | Might get killed | High |
| Allowlist | Ignored | None |
Only these specific patterns:
claude --* (subagents with arguments)@modelcontextprotocol/server-*@playwright/mcp, playwright-mcp@upstash/context7-mcp--remote-debugging-port or ms-playwrightScans PPID=1 processes and kills those matching known patterns (Claude subagents, MCP servers). Fast and deterministic.
Tracks processes spawned by Bash tool calls:
.clean exit.clean) → kills tracked orphans with triple verification (PID + start time + command)This catches arbitrary scripts (Python, Node, etc.) that allowlist can't cover.