I found a coding agent running entirely in the browser with a 2B model 🤯

Wait 5 sec.

Found this really cool project today: Pi running entirely in the browser using WebGPU by Victor. The interesting part is that there's no cloud model involved. It uses MiniCPM5-2B + Transformers.js + WebGPU + 4-bit ONNX weights to run the coding agent locally. I wanted to see if a 2B model could actually handle an agentic coding task, so I gave it a small repo with a deliberately broken function and asked it to: inspect the project trace the bug across files identify the root cause fix the code add a regression test verify the result summarize what it changed And it actually found the bug, changed the right line, and added a relevant test. One limitation I ran into was that this demo doesn’t include Node.js or npm, so it couldn’t run the JavaScript test suite. The fix was checked by inspection only. Still pretty wild to see a 2B model acting as a coding agent entirely locally in a browser. This makes me wonder how far you could push this with a better WebGPU setup + longer context + more complex repos. Project: https://huggingface.co/spaces/victor/MiniCPM5-2B-WebGPU-Pi MiniCPM5-2B: https://huggingface.co/openbmb/MiniCPM5-2B   submitted by   /u/Equivalent-Grass-527 [link]   [comments]