4 ms·
My suggestion would be just to try it. Get an openrouter account, add 50$ to it and setup pi agent to use it with a cheap and fast model; I personally use 5.6-L
by ghthor 21d ago
My suggestion would be just to try it. Get an openrouter account, add 50$ to it and setup pi agent to use it with a cheap and fast model; I personally use 5.6-Luna.
Run it on a throwaway system, pick a codebase you’ve always wanted to fix something about but didn’t have the time. Like you wanted to do a major refactoring or do a library migration to a better maintained library. Or you want to rewrite part of a program in rust for performance/security improvements.
The hardest part for me is sometimes it is hard to write what I want in a prompt; but you don’t have to put everything into the prompt, you can make a code edit as an example and then say; look at this diff, it is doing X; look for and apply this some transformation across codebase Y
If you have a good codebase, AI will have good patterns to follow and will produce pretty good code; and you can quickly iterate on the results (maybe over new context windows) and get high quality code that looks very close, if not indistinguishable from the pre-existing code.
- heaney-555 21d ago>use it with a cheap and fast model Also try it with a frontier model though. With $20 for a one-month sub you can get a decent amount of GPT-6 Astra usage.
- hermitcrab 21d ago>Run it on a throwaway system, pick a codebase you’ve always wanted to fix something about but didn’t have the time. Thanks for the suggestion. But I don't have a throwaway system. All 3 of my codebases are commercial software that I charge money for. Also, I don't trust an AI not to serve substantial parts of my codebase to a competitor. Maybe I will try it if I start a new project. I fancy a go doing some Webassembly graphics at some point. >Or you want to rewrite part of a program in rust for performance/security improvements. My code is battle tested and robust through years of use. I don't rewrite stuff unless there is a real need.