My AI agent said it was done. My Mac's fans disagreed.
Claude Code had finished. The terminal was quiet, the diff looked fine, and my MacBook was hot enough that I moved it off my lap. The fans were going like it was rendering video, and CPU and memory were still pinned. Activity Monitor didn't help much. It showed a wall of node , docker and helper processes, none of them obviously mine, none of them saying where they came from. So I did what I'd do…
Claude Code, an AI agent, had finished its task. A MacBook's fan noise revealed the machine was running hot due to unseen processes consuming CPU and memory. Activity Monitor provided little insight, showing a wall of node, docker and helper processes without clear ownership. To investigate, the author turned to Claude for assistance.
They traced the process tree together, discovering that an earlier, closed agent session had started Docker containers and microservices during the testing process. When that session ended, no one cleaned up the orphaned processes, which had been running all afternoon. Killing these processes resolved the issue, but it wasn't a one-off occurrence.
Any agent capable of running shell commands could potentially lead to similar issues. This post explains why these "servers" outlive the agent, how to find the leftovers yourself, and shares a tool built to automate the cleanup process.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to