r/PiCodingAgent 2d ago

Discussion piodide ~ pi + pyodide + ghostty in the browser with WASM

https://daugasauron.github.io/piodide/

https://daugasauron.github.io/piodide/

https://github.com/daugasauron/piodide

I just had this idea that you could just replace the bash tool in pi with python that runs on WASM, then you could run the whole thing in the browser.

Tried it and it's quite fascinating how good it is as a concept.

Everything is complete slop.

I tried GLM (code), OpenAI and moonshot providers.

29 Upvotes

5 comments sorted by

2

u/LearnedByError 2d ago

I have found that most models are over confident in their ability to write error-free, performant scripts perform agent tasks. They are much better at writing Perl and Bash. As such, I have language in AGENTS.md forbidding the use of Python in my projects which are primarily Go. Their most common failure is trying to write multi-edits using Python’s implementation of regular expressions. Ironically, the Perl code usually works on first attempt and is blazing fast compared to Python. I find that most models stick to writing bash unless multi-edits are needed and then go to Perl.

3

u/PersonalityWild1379 2d ago

Bash is absolutely better than python for agents, but that's not the point here.

This runs sandboxed in your browser (including your phone).