Process guard: catch leaked processes
An agent once left 1,167 orphaned tail processes and about 6 GB of memory behind in one night. The process guard counts what every terminal started, tells you when a limit is crossed, and stops nothing by itself.
Checked 29 November 2026
How a terminal's processes are known
Each terminal's shell runs in a Windows job object, so its children stay members even after their parent exits, and the whole tree ends when the terminal or the app closes. Processes attached to the terminal's console are counted too, which catches programs that leave the job (a Microsoft Store PowerShell does).
Every 30 seconds, on a background thread, the guard counts per terminal: processes, orphans, CPU, memory, the most common program names and the hottest process.
Limits
| Warning | Limit |
|---|---|
| Processes in one terminal | more than 150 |
| Copies of one program | more than 40 |
| Orphans | more than 25 |
| Memory | more than 2 GB in total |
| One hot process | over 60% of a core for 10 minutes while the terminal printed nothing |
Crossing a limit puts a quiet mark on the workspace, a chip in its header such as 1167 tail.exe, 1167 orphaned, 5.8 GB with a Clean up button, and a row in the Crew view. A worker's coordinator gets one mail per episode. Nothing is stopped.
What Clean up does
Clean up takes a fresh count and stops, in that terminal only, every orphan and every copy of a program that is over its limit. It never stops the shell, the agent's own process or any of their ancestors, and it re-checks each process just before stopping it, so a reused process id is left alone.
Only a person can clean up. Stopping old orphans automatically is a setting that is off by default.
Try the preview
The preview is shared by email while the signed installer is prepared. Tell us how many agents you run and what you would want first.
- Windows 10 or 11, 64-bit
- Claude Code, signed in
- git
Windows 10 and 11 · Claude Code · early preview