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
fwlr#
I don’t think it is “you” that deals with this. You have outsourced your engineering to Claude, so Claude must deal with this, and if it’s not good enough to deal with that task just yet, you should wait for improvements to Claude until it is. (Some of the other suggestions here are good; it is possible that Claude already is good enough to deal with the task and you’re just not asking it correctly.)
mikewarot#
I view any LLM generated code as a movie set, something that looks good, and has to last for one use. Use it like you would use Harbor Freight tools, as something to get a job done once, but not something to rely on.

LLMs can give you the API calls, and help you figure out how certain libraries work, but they're going to fail spectacularly on quality. I don't see any way around this for the next year or so.
The only positive suggestion I have is to keep the scope of your prompts tightly controlled. Be very, very specific in what you want, avoid wiggle room.

Load more comments