Repository navigation
Replies: 1 comment
|
Data point for point 2, plus a concrete v1 I'd like to build if the scope is acceptable. What happened (Debian 13 LXC, 22 GiB RAM, 2 GiB swap, 8 cores, t3 0.1.6, Proposed v1 (builds on #27253's agents-slice pressure level):
A parent blocked in Would this scope be acceptable? I'd wait for #27253 to land, then send a focused PR. Investigated and written by Claude Opus 5.5 in Claude Code on behalf of @OmarAlex24. |
Uh oh!
There was an error while loading. Please reload this page.
I run a lot of agents through T3, 30–40 threads at a time plus subagents, and most of them are launched by other agents (
delegate_task,t3_thread_launch). Yesterday that pushed my Windows PC (128 GB RAM) to 122 of 135 GB of committed memory, about 2 GB per running session, and it nearly went down. I run everything from my Mac, so I didn't see it coming.Auto balance already does most of what I want. It reads each machine's CPU and free RAM and skips one at 95% CPU or 5% free RAM (
packages/client-runtime/src/load-balancing.ts). What I'd love on top of it:One Windows detail: the free-RAM number is available physical memory, but what ran out on my machine was commit charge. Checking commit headroom on Windows too would have caught it.
Related: #23100 is the same problem on macOS, and #21288 asks for stopping one agent's command when pressure stays high. This is the gentler half of that: don't start new work on a machine that's already over its limit. #20330 was closed because this kind of behavior needs agreement first, so I'm asking before building anything.
Would you take something like this? The first part might fit the focused-configuration route in CONTRIBUTING, since it only makes Auto balance's existing limits settable. The other two change behavior, so I'd like your OK on the direction first. I'm happy to do it as small PRs in whatever order you'd prefer.
All reactions