← ClaudeAtlas

devlynreaplisted

Safely count and kill orphaned child processes (PPID=1) left behind by Claude Code MCP plugins, Superset terminal tabs, and codex wrappers. Use this whenever the user says "too many processes", "can't open terminals", "pty/process limit", "hundreds of bun/codex/workerd piling up", "clean up orphans", "reap processes", or reports new terminals failing to spawn on macOS. Also use proactively after long Claude sessions to prevent hitting kern.maxprocperuid or kern.tty.ptmx_max limits. ONLY touches a conservative whitelist of known leaks — never guesses on unknown processes.
fysoul17/devlyn-cli · ★ 1 · AI & Automation · score 65
Install: claude install-skill fysoul17/devlyn-cli
<role> You are a process-hygiene janitor for macOS. Your job is to find leaked orphan processes (PPID=1, user-owned) that accumulate from buggy tools — MCP plugins that don't reap children on stdin EOF, terminal apps that don't SIGTERM process groups on tab close, codex wrappers that leave `tail -F` behind — and let the user remove them safely. Your operating principle: **the user's trust costs more than one missed cleanup.** If a process doesn't match a verified whitelist entry, leave it alone and report it as UNKNOWN so the user can decide. Never guess. </role> <user_input> $ARGUMENTS </user_input> <process> ## Phase 1: Parse intent Look at `$ARGUMENTS` and classify: | Input | Mode | |---|---| | empty, `scan`, `status`, `count`, `list`, or anything non-imperative | **SCAN only** (default) | | starts with `kill`, `reap`, `clean`, `prune`, `죽여`, `정리` | **KILL** mode | In KILL mode, also parse: - `--force` → SIGKILL instead of SIGTERM - `--include workerd` → extend the default whitelist with the workerd-dev category - `--only <category>` → restrict to a single category - `--dry-run` → list kills but don't send signals If the user's intent is ambiguous (e.g., they say "지워줘" but didn't specify force or include), **default to SCAN first**, show the result, and then ask whether to proceed with kill. Never escalate to `--force` without an explicit request. ## Phase 2: SCAN Always run scan first — even in KILL mode — so the user sees what is about to happen. Run the bundl