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
toufiqqureshi1 reply#
The same I was facing now I have built complete app but always worried about it is really protected and production ready I also facing this issue I don't know what to do
nkcodes#
I'm going to try out having product specs committed in the repo itself - hopefully this gives every agent I spin up context into how the product is supposed to behave as opposed to having to "guess" it from reading the code adjacent to whatever prompt I gave it
caksoy#
I definitely don't touch any AI tools while I'm designing the high-level solution for the problem. If you ask it to propose a solution to you, you quickly go down the rabbit hole, which can sometimes lose you days. This is especially the case if your setting is not fully verifiable but you measure your success with a metric.

Once the design is complete, I think the rest is less important. At least that's how I feel.

llbknapik#
I personally build rules using static analysis tools. All my guardrails hook into my .NET static analyzer pipeline. This makes the agent fail at build time then it goes and corrects itself.

Additionally, .NET added a bunch of formatting rules in its static analyzer for .NET 11 that give greater control on the styling of the code the agent generates. For example you can ban `=>` function syntax using editorconfig. The build will fail and the agent has to adjust.

jvaqueiro#
I face similar problems on a daily basis. Mostly UI bugs, and copywriting.

Fixing these is exahusting. What I ended up doing was building a "feedback"[1] tool I can point to my agent.
Basically, I collect bugs/improvements and then tell codex to fix them.
Being able to gather a bunch of bugs in a working session has been a boost in productivity.
[1]. https://pecky.app

Load more comments