Fix · Claude Code on macOS
Claude Code processes still running after you close it
Your session is over, but your Mac is still slow. Here is how to find what Claude Code left running, and end it safely.
Updated 26 November 2026
Why it happens
A Claude Code session starts other programs while it works: MCP servers, dev servers, test runners, headless browsers. They run as children of the session. Two things leave them behind:
- A session you forgot. Every open terminal tab with Claude Code keeps its MCP servers running. On 26 November, the Mac Blame is built on had five sessions open, the oldest for three days, and each had started its own copy of
chrome-devtools-mcp. - A session that ended badly. Close the terminal while a session is working and its children can outlive it. Several Claude Code issues report exactly this on macOS.
Over 14 days of 5-second samples on a 16 GB Mac, programs started by sessions (http.server, postgres, a headless Chrome started by an MCP server) outlived their sessions by 4 to 11 days. Two idle claude --resume sessions held 55–59% CPU for 2 and 4 days.
Find them
List Claude Code and MCP processes, with how long each has run and its memory in KB:
ps -axo pid,ppid,etime,rss,command | grep -Ei '[c]laude|[m]cp'
etime is the age (02-18:26:58 is 2 days, 18 hours). ppid is the parent. A parent of 1 means the program that started it is gone, but careful: apps and services macOS starts itself also have a parent of 1, so treat it as a clue, not proof.
For node, Python and other developer processes left running from any tool, this read-only command lists only your own leftovers, with their memory. It changes nothing.
End them safely
- Read the command column first. A
postgresor another database may be one you need. - Ask it to quit:
kill 12345(the PID from the list). - Check after a few seconds:
ps -p 12345. Only if it is still there, force it:kill -9 12345.
For a session you are done with, type /exit before closing its tab, so it can shut down what it started. Then run the list again to check.
More fixes
- Code Helper (Plugin) using too much memoryFind the extension, and restart it without closing windows.
- Chrome Helper (Renderer) high memoryFind the heavy tab, and the Chrome you never opened.
- Mac running hot: which appFind the app behind the heat.
- Everything Blame doesEvery feature, with its real screen.