Back to browse
GitHub Repository

Three-layer automated cleanup for orphan Claude Code processes (subagents, MCP servers, plugins)

14 starsShell

Auto-cleanup for Claude Code's orphan process memory leak

by thequert·Mar 1, 2026·3 points·0 comments

AI Analysis

●●SolidSolve My ProblemShip It

Fixes a widely-reported Claude Code memory leak with three-layer daemon cleanup.

Strengths
  • Three complementary layers (hook, daemon, manual CLI) handle normal/abnormal/manual cleanup cases effectively.
  • Identifies specific leak patterns (subagents, MCP servers, worker processes) with typical memory sizes for debugging.
  • Zero installation friction: bash functions, shell hooks, cargo-installable daemon with clear step-by-step docs.
Weaknesses
  • Addresses a tool-specific bug that Anthropic should fix upstream, not a general problem.
  • Limited audience: only relevant to active Claude Code users on two platforms.
Target Audience

Claude Code users on macOS and Linux experiencing memory leaks

Similar To

Process management tools like Supervisor, systemd user services

Similar Projects