r/ClaudeCode • • 4d ago

Discussion opus feels kinda flawed?

I only started using a coding agent earlier this month, I went with claude of course. At first I was amazed at how capable and convenient it is, and I still am, but the more I used it, the more I noticed how flawed it can be.

I tell it to work on an implementation or on a bug fix on the working repo, and it does, and it runs its tests. But after, that, I tell it to review the docs related to the task, and to review the code that was implemented, with the same agent in the same session. It keeps turning up mistakes over and over, both in the docs and in the code. I know people have special setups that review the work with gpt or gemini models, but these mistakes don't require that, they were caught by the same model in the same session right afterwards. What's up with that?

A lot of this was done in opus 5.5 on high

0 Upvotes

13 comments sorted by

•

u/AutoModerator 4d 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.

10

u/LiminalWanderings 4d ago edited 4d ago

This isn't complicated. It's basically the exact same reason you can read your own lengthy email or work repeatedly and probably still catch problems.  But sometimes someone else with a different perspective will catch ones you still miss. You also told it to find flaws so it will...they do what you tell them to.   if you don't specify what kinds of flaws you care about, it will always  complete the objective with whatever flaws it can find...even if they're just capitalization or something.  

1

u/reddit_is_kayfabe 4d ago

One trick is to instruct the agent to generate a report, after each audit, that includes a bullet list of discovered and fixed issues with rankings, such as "critical" (e.g., issues that can crash or lock the app, or corrupt or lose data), "high" (e.g., issues that can cause transient app unresponsiveness or UI issues), "medium" (e.g., UI features that do nothing or do not perform as expected), "low" (e.g., poor UI layout or confusing wording), and "trivial" (e.g., documentation typos).

Then, define an audit workflow. VERY IMPORTANT: State that every audit must (1) be thorough (e.g., must review the entire codebase, optionally using subagents if it's large) AND (2) use nothing from previous audits (i.e., START FROM SCRATCH).

Tell the agent to execute the audit workflow repeatedly. Compare the results. They may or may not taper off steadily in number, but they should taper off in severity, even if it takes 8 or 10 audits to get there.

3

u/PitifulAppearance509 4d ago

You don't even need a separate model to review. A seperate session with its own context is good enough. Although some say that The reviewer should be at least higher effort setting. The important part is to give the reviewer agent the right tooling in forms of lints, tests and scans to get good results.

3

u/Far_Reindeer8428 4d ago

that is not the model getting worse, it is a reviewer with no fixed acceptance set so every pass invents new criteria. we pin the checklist before the first review

1

u/ChemicalExcellent463 4d ago

your same-session review is catching more than mine did. mine found nothing real and just burned tokens; Codex reviewing Claude's work in a fresh session that never saw the chat started catching real problems for me.

1

u/cashmerememories 4d ago

Your claude.md file is likely bloated if it’s making the same mistakes. You also need fresh agents to review your work. If you haven’t already you need to read the manual and then post the link into a fresh agent and ask it if you’re using these best practices.

https://claude.com/resources/articles/the-ai-native-sdlc-playbook

1

u/Ok-Form1598 4d ago

it's doing two different jobs. while it builds, the target is getting its own tests green, and it wrote those tests from the same understanding as the code, so they agree with each other even when both are wrong. ask for a review and the target becomes finding problems, so it finds them. i quit trusting the first done after a session told me everything passed and CI was red on all of it, now the review step runs before it's allowed to say done instead of after

1

u/Only_Voice569 4d ago edited 4d ago

use fable to detail a plan that is then done by sub agent opus very high or max and fable to review and check the final work if wrong hand back telling sub agent what it got wrong, can use lower opus and tell fable if model keeps failing or doing poor work consider upping its thinking level based on the type of task and keep a document that lets it learn. opus from my time learning it is great worker but needs a higher model to help with scope and planner to give it some direction. can also tell the reviewer/manager/planner every once in a while to check on sub agent context for any issues that keep happening so can learn what to tell them to improve/stop silly issues that happen often. can also tell sub agents not to ouput commentary and control context that the sub agent can read and request ask main agent if more is needed also ensuring sub agent does a final brief of the task being done. i like to do detail planning then break it into chunks and then get them done single or paral at a time if they can be :)

1

u/norviking 4d ago

Claude cares about skill instructions, claude.md and "memory" some of the time. But not nearly often enough.

  • Context and project state must go outside the llm. Make a real framework, machine readable.
  • Work must be split into reasonably sized tasks, with consistently formatted instructions, what success looks like (measurable preferrably).
  • Deterministic gates, tests, probes, and ci. Token free mostly, the running at least, not the interpreting and fixing.

After tearing my hair out in a large and long lasting project, I made this to handle all that annoying stuff.

https://github.com/vegardjorg/ravenseat

It really helps a lot for me. Free and open source. Hopefully it can alleviate some of those problems for you. Best of luck.

1

u/SirRobinBlibs 4d ago

Same-session review mostly re-reads its own reasoning, so it tends to agree with itself until you point at something. Giving the reviewer only the diff and the spec, not the conversation, and asking for concrete failures (an input that breaks it, a line that contradicts the spec) gets more out of it than "review this".

New findings on every pass are also normal. I'd stop when a pass only turns up style nits, and turn each real bug it finds into a test so it stays fixed.