Slow-computer audit when agents run
Many agents open and the Mac bogs down: a dry-run map of processes and startup items, cleaned only where you approve.
673 saves on X, as of Posted
Run a coding-agent performance audit on this computer. Detect macOS or Windows and record the hardware configuration first. Use only built-in, read-only tools. Do not spawn subagents or modify anything on the first pass.
1. Establish a baseline.
Take several samples, not one snapshot.
Check CPU, load average or processor queue, memory pressure or available / committed memory, swap / pagefile growth, disk I/O, free space, thermal throttling, sleep blockers, attached displays, and process / thread counts.
If a metric is unavailable, report it and continue. Do not install tools.
2. Build a process tree.
Aggregate the main process and helpers for each application family.
Focus on:
→ AI: Codex, Claude Code, MCP servers, code indexers, headless browsers
→ Development: Node / Bun / Python, Docker / WSL / VMs, dev servers, watchers, test processes, databases
→ Background: browser helpers, sync processes, updaters
Record the parent process, runtime, CPU, memory, disk and network activity, listening ports, project directory, and whether a terminal, editor, or active session is still using it.
3. Audit every startup source.
macOS:
→ Login Items and Allow in Background
→ LaunchAgents, LaunchDaemons, Homebrew services
→ system and network extensions
Windows:
→ Startup Apps, Services, Scheduled Tasks, Run keys
→ WSL and Docker Desktop
→ VPN, proxy, and network filters
On both platforms, inspect browsers, menu-bar or system-tray monitors, Adobe and Office helpers, cloud sync, and stale VPN, DNS, or proxy entries.
4. Inspect large disk consumers.
Include build outputs, node_modules, Docker data, DerivedData or simulators, Downloads, and duplicate project copies. Do not bulk-delete caches or personal files.
5. Label each item.
Use: active and needed / idle / orphaned / duplicate / unknown.
Prioritize items that meet all three conditions:
→ long-running
→ no longer needed
→ sustained CPU, memory, disk, or network use
6. Return a dry-run table.
For every item, include:
→ evidence
→ expected benefit and risk
→ whether a restart is required
→ recommended action: keep / quit normally / stop / disable at startup / uninstall / investigate
→ reversible commands and rollback steps
Without my item-by-item approval, do not kill processes, delete files, uninstall software, unload services, change startup items or network settings, or restart the computer. If sudo or Administrator access is required, explain the purpose and risk, then wait for approval.
Do not disable FileVault, BitLocker, firewalls, Defender, or other system security controls. Preserve the active agent sessions, terminals, editors, databases, sync jobs, VPNs, and security tools that I explicitly say are still in use.
After I approve the plan, handle one group at a time and remeasure after each. Once done, reboot, wait 5-10 minutes, and measure again. Use the computer normally for a day, then repeat the audit. Show the before / after results and flag any processes or services that returned.Next Send it to Codex on the computer you want to check, macOS or Windows.
I kept more sessions and subagents running at once. My Mac bogged down. It’s an M1 Max with 64GB of unified memory. Lower-memory machines will hit memory pressure and swap sooner under the same load.
I asked Sol to map the full process tree. It checked for stale dev services, duplicate MCP servers, headless browsers, login items, VPN and network extensions, browser helpers and updaters. I cleaned up the redundant items in batches, rebooted, used the Mac normally for a day, then checked again. The same multi-agent workload now rarely stutters, and I can keep more sessions open.
I turned the audit into a prompt for macOS and Windows. The first pass is dry-run only.
