Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, that's "Vibe coding" in a nutshell. Which is why I practice agenting coding.

The difference is I constrain the inference engine to produce the desired result. (aka improve the quality of my input) Because open gaps lead to the results based on how the engine was trained by others and that is rarely the result I desire.

I've had to expand traditional design to be, for lack of a better term, AI-Friendly. That means more technical definition of the target. 'Store information in the database' vs 'These are the database models, relationships and join rules and how to apply them'. Additionally designing AI-specific assets like rules and skills to corral the AI into following designated patterns. The design now has to encompass all the boundaries that I may have left to be implementation decisions while typing code in the past. Give the agent what it needs to succeed at churning out code to walk graphs, perform processes etc.

I spend more time designing than I used to do, but far less time coding. I start with a written spec, then submit it in Ask mode and ask to identify logic flaws and gaps or inconsistencies in the spec and to number them. (The LLM will actually tell you when it will go off the rails if you proactively ask it) I then iterate the issues against the proposed plan to address the each issue. When that is complete, I no longer need to examine the code as I have avoided GIGO.

I proceed to functional and acceptance testing of the result. Dial-ins are usually quick prompts, I issue in Agent mode. If I'm fundamentally changing something structural to the original plan, I do that in Plan mode.

 help



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.


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.

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.).


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.

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.


I feel like the vibiest coders are spinning up 10 agents and telling them to make sensible choices - but I just tell it "I think we need to ficus here. Make a note of the others to consider later, and let's work on <item x> now." The same thing I'd do myself.

> but I just tell it "I think we need to ficus here..."

A classic example of when you need to give a fig.


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


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.


> "these are the database models, relationships and join rules and how to apply them"

Next maybe we could come up with some kind of formal DSL for expressing stuff like this for concise and precise expression...


My friend is working on something like this:

https://github.com/Wint3rmute/Rhizome


Maybe some sort of structured querying language?

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

> If you arent looking at the code its still vibecoding

I was about to agree, but then thought hang on.. every developer uses far more code written by other people than what they write themselves, in the form of libraries, frameworks, packages. So most of what we implement is based on trust. When I say "I built this", it's only because of stuff I'm using that others built.

So I don't think the difference is "not looking at the code" per se. The difference is not knowing enough about the implementation to know what you can trust. We trust libraries because they're fixed, versioned, maintained, etc - there's a supporting ecosystem around all that "other people's code".

There's no reliable ecosystem around LLM generated code except whatever guardrails and tests you implement yourself.

So I'd say "vibe coding" is similar to an LGTM code review. It's the attitude, not whether you read all the code. If you're really a software engineer, you do what engineers do in any field - you test, verify, do whatever's needed to ensure the end result is exactly what's needed, even if you don't completely understand all the underlying processes. That's still engineering. Vibing is trusting what you know can't be trusted.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: