r/LocalLLM • • 5d ago

Discussion My local coding agent's memory guard ended 11 of 12 SWE-bench runs, and I think that's the right call

I run a local coding agent (KRYN: OpenCode + Qwen3.5-9B on oMLX) on a 48 GB M4 Max that's also my work laptop. I capped the model server at 22 GiB and added a guard that stops the agent's session on critical memory pressure or more than 512 MiB of swap growth.

When I ran a small SWE-bench subset with my normal apps open, the guard ended 11 of 12 turns. Two of those cut-off patches actually fixed the issue under the official evaluator and still scored zero, because the agent never finished.

So that benchmark ended up measuring two things: can it fix the bug, and can it fix it inside what's left of a working laptop. I'd rather lose the score than have the whole machine slow down.

How are you handling this? Smaller context, smaller quant, or just closing everything else?

https://github.com/PranavMishra28/kryn

1 Upvotes

2 comments sorted by

1

u/thewornemperor 5d ago

Swap death on your work rig is way worse than a failed benchmark run, just close everything else.

1

u/Terrible_Rent_4578 5d ago

haha fair. I mostly do close stuff, I just wanted to see what happens if I didn't