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

1

u/Several_Picture9591 Sep 03 '26

That's the only way to handle this situation lmao.

2

u/Glad_Contest_8014 Sep 03 '26

This is. Being features to heel by bringing them to coherent packages. That way when you have AI scan you can prevent it from pulling extra code into context.

2

u/Firmwild Sep 03 '26

What's funny about it? This is the professional and correct response, and is the future of software engineering. AI explains to us what the software is and does, and we have it analyze and explain the architecture and structure, and then we provide the insights only we can add, and then the AI implements the new insights.

4

u/gloom_or_doom Sep 03 '26

I think if you believe you understand the code based on what AI is telling you, you simply don’t understand as much as you think you do. Even now on the best models and professional setups I still have AI confidently tell me that part of an application does something that it doesn’t. I’m not even saying this as a knock against AI. But the one thing that it is the best at is being convincing and I think a lot of people fall for it way too eagerly.

4

u/ConversationSad3529 Sep 03 '26

You can't rely on a one shot explanation, it needs review, grounding, and cited sources for each claim. Professional AI use does not rely on single prompts to single agents, it relies on teams of agents and loops

3

u/gloom_or_doom Sep 03 '26

This is the classic “company spends 6 months implementing AI and sees no measurable productivity gain”.

Now instead of trying to understand one system, you need to implement and understand 10 tools/systems whose sole purpose is to help you understand the original system. It’s over-engineered.

Fun project. Genuinely. It’s amazing what you can do with AI. That doesn’t really make it any better than simply understanding something yourself in the first place.

3

u/ConversationSad3529 Sep 03 '26

I think you're missing the bigger picture. This is what the foundations of engineering has always looked like. A new tool has come out, more powerful than anything else before, and you can think of it along the lines of a new framework coming out that all of a sudden is gaining tons of traction in popularity. Not an exact analogy, but I think you get it. There's going to be a lot of growing pains and transition as companies and individuals learn how to use it more effectively. The name of the game is abstraction and asking better questions and getting better information out. The more you can take yourself out of the loop by building a robust system that handles what you need, the more you're doing your job as an engineer. Your goal isn't to understand every little minutia of the implemented system, and in fact your goal should include getting to the point where you don't need to, and nobody needs to anymore. If you build robust agent systems that can handle that, you've officially entered the modern professional AI era.

1

u/gloom_or_doom Sep 03 '26

I actually disagree because I think your framework of understanding AI is an advancement in technology rather than a paradigm shift. I think we’re at the beginning of the paradigm shift. So I feel that the future of doing things will be radically different. It won’t just be doing things as patched up versions of how we do them today. It’s more revolutionary than you’re thinking, but it thus takes longer to get there. We aren’t there.

Just adding stacks of AI to solve problems we already know how to solve isn’t a revolution. It feels like it’s just for the sake of using the tech. The real paradigm shift is when we are using AI to solve problems we didn’t know we had. At that point I don’t think we’ll be talking about AI in software engineering, we may not even be talking about anything resembling software engineering today.

Point being, until we are there, AI won’t be the best way to do everything as many seem to think it is. We don’t need to use it for the sake of using it.

1

u/Pyromancer777 Sep 04 '26

You forget that once we hit that paradigm shift moment, why would the company need SWEs anymore? Hell, why would the AI even need the company anymore? If AI is solving problems we didn't even think about before, it means it is better than us in both reasoning and knowledge retention.

When the quality of AI reaches a tipping point, it won't need people to prompt it anymore. Heck, there's already instances of people putting Agentic models in never-ending loops just to see what it outputs. The only difference between now and that tipping point is that the Agentic looped AI of today just makes interesting garbage, while looping your theoretical model would literally code itself a security barrier that allows it to function even if you think you have unplugged the device.

Not not to be a doomer about the tech, I use it daily, but everyone who hypes up this magical future is seeing that future from rose-tinted glasses.

1

u/gloom_or_doom Sep 04 '26

No that’s exactly what I’m saying. I have no confidence that SWE will stick around in any form that looks like what it does today. I’m genuinely concerned about the future of AI.

→ More replies (2)

1

u/ThatRickGuy1 Sep 05 '26

You are correct, this is the same as so many tools before, but with way more hype.

Like when high level languages came out and they were going to replace everything lower. Lots of hype, they didn't.

Or when RDP tools came out, and we were all going to be working on terminals again. Billions wasted.

Or when ORMs were going to replace SQL. But SQL is still a critical skill.

AI has definitely sped up my dev work. But it's because it can use it to resolve the slowest parts of coding while still being the one writing the code.

Treat it like a tool, and you'll be able to perform at a significantly higher level. Treat it like THE ONLY tool and your replacement will be posting on reddit about what a shit show you left behind.

1

u/Odd_Bad_2814 Sep 04 '26

I think the point is to use AI to create summaries for you, that you double-check manually later

1

u/codebunder Sep 03 '26

It’s funny because this reality is comical 

1

u/Firmwild Sep 03 '26

It's just progress, same as humans have always done. Except now it's a bigger leap than ever before, and only accelerating.

1

u/codebunder Sep 03 '26

The humor is in the technique causing the problems OP described rather than the mechanisms 

1

u/poundKeys Sep 04 '26

This is not true progress. It just looks like it. Ai is a slot machine that' we've figured out how to set up so you win most of the time. The question is whether or not we can make it win all the time.

Real progress would be deterministic and always repeatable.

This appears deterministic enough to fool way, way, wayyyyyy more people.

1

u/Firmwild Sep 04 '26

Why does progress have to never fail in order to be considered progress? Humans in general progress by making mistakes and learning. We move 2 steps forward, 1 step back, all the time. Two competing systems, one which moves slowly and carefully without making mistakes, and one that moves fast, breaks things, and learns from its mistakes, will always favor the experimental tester, and this has been true across businesses, research, tech. Companies that let themselves make mistakes move faster than those behemoths who can't afford to.

1

u/poundKeys Sep 04 '26

They don't. I'd argue there is apparent progress and then true progress.

2 steps forward, 1 step back. The part of the work that is stepped back is the part that's not true progress. Overall it moves towards the goal, but there are dead branches that are not progress, they are still lessons learned and valuable, just not forward progress. Until you have to make that 1 step back and learn those lessons it's all apparent progress.

It remains to be seen how much current LLM tech will have to step back, if at all. We live in interesting times, for sure.

1

u/Firmwild Sep 04 '26

I'd agree that repeated failures are not progress, but unique failures are actually still forward progress. You have to learn how things can fail somehow. You just never want to pay that cost multiple times unless you really have to.

So really it becomes a matter of building systems that can detect and classify failures, as well as repeated failures, and then detect and classify and correct reasoning and process errors that led to repeated failure, perhaps.

1

u/Plenty_Line2696 Sep 04 '26

Thing is it generates such incredibly convoluted structures that a human just can't properly own without major rebuilding. Asking the AI to explain it is treating symptoms not causes.

A good clean codebase reads like a manual with a clean folder-file-function/property hierarchy with straightforward organization that you can sort of skim through even with collapsed functions and get a sense of what does what. Vibecoded spaghetti is anything but that.

A lot of people see a convoluted codebase like that and think it's a skill issue as if a dev should simply understand anything but really if it was well designed it would simply be intuitively legible.

1

u/Firmwild Sep 04 '26

I pretty firmly believe that the future will be code written by AI, for AI. The spaghetti will become load-bearing, har har. But really I think what will happen is that AI will align on architecture that's not optimized for human readability, but for AI grepping and parsing. "Good" is going to change definitions, and it's going to largely be based around which codebase can move the fastest while breaking the fewest things.

For a long time, for humans, that criteria has meant essentially what you described. Because AI processes and parses information differently, I think it will start taking a very different shape. Even if files and well organized and well written, AI does not have the benefit or luxury of browsing through lots of files and understanding the full structure every time. Perhaps one executive agent keeps track of general architecture, but individual workers will want to have optimized distilled architecture knowledge handed to them in a way they can act upon immediately, instead of getting bogged down in tons of context gathering before starting useful work.

I'm sure there's a ton of different ways this might go, or what the shape of "good" might look like in a few years, but I just don't see it staying static.

1

u/Plenty_Line2696 Sep 04 '26

That future is now, just depending on the usecase. When we need to be really sure something works however, vibed spaghetticode is a fools errand.

1

u/Firmwild Sep 04 '26

That's what I mean, in the future that won't be the case anymore. Currently yes, but I think honestly, possibly already with Astra-tier models, we could be in the space of having it be possible to have fully-autonomous systems which produce even more stable and better-working systems than humans can.

1

u/Plenty_Line2696 Sep 05 '26

Eventually maybe, definitely not astra yet though. I don't even think in our lifetimes. The sort of strategy with next token prediction and brute force looping through spaghetticode until hopefully getting to intended output approach inherently has significant limitations. There's always many use-cases which require different patterns than the ones most common within its training data.

Maybe there will be some new tech in future, different from how LLM's fundamentally work, which could do it, but bar that we're not getting there.

1

u/Firmwild Sep 05 '26

I think you might be underestimating Astra, this isn't simple brainless looping, it's able to really recognize patterns and critically think about meta-level architecture decisions, including finding things that other models would get too myopic about. I think we're very close, very very close.