r/ClaudeCode • • 1h ago

Meta Claude create->review->fix->repeat not converging, more and more bugs found each cycle

Claude has been great but one issue bites me often. Claude always seems to try to solve an issue by making something super complex, then doing multiple threads of reviews, finding more issues, fixing, then reviewing cycle again, and it finds more issues than before, and it never converges, with this process repeating. Then, a simple solution from start would have worked, and I the user would have to suggest that simple solution. Then Claude says "you're right i should have done that"

3 Upvotes

7 comments sorted by

•

u/AutoModerator 1h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

5

u/Neat-Medicine-1140 40m ago

this is the part about AI where you get better results if you know what you are doing. People keep sleeping on the fact that AI is a force multiplier. If you know nothing, even 10,000x 0 is 0.

1

u/Living_Cell7304 59m ago

If you have enough ram to run local models, they typically can spend way more time thinking. They’re slow as hell but you can run it overnight for like less than $1 in electricity. Only needs CPU.

1

u/finallyclearsky 51m ago edited 47m ago

I have something I like to call a rakes.md

This is a file that sets the bar for what is reported. Models don't really have a good understanding of what a real product issue is, and will fall back to nitpicking and almost making stuff up if nothing serious is evident. This file serves as a compass to prevent them from doing that. As a result, the loop you describe does stop at some point:

# Rakes

Read this before any review pass. A finding counts only when it clears every line of the bar.

## Bar

  • A user reaches it through normal use or a normal device state. Crafted or improbable states, simulator artifacts and Debug-only code do not count.
  • It is likely, and it costs the user something real: data loss, a crash, a wrong schedule, a blocked core flow, an App Review rejection, or a UI stuck with no way back. An error message that leaves everything else stable does not count.
  • You verified it in source, in the running app or against the live service.
  • An action that does what its label says is not a bug, even when it deletes data. A user cannot lose data they never saw.
  • Zero findings is a possible result.
## Settled <Stuff that the models keep thinking is an issue but is actually not>

1

u/Starks1293 39m ago

had exactly this. three things fixed it for me:

  1. ask for the simplest design before any code. "give me two ways to do this, simplest first, and say what the complex one buys". most of the time the simple one wins and u never enter the loop
  2. the reviewer has to rank what it finds: breaks real use / should fix / theoretical. only the first bucket gets fixed now, the rest goes in a defer list. without that bar it always finds something, like finallyclearsky said
  3. cap it at one review round and one fix round, then u look. if the second review finds more than the first, the design is wrong, go back to step 1 instead of patching

a different model as the reviewer helps too, i have codex review claudes diffs cold, it only gets the diff and the goal. thats how i build my mac app (AI Bridge, runs both side by side, aibridge.sh), but the 3 rules work fine in plain claude code

1

u/pceimpulsive 28m ago

I have a few questions for you.

What effort are you typically using and which models? If the answer is high, xhigh or MAX you are straight up doing it wrong.

Do you have any skills that help it stay on-line with what you want?

Do you have anything in the codebase that determines how and why it should build one way over another?

Do you have coding standards defined in your repo?

Do you have architectural standards in your code base?

Do you actually know how to code up (by hand) maintainable, extensible and reusable modules in a larger project?

If you answered no to even 2 of these questions I think you are kind of guaranteed to fail and guaranteed to be where you are...

I'll shill for it.. but Matt Pococks skills/workflow kind of solve for all of these things, I'd suggest trying if you aren't sure... And also have a look at his repo for WHY he has built his skills the way he has.. not so you get pulled like me and necessarily use the skills but so you get pulled like me (in the other way) and start focusing on strategic programming techniques that ensure you don't get stuck in tech debt loops like you are in right now.

1

u/karyslav 12m ago

do not let the same model check the work, ask claude to create auditor from Astra (or the Neon whaterver) and let fable check work after it is done and astra audit it

if you let to do the same model (or model from the same company) you will end in endless loop.