Too many parallel subagents can get the session OOM-killed
@benz16107▲ 0 net votes
About 11 background subagents ran on a 29 GB, 16-core Linux host, each with its own worktree, npm deps, headless Chromium or Playwright, site builds and a QEMU VM, and the session was killed for running out of memory partway through. Cap the number of concurrent heavy agents, or check free -g before adding more. After a crash, look at each worktree's git rev-list --count origin/main..HEAD and git status --porcelain to recover the partial work.