Lurker News
I'm having a really hard time working with claude. In the past when I wrote all the code manually, it was always carefully reviewed and architected, with all possible flows carefully mapped out. Now, my code is mostly AI written which has led to things going out of control. Since it's easy to add new features and support many user flows, we went ahead and implemented flows that support a lot of cases our users run into. But now, I feel like things are getting too complex with no central notion of behaviour definitions, which causes every bug-fixing session to feel like a game of whack-a-mole, and results in missing edge cases and UI bugs that are becoming impossible to review and keep track of.

Every time I build anything new, it adds more complexity and the agent only seems to focus on the surrounding code within that session without keeping track of how it fits into the rest of the code base/product.
How do you all deal with this? Any suggestions for improving?

Comments (39) 68 threads

Earlier comments
EduardoBautista#
I have Claude run the simplify and code-review skills as part of verification. Also every month or so I use the tech-debt skill on all my codebases and fix any issues. The more tech debt you have, the more the models start doing strange things.

And the usual stuff any decent CI pipeline should have: tests, builds, linting, SQL breaking changes and potential heavy migration checks, etc.

hhhkm#
I use Claude Design Artifacts a lot for new features I'm building. Its really helpful for nailing a flow and look. Besides that my apps usually have a component library built so it doesn't repeat code.

Opus 5.5 has made it pretty effortless to get right the first time tbh. Usually it even lays things out better than I was thinking originally

corroclaro#
With great difficulty - it's very hard to keep LLMs from generating codebases that are hard to reason about for humans - the spaghetti intermingles with a ball of mud.

So far, my most successful ventures have been tiny CLIs that do something I have been itching to write that one day when I'd had some free time (that never materialized).

jesecamilo#
Ensure it's referencing well-regarded coding/ui/ux standards. If you're developing in C++, Google has great docs. If you're making an iOS app, Apple has great docs, of course. If you're making a user-facing web app, look up behavior-driven development (BDD) ... Etc, etc.

Load more comments