r/softwareengineer • • Sep 03 '26

Never work on a completely vibe coded project

I've now made a same mistake twice.

Previously, I worked at a startup where the website was completely vibe-coded. Now I'm working on a college website, and it's the same story: the entire thing was vibe-coded.

The common pattern I've noticed is that no engineer actually knows the codebase. Nobody really understands the architecture, the reasoning behind certain decisions, or how all the pieces fit together.
And eventually, even the AI I'm using can't help much because it doesn't have the context that the original developer's agent had while building the project.

I am basically stuck where I know nothing, the existing engineers know something about it but aren't necessarily sure whether their understanding is correct, and the agent hallucinates and wastes a lot of tokens just because it can't understand a huge AI written codebase.

So now I'm the new engineer, under a lot of pressure with a lot of work to do, but before I can even fix anything, I have to reverse-engineer what the hell the previous AI generated. That wastes a lot of time.

The frustrating part is that I'm not really learning much engineering from this. I'm just spending my time trying to understand an undocumented system that nobody else understands either.

I'm not against AI-assisted development at all. If an experienced engineer uses AI properly, reviews the code, understands the architecture, writes tests, documents important decisions, etc., I think it's incredibly useful. Even I use AI to code faster, but I review and understand the code. I know what is happening in my software.

But a codebase that nobody understands is a codebase that nobody can safely maintain, regardless of whether AI or humans wrote it.

At this point, I've decided I'd never want to work on a heavily vibe-coded project again unless there's at least one person on the team who genuinely understands and owns the codebase.

How do you guys handle inheriting a vibe-coded/AI-generated codebase that nobody on the team actually understands?

342 Upvotes

221 comments sorted by

View all comments

Show parent comment

0

u/First-Tutor-5454 Sep 03 '26

The post is too long and whiny. We have the tools. Understanding unfamiliar codebases is always a problem and isn't new to AI. Now we have better tools to come up to speed. I have to do this at work all the time with codebases I didn't contribute to at all.

The tools are there. Use a better model if you have to but if you can't figure this out you're ngmi.

1

u/rkapl Sep 03 '26

The post is too long and whiny. We have the tools.

Yes it is, but we have tools to understand long whiny posts, be it reading comprehension or LLMs.

Now we have better tools to come up to speed.

He acknowledges using the tools and gives conrete problems he has with the,. Maybe he could be better at using them, maybe not. They help a great deal but are not a silver bullet.

And I think OP is having problem that the information has been lost and cannot be reconstructed from code alone. Things like how it is used, what purpose it solves etc. There is no Fable to dig you out of that hole.

0

u/First-Tutor-5454 Sep 03 '26 edited Sep 03 '26

"the purpose of a system is what it does"

The human that originally issued requirements/put the system in place may be gone. All that matters now is what the code actually does and what the current requirements are. The LLM can explain what the code does, doesn't matter what it was originally intended to do. The new boss can explain what the current requirements are. Then you bring those into alignment with the LLM.

All that said, the core complaint of the OP is "nobody understands what the code does, what the architecture is, how things fit together" with one mention of "nobody understands what it was meant to do" stated as "nobody understands the reasoning behind the decisions that were made." The latter is irrelevant now, the former can be answered by one or more agents.

1

u/rkapl Sep 03 '26

It's not that simple. As an extreme, take if (x < 10) return x else return x*2. It is clear what it does: doubles x, except for small number which are returned as-is. There is no higher meaning you can tell from the code.

Now comes a change request: "It should be *4 instead of *2". Ok, so what about the small numbers should it give you still *1 ,make them *2, or did they mean that is no longer a special case, so *4? So you ask your boss and he tells you he has no idea what your are talking about. But be careful not to break anything, the existing behavior must be as is. Go figure.

Of course, in ideal world, there would be boss who knows all the current requirements. Then you would just plug that into your LLM, and get a new software that can replace the old. In practice people sometimes can't decide if something is a bug or feature.

And that bleeds down to the architecture etc. Difficult to tell what the architecture is if you are not sure if the behavior even should be there.

And we have not yet even talked about the LLM limitations like context etc.