cd /news/ai-tools/why-parallel-coding-agents-can-make-… · home › topics › ai-tools › article
[ARTICLE · art-178248] src=flaviocopes.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Why parallel coding agents can make your Mac work harder

A Mac running several parallel coding agents can burn CPU and disk I/O on file churn rather than model responses, with macOS's fseventsd file-event system and Spotlight's mds and mdworker_shared indexers reacting to every write, according to a guide by Flavio. The guide recommends diagnosing the load first in Activity Monitor's CPU and Disk tabs, then running a short trace with `sudo fs_usage -w -f filesys -t 10 fseventsd mds mdworker_shared` to identify the responsible processes. It notes that disabling Spotlight on a volume only pauses search indexing, that file events still fire, and that `.gitignore` does not stop macOS indexers or dev-tool watchers from scanning a folder.

recommendation

When parallel coding agents spike CPU or disk I/O, trace fseventsd, mds and mdworker_shared with a short fs_usage run, then cut generated-file writes and redundant watchers before touching system settings.

more in playbook: Running AI in production
read6 min views7 publishedNov 29, 2026
Why parallel coding agents can make your Mac work harder
Image: Flaviocopes (auto-discovered)

By Flavio

Updated

Tagged: Mac

Diagnose file churn from parallel coding agents on a Mac, reduce unnecessary watchers, and decide when a separate APFS volume makes sense.

A coding agent can touch hundreds of files before you finish reading its last reply. Run a few agents at once, install dependencies across several folders, and leave a dev server running in each one, and your Mac ends up doing plenty of work beyond waiting on model responses.

Some of that load comes from the tools you started, and the rest comes from macOS reacting to every file they write.

Before you change any system settings or reorganize your disk, find out which process is burning CPU and disk I/O. A hot laptop could be Spotlight, a test runner, a compiler, or five dev servers watching the same generated folder.

Start with one repeatable task #

Open Activity Monitor, click the CPU tab, and sort by CPU usage. Watch what sits at the top while your agents are idle, then run one normal task and look again.

Check the Disk tab while you’re there. A dependency install can hammer the disk even while the model itself is waiting for a response.

Jot down the process names you see. A Node process might be your dev server, an agent, or a build tool, so check what’s running behind that name before blaming macOS.

Next, run the same kind of task with the number of agents you normally use, on the same project and with similar commands. If you compare a quiet code edit against four dependency installs running in parallel, you’re measuring two completely different workloads.

Aim for a concrete cause you can test: every time this build recreates its output directory, the dev server restarts and indexing spikes. From there, you have one specific thing to change and retest.

File events and search indexing do different jobs #

The macOS file event system (fseventsd) notifies apps whenever a directory changes. Backup tools rely on it, and so do editors and build tools that need to know which folders to re-read (see Apple’s File System Events guide).

Spotlight does a different job. It builds a searchable index, and when it’s busy you’ll see mds and mdworker_shared show up near the top of Activity Monitor.

Because those two systems are separate, turning off Spotlight for a volume only s search indexing. File events still fire, and your editor, language server, test runner, and dev server keep watching files as usual.

Several listeners can wake up from the same disk write. Turning one off might lower CPU usage, though the writes themselves are still happening.

Don’t expect .gitignore to hide a folder from macOS or your dev tools either. It tells Git what to leave untracked, while search indexers and file watchers often keep scanning that directory anyway.

Take a short trace when you need one #

If Activity Monitor doesn’t narrow things down, macOS ships with fs_usage. You can filter it to filesystem calls, pick specific process names, and cap how long it runs.

Run this command to watch filesystem activity from those processes for ten seconds:

sudo fs_usage -w -f filesys -t 10 fseventsd mds mdworker_shared

You’ll need administrator access to run it. Since the output prints real paths from your disk, keep it local and don’t paste a raw trace into a public issue or an agent prompt.

Swap the process names to match whatever you saw in Activity Monitor. If ten seconds come back mostly quiet, run it again right when an agent hits the busy part of its task.

Check man fs_usage on your Mac if you want to adjust the flags, and keep your traces short so the profiler itself doesn’t pile extra load onto the machine.

Reduce the writes and watchers first #

Start by hunting down generated files that one tool writes while another tool treats them as source files.

That’s how you end up with a dev server watching its own build output and rebuilding in a loop, or a test runner scanning a folder of temporary reports. Another common trap is letting multiple agents spin up their own dev servers and leave them running long after their task finishes.

Open the watcher settings in those tools and exclude build directories and caches wherever you can. Stop any dev servers you’re done with, and leave your real source files watched instead of hiding them just to make a CPU graph look cleaner.

When it fits the task, tell your agents to reuse a dev server that’s already running. Skip reinstalling dependencies unless they’ve changed, and give parallel tasks clear ownership over different folders or files so they aren’t constantly regenerating the same output.

Exclude a specific folder from Spotlight #

If Spotlight is the culprit in Activity Monitor, exclude the smallest folder that solves the problem.

Open System Settings, go to Spotlight, open Search Privacy, and add the folder you want to skip. The exact menu names shift a bit depending on your macOS version; the Spotlight Search Privacy guide covers the current steps.

Anything inside that folder drops out of Spotlight search results until you remove it from the list.

Start with a disposable build or dependency folder instead of your whole home directory, and check whether you rely on Finder search for those files before hiding them.

One quirk to keep in mind: excluding a Time Machine backup disk still leaves the indexing Time Machine needs running.

When a dedicated APFS volume helps #

If you want a clean boundary for throwaway agent work, you can put it on its own APFS volume. That lets you change Spotlight settings for that volume without touching your regular documents.

Moving projects onto a separate volume comes with some housekeeping. Existing absolute paths can break, and you may have to update paths in your editor, backup app, sync tools, and agent configs. Double-check what’s backed up before keeping anything important there.

APFS volumes in the same container share the same storage pool and sit on the same physical SSD, so a separate volume gives you a clean settings boundary rather than faster hardware. If you want to look into space sharing, quotas, and reserve sizes, check Apple’s APFS volume guide.

If you already have a dedicated volume mounted at /Volumes/AgentWork, inspect it before changing anything:

diskutil info /Volumes/AgentWork
mdutil -s /Volumes/AgentWork

Make sure the path points to the volume you expect, and note its current indexing status so you know what to restore later.

Next, update indexing for that volume with mdutil:

sudo mdutil -i off /Volumes/AgentWork

If indexing was on before and you want to bring it back, run:

sudo mdutil -i on /Volumes/AgentWork
mdutil -s /Volumes/AgentWork

Turning indexing back on triggers a catch-up pass while Spotlight scans the volume again. Wait for that to settle, then re-run your original test task to see if the change helped.

Leave file event services alone. File watchers and backup tools depend on change notifications across the whole system, so tampering with that layer breaks things well outside the directory you wanted to quiet down. When you need to cut down the noise, narrow your tool watchers or exclude a specific folder in Spotlight, and run fewer builds at the same time if your CPU is still pegged.

Want me to talk about your product? You can sponsor this site.

── more in #ai-tools 4 stories · sorted by recency
── more on @apple 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/why-parallel-coding-…] indexed:0 read:6min 2026-11-29 · —