frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

How do you keep up quality when you vibe-code?

17•nkcodes•4h ago
I'm having a really hard time working with claude. In the past when I wrote all the code manually, it was always carefully reviewed and architected, with all possible flows carefully mapped out. Now, my code is mostly AI written which has led to things going out of control. Since it's easy to add new features and support many user flows, we went ahead and implemented flows that support a lot of cases our users run into. But now, I feel like things are getting too complex with no central notion of behaviour definitions, which causes every bug-fixing session to feel like a game of whack-a-mole, and results in missing edge cases and UI bugs that are becoming impossible to review and keep track of.

Every time I build anything new, it adds more complexity and the agent only seems to focus on the surrounding code within that session without keeping track of how it fits into the rest of the code base/product.

How do you all deal with this? Any suggestions for improving?

Comments

toufiqqureshi•4h ago
The same I was facing now I have built complete app but always worried about it is really protected and production ready I also facing this issue I don't know what to do
nkcodes•4h ago
I'm going to try out having product specs committed in the repo itself - hopefully this gives every agent I spin up context into how the product is supposed to behave as opposed to having to "guess" it from reading the code adjacent to whatever prompt I gave it
Marco012•4h ago
I'm not sure if there is any standard for this, I also tried to search about it in the past. But what I ended up doing that has been working well is to keep everything documented. Every task and decisions are documented on .md files, referencing related tasks and decisions. The project becomes bloated quickly, but Claude can easily locate and relate decisions from a long time ago. Some times I even ask to do do something and mid-way Claude realizes that it goes against a previous written decision.
nkcodes•4h ago
Yeah, I'm going to try this out the coming weeks.

I wonder if there are people around who have stories to share about de-AI-Slopifying a codebase.

mpd•4h ago
I've always been a bottom-up programmer, so I tend to think more about discrete operations of software rather than the user-facing features (which IME will fall out naturally).

1. Experiment and solidify architecture before adding features. I think this is the hardest step for top-down thinkers.

2. Heavy testing and benchmarking. Prefer to TDD as much as possible. The actual lines for my agent-written codebases are generally ~70+% tests, benchmarks, and experiments.

3. Full mutation test coverage after the code is written. Doing this as a human is miserable IMO, but robots make it reasonable. This step resolves SO MANY subtle bugs.

At that point my main role is ensuring alignment with the actual specs.

nkcodes•4h ago
Yeah I feel like what you say makes sense. Part of my issue comes from the fact that we're a pre-PMF startup, so rapid experimentation and prototyping really matters at the moment with very little room left for deep thought around testing and benchmarking.

The trouble comes later when the "experimental features" actually start getting traction and we discover all the holes in our implementation.

By the time we need to "productionize" our experiment, it has already been patched all over the place to account for bugs.

I get a feeling that this is made worse by the fact that since a lot of what we're doing is rapid prototyping, our repo is cluttered with examples of bad code that the agent picks up on and then goes ahead to copy in its own implementation.

I get that we need to clean this up, but it's crazy trying to figure out where to start and what to tackle

mpd•4h ago
One of my mantras is 'fast is the best UX'. Users will put up with minor annoyances as long as they're over with quickly. Once you fix the annoyances, you're still fast, which leads to User Delight.

> I get that we need to clean this up, but it's crazy trying to figure out where to start and what to tackle

Enumerate, then fix-or-nix all known examples of bad code first. If you clear the path first, you will advance more quickly. It can feel frustrating having to do that, but my experience is that paying off tech debt earlier will prevent hitting the wall at an inopportune time.

smallerize•3h ago
One thing that's surprisingly powerful is to just say what you want in the prompt. One of my skill files now includes "inspect existing code under [subdir] for implementation patterns." Depending how much code you have, that might take a lot of tokens. You could either list the patterns that you want or include a smaller code sample in the skill's references.

A stronger version of this would be to make a separate gate. Fail the commit if the new code duplicates something already in a utility function, renames something that already had a name, uses for-loops instead of list comprehensions, whatever is bothering you.

fox833•3h ago
Just know what you're doing, what and how you want it from a coding agent. It saves time on typing but not on thinking
fwlr•2h ago
I don’t think it is “you” that deals with this. You have outsourced your engineering to Claude, so Claude must deal with this, and if it’s not good enough to deal with that task just yet, you should wait for improvements to Claude until it is. (Some of the other suggestions here are good; it is possible that Claude already is good enough to deal with the task and you’re just not asking it correctly.)
alexjplant•2h ago
OpenSpec solves this incidentally by dividing work into planning, implementation, and archiving phases. If you tell it what you're doing and the business reasons during planning (and bicker with it about technical implementation) then it goes off the rails much less when it actually does the work. You can also PR the spec to coworkers before implementation and run the implementation step in a new context to keep it more on track.
platevoltage•2h ago
The way I deal with it is to not have an agent write all of my code. Hand tools didn't become obsolete after power tools were invented.
bengold14•2h ago
My cofounder and I built https://www.archme.io for this.

It is an abstraction on top of code, turning your codebase into architecture diagrams and then keeping them up to date on each commit.

As a bonus you can do PR review and propose changes in it as well.

sadilek•1h ago
I have not done a systematic ablation study, so not all things might be necessary, but anyway, here's what's working for me very well (in no particular order):

0. Use Opus 5.5 on high.

1. Have in your CLAUDE.md the rule that code changes go together with updates to the docs. For me, that's HTML files in docs/. (Could be .md as well, but for human consumption, HTML is nicer.)

2. Have the rule that only that should go into the docs that an experienced engineer would need to rebuild the system from scratch, ignoring how it would look.

3. Larger work gets a plan doc in docs/plan, i.e. multi-PR work. There is a template how plans look, and an important part of the template is that the last step of the plan is always to delete the plan and fold anything from it that makes sense as long-term documentation into the docs.

4. Have a rule that before creating a PR, a sub agent needs to review the code, and have Codex Sol 6.1 high review it as well. Then let the main agent iterate on their findings until they are happy.

5. Every now and then, ask for an audit of the code. I ask for DRY, YAGNI, and KISS. Let it produce a report. Then let it fix all findings. If a lot, use a plan.

6. If you're adding something straight forward, just ask for it directly. If it's not, ask for a brief first. Review it. Then decide whether to implement in one go or through a plan.

7. Get an ultra plan, so you (mostly) don't have to worry about token usage but can use agents to their full ability.

8. Bonus and plug: Ask your agent to hand over with a demo video. It often finds and fixes issues while recording it, and you're not degraded to the agent's QA team, but it has to put in the work to convince you. I built a UI for directing agents as described: obeya.si. Free, open-source, local.

purple-leafy•1h ago
Have a vision, and know what to say no to [0]. Thats how I build all my own projects, most recent here for example

[0] - https://github.com/con-dog/clingon

xtajv•58m ago
Remember, "There will be a quiz".
sjducb•3h ago
If you’re pre PMF then don’t worry about code quality. (Seriously)

Pump out features and iterations as fast as you can until customers are buying your product.

Startups fail because they can’t find customers, not because their code quality is low.

How do you keep up quality when you vibe-code?

17•nkcodes•4h ago•17 comments

Ask HN: What are you working on? (November 2026)

290•david927•2d ago•1029 comments

ChatGPT Desktop forwards your SSH agent to remote machines

214•DenGorbachev•1d ago•77 comments

Ask HN: How do you manage your AI agents' context across clients and projects?

97•Michel_Aventin•3d ago•56 comments

Ask HN: Do you still enjoy coding in C++?

57•hasley•1d ago•83 comments

Ask HN: Is misaligned AI less dangerous than AI controlled by a bad actor

2•InfiniteRand•7h ago•4 comments

Ask HN: How do you evaluate the skills your AI agents use?

20•enesalatas•1d ago•6 comments

Tell HN: Another GitHub Major Outage

16•sergiotapia•1d ago•5 comments

Tell HN: Notion AI chat sessions have been exposed via Fireworks AI hack

15•RamblingCTO•17h ago•1 comments

Ask HN: Anyone else notice Fable 5.2 making grammar errors?

4•linearza•12h ago•2 comments

Ask HN: How did you convince family and friends to join your XMPP/Matrix server?

100•mtlynch•3d ago•96 comments

CoderPad Reports a Security Breach

6•werrett•19h ago•1 comments

Ask HN: What in the world is taking Ubuntu so long?

219•linsomniac•4d ago•143 comments

uBlock Origin Can't Block Facebook Ads

12•anidsiam•1d ago•5 comments

Tell HN: A flood of reports of Opus 5.5 being nerfed

28•b--l•1d ago•15 comments

Ask HN: Are companies making money by using AI?

4•vanh4lt•19h ago•11 comments

Ask HN: What should a stranger know first about your unfinished project?

5•toddy_flogsit•1d ago•6 comments

Ask HN: Is Google Site Search Broken?

2•CM30•1d ago•2 comments

Ask HN: How do you keep secrets out of your AI agents' context?

2•timbowhite•10h ago•3 comments

Tell HN: Some of My Recent Ideas

2•onaclov2000•1d ago•2 comments

Ask HN: Remote island can only have 1 PC, 1 book, 1 programming language

3•kbrannigan•1d ago•9 comments

Fable 5.2 Available in Claude Desktop

3•calgaryeng•1d ago•0 comments

Ask HN: Share your best blog/videos on learning about LLMs in depth

3•mrburton•1d ago•2 comments

Ask HN: Do you have daily voice conversations with AI?

3•rtp4me•1d ago•9 comments

P2P inference using WebGPU libp2p and IPFS

3•gnarbarian•1d ago•1 comments

Ask HN: How your SEO traffic doing? Up or down?

4•bigmuzzy•1d ago•0 comments

Claude usage credits purchased after Dec 7 will expire 12 months after purchase

18•bbg2401•3d ago•10 comments

Ask HN: Will Humans Become Useless?

4•misano•1d ago•16 comments

Those who have lost their job to AI what was your job?

2•dev_grex•1d ago•8 comments

Ask HN: What are your advice for a CS/IT student for the future?

6•L0in•2d ago•20 comments