Short answer: when a PC freezes while several AI agents work, look at memory and disk before the processor. Windows can only promise as much memory as your RAM plus the page file (the commit limit). When it gets close, programs stall, and if the disk is too full for the page file to grow, the whole PC can lock up. That's what most likely froze mine, twice in two days. Watch Committed on Task Manager's Performance tab and the free space on C:, run one heavy job at a time, and keep at least 10 GB free.
I build Morphy, the app my agents run in; it comes up near the end. The rest applies to any setup on Windows: Claude Code in terminals, Codex, or anything else that starts programs for you.
What happened
Night of November 24: out of disk and memory. Four AI agents were editing video ads for me, side by side. Between 01:38 and 01:53, they had 7 video encodes (ffmpeg) running at once, next to a game I had open. My agent's check showed:
- Memory: 37.5 of 43 GB committed, and 1 GB of RAM free.
- Disk: C: at 0 MB free, because Windows had grown the page file to 27 GB.
My agent cleared caches and temp files, emptied the Recycle Bin after I said yes, and told every editor to run one heavy job at a time. C: went from 0.3 GB to 15.7 GB free. It still filled up twice more that evening, with six editors and other chats running.
Afternoon of November 27: the first freeze. Around 16:05 everything froze, Task Manager included, and I had to restart. Running at the same time on 16 GB of RAM: several chats, a test copy of my app with many agent terminals open, video renders and a website build. Windows logged no crash and no memory event. Task Manager had shown my app using over half the memory, because it lists the programs all those agents started under the app.
A read-only check afterwards found two things:
- The disk was nearly full. Even at rest, 21.3 of 26.3 GB was committed. The page file could only grow into the 11 GB left on C:, which was 97.6% full. With no room to grow, a memory spike becomes a lock-up. That's the most likely cause; there was no log to prove it.
- A mistake of my own. One agent had the folder that holds all my projects as its working folder. So my app tried to copy about 1.5 GB of it for Undo, timed out, and tried again an hour later (how that copy works, and its limit now).
Afternoon of November 28: the second freeze. This time only two light chats were running. The PC got so slow that I restarted it from the Start menu, and that restart was the only thing Windows logged. My agent couldn't be sure of the cause; its best guess was memory again. It added a logger that writes down memory every 10 seconds, so next time we'll know.
Why a PC freezes: the commit limit
Two numbers matter, and Microsoft explains both:
- The commit limit is "the sum of physical memory and all page files combined". It's the most memory Windows can promise to programs.
- The commit charge is what it has already promised. "If the system commit charge reaches the system commit limit, the system and processes might not get committed memory. This condition can cause freezing, crashing, and other malfunctions."
The page file is how Windows raises the limit. When the charge reaches 90% of the limit, a system-managed page file grows, up to three times your RAM (or 4 GB) and at most an eighth of the drive. Microsoft adds: "This assumes that enough free disk space is available to accommodate the growth." So a full disk takes away the one thing that would have saved you.

AI agents push the charge up. On my PC, each working Claude Code chat held about half a gigabyte (0.46 to 0.54 GB measured), so six came to 2.9 GB. What tips it is what they start: a test copy of an app, a build, a render or a full test run, 0.3 to 2 GB each. A dev server an agent forgot to stop held 1.1 GB. A month earlier, two test runs an agent never stopped held about 24 GB each.
How to see it coming on Windows
| Watch | Where | When I stop starting new work |
|---|---|---|
| Commit charge and limit | Task Manager, Performance, Memory: the Committed line | Less than 3 GB left under the limit |
| Free RAM | The same page | Less than 1.5 GB free |
| Free disk on C: | Get-PSDrive C in PowerShell: the Free (GB) column | Less than 10 GB free |
Agents can read the same numbers in PowerShell:
Get-CimInstance Win32_OperatingSystem | Select-Object FreePhysicalMemory, FreeVirtualMemory, TotalVirtualMemorySize
All three are in kilobytes. TotalVirtualMemorySize is your RAM plus the page file (the limit), and FreeVirtualMemory is how much of it is still unused. When that gets small, you're close to the limit.
The rules that fixed it
My agent and I set these that week. Each is there because something went wrong without it.
- One heavy job at a time. Renders, builds and full test runs take turns through one shared lock. Four editors running 7 encodes at once is how November 24 started.
- A memory check before anything heavy. A small script reads the numbers above and answers OK or WAIT. It says OK only if, after the job, at least 1.5 GB of RAM is free and the commit charge stays 3 GB under its limit. On WAIT, the agent does light work and asks again in 5 minutes. My first version asked for 4 GB and 5 GB to spare. With my own apps open it kept saying WAIT, so I loosened it twice that day.
- Wait inside the turn. One agent got a WAIT, ended its turn, and nothing woke it up again. Now every agent's instructions say: on WAIT, stay in the turn and check again.

- A disk floor. No render starts with less than 10 GB free on C:. Agents delete their own leftovers after every video, send frames straight into the encoder instead of saving each as an image, and check free space before writing anything over 500 MB.
- Staggered starts. After the first freeze, the work came back in waves: a few light jobs first, the renders later, one at a time. Now my agent also waits a minute between starting one chat and the next, so they don't all load at once.
- Low priority. Heavy jobs run at low priority, so the mouse and my own apps stay smooth. In Command Prompt,
start /low <program>does that. - Stop what you start. Test runs get a time limit, and an agent stops its own dev servers when it's done.
- Narrow working folders. Each agent gets its own project's folder, never the parent of all of them.
- Clean up worktrees. Agents working in parallel each get a git worktree, and they pile up. Removing 36 that were already merged took C: from 9.2 GB to 22.7 GB free.
There hasn't been a memory freeze since November 28. The disk is still what I watch most: after the next big batch of renders on November 30, C: was down to 9.9 GB free again.
A different crash came on December 3: every app on my screen went down at once, and Windows logged that its shell and the part that draws the screen had restarted. Memory was fine that time. The likely cause, though not proven: several agents had each started a browser in the background to take screenshots, all at the same time, on a graphics card with 4 GB. Those browsers now take turns through the same lock as the renders.
In Morphy
Morphy is my app, so take this part with that in mind. Since version 0.2.2 it has a Performance page in Settings that does much of the above for you:
- Right now and Left running: what Morphy and each awake chat use, your free memory, and the programs agents left running (a dev server), with Stop.
- Disk: free space, what Morphy keeps, and Clean up…. Below about 5 GB free, a line at the top says so, because "a full disk can freeze your computer".
- Memory guard (off until you pick a line of 1, 1.5, 2 or 3 GB): while free memory is under it, a chat's new message waits ("Waiting for memory…") and goes by itself when there's room. A chat that's already working is never stopped.
- Chats sleep when idle: a chat's AI closes after 10 minutes without use (you can change it) and wakes with your next message.
- Keep processor cores free (Windows): agents always run at lower priority; with this on, they also stay off a third of your cores while they build or render.
Questions
Why does my PC freeze when I run several AI agents? In my case, most likely because the commit charge got close to the commit limit: the agents and the programs they started had used up RAM plus the page file. A nearly full disk makes it worse, because the page file can't grow.
Should I turn off or shrink the page file? I didn't, and I wouldn't. Microsoft's page explains that a system-managed page file grows when the commit charge gets close to the limit, if there's disk space for it. Free disk space did more for me than any page file setting.
How many AI agents can I run at once on 16 GB? It depends less on the agents than on what they run. On my PC a working Claude Code chat held about 0.5 GB, so six took about 3 GB; the freezes came when several started builds and renders at the same time.
Related guides
- How to run multiple Claude Code agents at once
- Claude Code not working? Fix freezes, login loops and errors
- Claude Code worktrees
- Settings → Performance in Morphy




