Does your code confidence drop as your AI-built app gets bigger?
by•
When I started building with AI shipping features was fast and fun because the codebase was tiny.
But now that the project has grown every simple edit risks breaking something completely unrelated that I didn't write myself. Debugging code you didn't manually craft line by line is ten times harder than building it in the first place.
AI lowers the barrier to build but it definitely raises the headache of maintaining it long term.
How are you keeping your sanity and code structure stable as your app grows?
27 views
Replies
what kept me sane was making each step small enough to throw away.. commit after every change, so when something unrelated breaks i diff against the last good commit instead of debugging the whole app. and any rule i kept repeating to the agent moved out of the instructions file into a hook, since a hook runs every time. do you have tests on the parts that keep breaking or are you clicking through by hand?
One rule that helps with unrelated things breaking: a local problem gets fixed locally. The agent isn't allowed to fix one caller's bug by changing a shared function, because that touches every other caller too. It's written into the global rules every session reads, so it doesn't depend on anyone remembering it.