upvote
It's interesting, I was recently having this exact discussion with a coworker, and most of us have also came to this same design pattern.

The benefit for us is an extremely mature codebase, so it's quite easy to skip some of the design and just say "model this system after this other thing that's very similar". It's quite good at keeping a consistent baseline style, once it is cajoled into looking at good examples.

reply
This is also something that bugs me. Is it really "vibecoding" if the AI-written implementation of a system is mostly composed of preexisting (manually written) classes and components? At that point it seems like you're just using the systems you created as intended, but much faster and more efficiently.
reply
I did something very similar not too long ago. I needed to stand up a service but I'm personally not as familiar with the rest of the existing codebase because other teams manage it.

So I pointed Claude at parts of the backend I know work well and worked with it to construct a plan so that my own service would incorporate many of the same design elements and structure.

It worked quite well. As always, IMO more complex work like this should involve iterating on the plan until it looks ready, then iterating on the result.

Less of a one-shot approach (which really works better for quick one-off scripts, code snippets, etc.).

reply
That's a great cheat code. I did a massive ERP migration which was helped greatly by having all the source of the target ERP available.
reply
It would be nice ot just watch someone on YT walk through their process.

I've tried vibe coding on personal projects, its a mess. Agentic coding works but I find greenfield much harder to get good results with.

A big pain point for me is when I am working on a design and the agent gives me 10 items of which I want to revise 3, and it feels like I should be forking the context there instead of just chasing 1 of 10 and then drifting into a tangled mess of ideas.

reply
I'd suggest restarting the session with a smaller scope. Alternatively, identify which bullet points can be in-project infra, implement them in a clean session(s), then restart your original session telling it to use the new doohickey. The models work best when they have examples, or fitting building blocks they can rely on. Without building blocks or examples, but with a large scope you will not get good results unless you spend a lot of time iterating.

Having written this, I realize my recommendation is to do vibe-junior. Just like you can't hand juniors a too complex task or expect them to identify systematic isssues, so can't LLMs. FWIW, this was Opus 5.5, I suspect dumber models will need more hand holding.

As the other commenter said, greenfield is harder to get good results

reply
Greenfield requires even more of that discipline IMO. But often you don't really know the specs until prototyping.

The good news, code is ultimately disposable now that you can crank it out in assembly line fashion. Combine that with, you can also have the LLM rewrite your spec ; ) So start small and build. Then you can find out where the garbage is, add some new ideas. Now normally we would call that `Technical Debt`. Instead what you do is have the Agent rewrite your original spec and tell it what to keep and what to delete. Carefully review the new revision for alignment with your design goals. Re-engage the gap analysis if necessary.

New project > make plan from Rev [n] of script. Iterate until happy with result.

reply
If you arent looking at the code its still vibecoding lol. Nothing you said here is a differentiator.
reply