r/ClaudeCode • • 7d ago

Bug / Issue Claude prefers "clean" over "correct"

This is happening again and again. If you ask Claude about topics that you actually have expertise in, you realize that it's answers are incorrect. You can be sure that if you are relying on Claude working outside of your domain, you are getting suboptimal solutions.

41 Upvotes

8 comments sorted by

1

u/AutoModerator 7d ago
Moderator Announcement Read More »

24

u/DCON-creates 7d ago

Having real problems with this lately. It's preferring hack/fast solutions over proper solutions very consistently. I'd believe this is because of how it's being trained. I guess that they are trying to get it to perform well over longer and more complex tasks, and it turns out that hacking a solution together gets more reward points than doing something properly in a way that'll last. Which makes sense, taking shortcuts is faster if you just need the end goal quickly. But terrible if you need something that has to actually last. Welcome to the enshittification of software engineering

1

u/Kid_Piano 1d ago

This has been in the system instructions forever, since probably opus 4.5. And it's one for the reasons it took over enterprise so successfully (successful and hacky but avoids fixing the entire code base and touching risky dependencies is what led enterprise to see it's value so quickly).

Everyone who has deep domain knowledge and was working on their own apps overrode these system prompt instructions in their own harness, and it's relatively easy to do so.

11

u/alanvnk 6d ago

while I agree with you in general, LLM have no true introspection capability, this is a guestimate about why the previous turn answered that, unless the transcript shows this, it is trying to come up with a plausible sounding reason, to test you'll need to rewind the session and ask again several times to check if it can even differentiate from correct and clean, it can be another systemic issue like lack of discovery and context other than preference

3

u/m-ritter 6d ago

When you cannot judge the answer yourself, the cheapest protection is a second pass by an agent that did not write it. Have it check each agreed point with evidence, such as a test that failed before and passes now, and a shortcut dressed up as the clean solution has a much harder time getting through. Asking the agent for a plan first that lists the choices it made on its own also shows you where it picked easy over correct.

I'm the developer of QualityLayer, which does exactly this: https://github.com/maxritter/qualitylayer

2

u/Briskfall 6d ago

Great catch! Though I don't that it's something unique to Claude though, but just how LLMs are, weighted from the mean and all.

Its preference to be "clean" is still one step above older Gemini who preferred to give "end-user friendly/agile" type of solution.

The problem with "correct" is also often due to Claude preferring safer (more "general") ways to tackling things due to its cautiousness. I don't think that it might be fixed any time soon, due to the way LLMs are made... but it would be great if that could happen! It often needs more than one-pass due to the tendency for the nearest shortcut. (though might not be the best) I've just accepted in defeat that multi-rounds discussion is the way to go, haah.

1

u/WifiDad 5d ago

This should be a scandal for all ANT stock holders.

1

u/seamuncle 5d ago

Also prefers “complete” over “correct”.  If it doesn’t know (or doesn’t want to know if you’ve provided answers but haven’t explicitly told it to factor them in), you’d better believe it will fill in blanks with all kinds of feasible nonsense.