r/codereview • • Sep 19 '26

Bug fixing your codebase

Thought of the night:
Since an LLM will always find a bug in the code even in the code they just wrote with a perfect plan behind, is it really really that helpful to have this gargantuan model looking at your code?
I’m finding deepseek v4.1 like more clever than astra.
I explain the problem-he finds it-he fix it.
Astra on the other hand is like
I explain the problem-checks every crevices and finds numerous things to fix-fixes them-then something else gets lost and has to fix also that…
It sure is my skill issue but idk, that’s my thought.
What do you think??

0 Upvotes

5 comments sorted by

View all comments

1

u/TeqPumpkin999 Sep 20 '26

I don’t think this is just skill issue.

“Find bugs in this codebase” is almost the worst possible prompt for a big model. The stronger models tend to go looking for every possible smell, then they start refactoring around the actual bug. That’s how you end up with 6 new changes and 2 new problems.

Treat the model like a narrow debugger:

- here is the bug

- here is the expected behavior

- here is the failing log/test

- do not refactor unrelated code

- explain the smallest change first

- then patch only that

For broad review, ask it for hypotheses or risky areas.

Do not let it directly fix everything it sees.

Smaller/“less ambitious” models sometimes feel better because they stay closer to the problem.

The big ones are useful, but they need tighter boundaries or they start being too helpful in the annoying way.