How I managed multi-agent worktrees in a large Rust codebase

I run agents in parallel. Each one gets a git worktree of the same Rust workspace, so they can build a different feature without stepping on each other’s checkout. That part works.

Everything underneath it did not. On 2026-08-22 I went looking for why the machine felt slow and found ten worktrees of the same repo all building into one target/ directory. 974 GB of artifacts that nothing ever collected. Roughly 1.2 TB written to the NVMe in six hours. “Parallel” agents that were quietly taking turns behind a lock.

That was not one bug, it was six, stacked in a way where each one hid the next: