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

Show all comments

Showing thread 4 of 68

DeepOntology#
Here are my tips:

0. Use Fable 5.2 on max (or whatever the most powerful model + effort you have access to) for all strategy, design, and planning (since good reasoning at higher levels of abstraction always pays off when it comes to implementation)
1. Use Opus 5.5 sub-agents for implementation, and have the Fable "drivers" break work into lanes.
2. Only build when there's an explicit "go" on a written plan.
3. About 1x/week do a broad, high-dimensional analysis of the codebase (tech debt, test coverage, security, performance, etc. etc.) and have judge agents vote on priority --> fix the P0s and P1s and a random small subset of P2s.
4. Test coverage > 85% and set up CI to reject changes which drop the test coverage %.
5. Have every agent create a numbered guide for verification which you walk on staging (or locally, if early in your development process).
6. Antagonistic & hyper-critical agents -- whenever you make a change spin up a small number of Opus 5.5 agents to review everything from an antagonistic/hyper-critical lens -- this catches a lot.
7. Make a list of principles and make every agent read the principles before every change. Principles only get added + refined. Whenever an agent doesn't know what to do, ask if it can figure it out from the principles -- if not, walk the agent through it + then have it add the appropriate principle. This leads to convergent implementations at an abstract level, over time.
---
Using these tips I've developed large + complex code bases with minimal bugs.