| Some hints for people stuck like this: Consider using Aider. It's a great tool and cheaper to use than Code. Look at Aiders LLM leaderboard to figure out which LLMs to use. Use its architect mode (although you can get quite fast without it - I personally haven't needed it). Work incrementally. I use at least 3 branches. My main one, a dev one and a debug one. I develop on dev. When I encounter a bug I switch to debug. The reason is it can produce a lot of code to fix a bug. It will write some code to fix it. That won't work. It will try again and write even more code. Repeat until fixed. But in the end I only needed a small subset of the new code. So you then revert all the changes and have it fix it again telling it the correct fix. Don't debug on your dev branch. Aider's auto committing is scary but really handy. Limit your context to 25k. Only add files that you think are necessary. Combining the two: Don't have large files. Add a Readme.md file. It will then update the file as it makes code changes. This can give you a glimpse of what it's trying to do and if it writes something problematic you know it's not properly understanding your goal. Accept that it is not you and will write code differently from you. Think of it as a moderately experienced coder who is modifying the codebase. It's not going to follow all your conventions. https://aider.chat/ https://aider.chat/docs/leaderboards/ |
how big/complex does the codebase have to be for this to be for you to actually save time compared to just using a debugger and fixing it yourself directly? (I'm assuming here that bugs in smaller codebases are that much easier for a human to identify quickly)