duckie needed permalinks, permalinks are weird because there’s no database. Basically I needed to encode the prompt and response and dump them into the permalink url using some sort of compression/encoding so it wasn’t obvious what the prompt and response were. And hopefully to make the URL a bit shorter.
I knew how to go about this, but I didn’t want to do it myself. So I tied vscode to lmstudio using the continue.dev plugin, made a branch, and turned on agent mode so it could just make changes to my files. Then I simply explained what I wanted in a little chat window.
I wrote no code. It wrote this whole commit: https://github.com/cadeon/duckiesays/commit/7f293e58306e500ccfa23918fed55d8af9f90cf5
(and here’s why the parameter is called ‘guru-meditation’ https://en.wikipedia.org/wiki/Guru_Meditation)
This truly was permalinks from sentences. Both literally in the technical solution, and how the technical solution was performed. I used prose to get node.js and html code.
Anyhow, was it fast, easy, and clean sailing? No. It required a ton of processing power from my machine and things got very slow as the context got used up. But it wrote what I wanted, and it wrote documentation, and it wrote tests. It didn’t put the source files exactly where I would have, but then again I probably would have been wrong. And I wouldn’t have written tests or documentation at all.
The computer wrote the code itself and the code works.
I did manage to get a fun screenshot - but it replaced the file with a correct one after this…
