我构建了一个僵尸进程杀手,因为 Claude Code 占用了我 14GB 的内存
📄 中文摘要
在使用 AI 编程工具的过程中,出现了一个看似内存泄漏的问题,导致我的 MacBook 运行缓慢,14GB 的内存被未启动的进程占用。问题的根源在于许多孤立的 MCP 服务器、无头 Chrome 实例和 AI 编程会话遗留下的子代理。为了解决这个问题,我开发了 zclean 工具,能够自动检测并安全地终止这些孤立进程。zclean 可以与会话生命周期挂钩,并按计划运行,只需一次 npx zclean init 即可完成设置。
📄 English Summary
I Built a Zombie Process Killer Because Claude Code Ate 14GB of My RAM
A phantom memory leak was discovered while using AI coding tools, resulting in a sluggish MacBook with 14GB of RAM consumed by processes that were never initiated. The issue stemmed from numerous orphaned MCP servers, headless Chrome instances, and sub-agents left behind from AI coding sessions. To address this, zclean was developed to automatically detect and safely terminate these orphaned processes. zclean integrates with the session lifecycle and operates on a schedule, requiring just one npx zclean init command to set up.
Powered by Cloudflare Workers + Payload CMS + Claude 3.5
数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等