r/ClaudeCode • u/PreferenceBudget3127 • 2h ago
Tips & Workflows My Claude Code agents shut down my Mac
The first time, I thought my Mac had died.
I started building my app in March. I think it was April when I had six Claude Code sessions running at once. Each one took a task from my backlog and worked on it. The sessions wrote the code for the iPhone and Android app. They did not coordinate with each other, and nobody told them how to share one computer. They booted phone simulators and the Android emulator, left them running and booted new ones. They saved test files everywhere. My Mac has 16 GB of memory, and they ate all of it. Then the computer switched itself off. I was honestly scared.
Later, temporary test files filled the disk three times. Each time, every session stopped. Once the files took 49 GB.
If you plan to run several agents on one computer, here is what I wish I had known at the start.
The rules came one by one. The ones I use now are:
- a session takes a lock before it boots a simulator or the emulator;
- only one simulator runs at a time, never two;
- heavy builds wait in a queue;
- every session closes what it started and deletes its temporary files.
My Mac stopped switching off, and my heart finally calmed down.
Then I had a different problem: too many chats to watch. Now one session is the coordinator. Think of it as my deputy. The other sessions talk to it, and I talk only to it. Usually that is the coordinator and three or four sessions. There is one device under a lock. The coordinator decides who gets it, and the queue follows task priority, not who asked first. The coordinator can keep work going through the night, and in the morning I read one report. That alone made development faster.
One thing did not change. Nothing goes into a release without me. I check the result myself before it ships.
Some things still go wrong. Sometimes a session writes down a decision I never made. My "not yet" once became "never". Yesterday one session checked all of those notes.
If you're curious what came out of all this, the app is called ClariMeal:
Has something like this happened to you when you ran several agents at once? What did you change after it?