Original Reddit post

I was skeptical of using an agent to port an entire project, but I had free premium tokens so I thought I’d do an experiment. The initial prompt wasn’t anything to special. Something to the effect of “port the entire codebase to typescript and ensure all tests are ported and pass”. A number of hours and sessions later (they max out at an hour), I had a mostly functional library with some bugs—some minor, and some not so much. Another session later, I had a library that was fully functional. It even found an O(n²) by me just saying “saving metadata to an ogg file takes a very long time, unacceptably long.” I then had another couple sessions add in additional tests to cross-reference the file content from the ported code, and the original code to ensure accuracy. All tests pass, and the library in some cases is faster than a WASM port of native code… mainly because data doesn’t have to cross the JavaScript / WASM memory boundary. Cost to port: 30 premium tokens. submitted by /u/DanTheMan827

Originally posted by u/DanTheMan827 on r/ArtificialInteligence