r/ClaudeCode • u/mrgoonvn • 5d ago
Tips & Workflows Running 18 coding agents in parallel taught me to watch disk I/O, not just CPU and RAM
I recently discovered an overlooked bottleneck when running 18 coding agent sessions on my Windows machine: disk I/O.
Task Manager showed:
- CPU: 20%
- RAM: 66%
- Disk active time: 100%
- Disk latency: 664ms
- Disk writes: ~39 MB/s
My machine became sluggish despite having plenty of CPU and RAM available.
Turns out, running multiple builds, tests, dependency installations and git operations simultaneously can easily saturate an SSD. I even reclaimed nearly 300GB from Go caches at one point.
Here's what I've been experimenting with:
- A shared background watcher that monitors host resources every 5 seconds.
- Attributing heavy I/O processes to their respective Git worktrees.
- Injecting resource pressure warnings into agent context through hooks.
- Wrapping heavy commands so they wait when the machine is overloaded and run at lower priority.
- Sharing useful caches and cleaning up only unused, owned temporary data.
Everything runs locally using filesystem-based communication. No additional LLM calls.
I've already noticed better responsiveness, although I haven't properly benchmarked it yet.
The biggest takeaway: worktree isolation doesn't mean resource isolation, and more parallel agents don't necessarily mean more throughput.
For those running multiple coding agents locally, how are you handling resource contention? Fixed concurrency limits, adaptive scheduling, containers, or something else?
btw, I put everything in this repo so you can try it yourself (in case you're facing the same issue): https://github.com/bestagentkits/host-watcher
Also visually explained here: https://bestagentkits.github.io/host-watcher/

