Zclean — Development skill for Claude Code
19+ Kills orphaned processes left behind by Claude Code and Codex.
How to install Zclean
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open TheStack-ai/zclean and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Zclean does
███████ ██████ ██ ███████ █████ ███ ██ ╚══███ ██ ██ ██ ██ ██ ████ ██ ███ ██ ██ █████ ███████ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ██████ ███████ ███████ ██ ██ ██ ████
Alternatives in Development
- 03 Build Config — Prompt 03: Create esbuild-Based Build System 2.3k ★
- Hive — Browser-native hive-mind for CLI coding agents — Claude Code, Codex, Gemini, and OpenCode collaborate as real 473 ★
- Process — Consult Protheus ERP business processes, module workflows, routines and integrations 136 ★
README
zclean — Zombie Process Cleaner for AI Coding Tools
███████ ██████ ██ ███████ █████ ███ ██ ╚══███ ██ ██ ██ ██ ██ ████ ██ ███ ██ ██ █████ ███████ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ██████ ███████ ███████ ██ ██ ██ ████
**Stop AI coding tools from eating your RAM.**
[](https://www.npmjs.com/package/@thestackai/zclean) [](https://www.npmjs.com/package/@thestackai/zclean) [](https://opensource.org/licenses/MIT) [](#) [](#) [](#) [](#) [](https://github.com/TheStack-ai/zclean) [](https://github.com/rohitg00/awesome-claude-code-toolkit)
Quick Demo
AI coding tools spawn child processes — MCP servers, sub-agents, headless browsers, build watchers. When the session ends or crashes, those children don't always exit. They pile up silently, draining RAM until your machine grinds to a halt.
**Before**
$ zclean
zclean — scanning for zombie processes...
Found 12 zombie processes:
PID 26413 node 367 MB (orphan, 18h) was: claude mcp-server
PID 62830 chrome 200 MB (orphan, 3h) was: agent-browser
PID 26221 npm 142 MB (orphan, 2d) was: npm exec task-master-ai
PID 23096 node 355 MB (orphan, 6h) was: claude sub-agent
... 8 more
Total: 12 zombies, ~2.4 GB reclaimable
Run `zclean --yes` to clean.
**After**
$ zclean --yes
zclean — scanning for zombie processes...
Cleaned 12 zombie processes. Reclaimed ~2.4 GB.
zclean status:
Protection: active
SessionEnd hook: registered
Hourly scheduler: running
Why zclean?
Claude Code, Codex, and other AI coding tools spawn dozens of child processes per session: MCP servers, sub-agents, headless Chromium instances, esbuild watchers, and more. When the parent session exits — especially on crash or force-quit — these children become orphans.
...
Related Skills
Claude Gc
Automatic cleanup for orphaned Claude Code processes that silently eat your RAM
Claude Acc
Menu bar control room for a Mac that runs Claude Code agents all day: rotates Claude subscriptions, keeps agen
Cli2skill
🔧 Turn any CLI or MCP server into an Agent Skill — zero process overhead, 98% fewer tokens. Kill MCP zombie p
Claude Desktop Watchdog
Claude Desktop on Windows will not reopen after an update and you reboot. A dead instance is holding the singl
Herdr Autopark
herdr plugin that parks idle coding agents to free their RAM. See where you left off and resume in one tap.
Orq Batch Closed
Closes the orchestration batch: checks nothing is left alive, cleans up what was merged, audits, closes the pr
Related Agents
Machinist
Watches and frees the Mac's physical resources (RAM, CPU, heat) — hunts abandoned processes, compressed memory
Orquestrador
Watches the machine's resources (RAM, CPU, disk, processes, ports). Invoke before starting a heavy build/dev s
Half Fix
Review angle "half-fix & consistency" of the user's §6 adversarial-review gate — hunts the sins tests cannot s