Goddess Commits / blog

Killing the rogue process that ate my macOS dev environment

4 min readTechmacosdebuggingbackground processesicloudlive coding

TL;DR

  • iCloud Desktop sync moved my project files to the cloud and froze the terminal.
  • A background process named bird consumed all CPU cycles until a force quit broke the deadlock.
  • I paused live streaming and shifted to offline development while traveling.

My development environment froze on a Tuesday night. The desktop vanished and the terminal stopped responding. I traced the outage to an iCloud synchronization loop eating my CPU, killed the rogue process, and paused live streaming until I could work offline.

Why did my desktop files disappear?

macOS iCloud Desktop sync moved my local project folders into the cloud without prompting. I opened the project and noticed my local directories were empty. The terminal hung on basic commands. I tried navigating the privacy settings to grant full disk access to the terminal client.

The option was missing from the menu. I clicked through the expected locations and waited for the system prompt.

I could not force the application to request permissions through the GUI. I duplicated the repository to establish an isolated workspace for debugging before touching any system settings. The isolated copy ran without error, which confirmed that the corruption lived entirely in my environment rather than the codebase itself.

The real problem started when the sync daemon kicked in silently. It pulled every configuration file into the remote cache and froze the file watcher. I did not want this to be on my iCloud. The sync loop treated my development folder like a consumer directory and refused to hand back control.

How do I find what is eating my CPU?

i tracked the resource drain to a background process named bird that triggered an infinite sync loop. I opened the activity monitor while the machine throttled. I paused the live session to ask an AI assistant what caused the initial failure before making any permanent changes. The local model returned a pointer toward background synchronization tasks that had lost their exit condition.

"What is the problem here, Claude?"

I watched the thermal readings climb as both the sync daemon and the inference server competed for power limits. The process consumed nearly all available cores. The stream overlay lagged because the encoding thread could not get cycle time.

"it is delayed. I'm not going to lie."

I tried standard termination commands, but the frozen shell would not accept input. I switched to the macOS force quit shortcut to manually terminate the frozen applications. The shortcut finally broke the deadlock.

"force quit on the Mac. I Google this way"

The process returned briefly after the force quit. It looked like a sync daemon that had lost its exit condition. Killing it again through the system monitor brought the CPU usage back to baseline. I checked the system logs after the kill and confirmed that the sync daemon had finally released its hold on the drive. The terminal unfroze immediately after the background load dropped.

Why did my local model make things worse?

The local inference server and the streaming encoder fought for thermal headroom while iCloud sync ran in the middle. I had paired with the agent on stream to debug the initial state of the repository. The agent spawned server processes that stayed alive after the session closed. This left the MacBook hot while I tried to finish a task.

A recent post on dev.to covers this exact behavior. The author notes how "Claude Code finished, but the MacBook stayed hot. The cause: servers an earlier agent session started and never stopped." I saw the same pattern here. Keeping three resource heavy services running simultaneously was not a sustainable workflow for live debugging.

When do you decide to stop streaming?

i recognized that fatigue was causing configuration errors, so I halted the broadcast and shifted to offline work. I tried to configure Twitch API credentials to fix the pipeline, but exhaustion made the steps feel impossible.

"I'm too tired to do this."

I looked at the clock and recognized that pushing through would only compound the resource exhaustion on my machine. I paused the live session and packed the hardware away. I will travel next week, so I decided to complete development work offline instead of fighting macOS networking quirks over a weak connection.

"I think that I will just not"

The stream went dark for the evening. The rogue process stayed dead after the shutdown. I restarted on Thursday with iCloud Desktop sync turned off, a fresh local environment, and a hard cutoff time for late night debugging sessions.

Written from a live stream transcript with AI help, reviewed by the author.