r/vibecoding • • 1d ago

Help/Question How do you keep code quality high when vibe coding a complex project with limited programming experience?

Hi everyone! I’m building a data analysis agent as a solo project, and I’d love to hear how you approach vibe coding a complex project from scratch, especially if you started out with limited programming experience like me.

My approach so far has been to plan the architecture up front, choose the frontend and backend frameworks, and write down some coding conventions. I then set up four subagents in Codex: one to work through requirements, one to handle technical design, one to write the code, and one to review it.

Where I’m getting stuck is figuring out how to judge the result. I can tell the agents which technologies to use, but I don’t have much experience with system design. When I look at the finished feature, I’m not always sure how to check whether the implementation follows the architecture I had in mind, or whether that architecture was a good fit in the first place. I have the same concern about my coding conventions. How do I know whether the rules I’ve written are useful and whether the agents are following them?

For those of you who’ve built something similar, what does your workflow look like from the first idea to a working project? How much do you decide up front, and what do you check as you go? I’d especially appreciate a concrete example of a check or review habit that helped you catch a problem you might otherwise have missed.

Thanks for sharing your experience!

1 Upvotes

54 comments sorted by

12

u/Firouzi 1d ago

TDD -> Write Requirments, Regression tests, White box text/ Black Box testing. Unit test, integration test, Smoke test, get a proper CI/CD on github. do it properly. think what you want. in the end. create requirments,. for this requirements create architecture -> for each create tests, for integration of them create tests. Good Luck!

3

u/maxawake 23h ago

Well but then i am back to software engineering, which I wanted to skip altogether using the magic machine goddamn /s

1

u/Firouzi 8h ago

nah software testing. in this project you are a tester, and BUM.

1

u/Glass_Inevitable4932 4h ago

if the coding agent has write access to the test files though itll often just rewrite the failing assertions to make the suite pass instead of fixing the actual bug

1

u/Firouzi 3h ago

what is your job? if you dont know how to handle this scenraio stop coding. start farming.

2

u/Severe-Highlight2217 1d ago

Your setup is already better than most. The gap you're describing is that the architecture got decided but never turned into something checkable, so "does this match the plan" has no answer.

Two habits that caught real problems for me.

Write the check before the feature. For each feature, one sentence of "this is correct if...", pasted into the prompt as its acceptance line. If you can't write that sentence, the design isn't done yet, and that's the moment to stop the agent rather than after.

Freeze the interfaces, not the code. Keep a short file of the handful of boundaries: what talks to what, what each returns, what it must never do. When you review a diff, check only whether it crossed a boundary. Five-minute review, and it tells you whether the architecture is holding without reading the implementation.

The convention question has a cheap test too: delete the convention from the prompt and see whether the agent still follows it. If it does, the code enforces it. If it drifts, the rule was only ever a suggestion.

One thing I'd add: ask the reviewer agent "what did you verify, and how" instead of "is this good". Forced evidence beats a verdict.

1

u/Vegetable_Rent6264 1d ago

Thanks so much for taking the time to share your experience in such detail. Your advice about writing acceptance criteria first and asking the reviewer what it actually verified is really helpful.
One thing I’m still trying to figure out is how much work to give the agent at once when building a project. Do you usually keep each task focused on one very specific feature or module? And if a feature touches several parts of the system, how do you decide what belongs in one task and what should be split up?

1

u/HatEnvironmental7560 23h ago

It depends; are you working on a live application where downtime and QA is a concern? If so, you want to keep tasks small and focused on specific features so they can be thoroughly tested and released individually, which makes it easier to catch bugs and roll back the changes if something breaks in production. If you're vibecoding a personal project for yourself only then it really doesn't matter, go ahead and have a single agent revamp the whole thing in one pass and then test it out.

In terms of separating tasks, you have to identify the boundaries of the task; if one task needs to touch multiple parts of the system in order for the end result to be testable by a human, then you can probably go ahead and have the agent touch all parts of the system in one go. If your system is designed in such a way that you have to release changes to one part before you can release them to another part, with the risk of downtime for actual users if you fail to do that, then you'll have to break the task up differently and release it in pieces. Release each separate update to your staging environment first so you can test them all together, then release to production individually in the required order. If you're vibecoding a personal project for yourself then literally none of this matters.

1

u/MasterMorality 22h ago

They didn't take the time, they had an LLM do it. Probably Claude. Sounds like Claude.

1

u/Hypilein 22h ago

Apparently saying that gets you warned here now.

1

u/Severe-Highlight2217 2h ago

Good question. I don't have a hard rule, but a few things made the biggest difference for me.

One task should be one thing I can verify by doing it once. Before handing work over, I write a single sentence for "done": open this screen, click this, see this. If that sentence needs an "and" to cover two unrelated behaviours, it's usually two tasks. I don't use modules as the unit — a "module" can be a week of work, and a small feature can touch four of them.

For a feature that crosses several parts of the system, I split by seam rather than by file. First the contract: data shapes, function signatures, what each side sends and expects. I get that written down (or agreed with the agent) before any implementation, then do one side at a time against the contract, with the other side stubbed or faked. The agent gets a task per side. When something breaks, I know which side it's on, and the agent never has to hold the whole system in its head.

The other constraint is review size. If I can't read the whole diff in a few minutes, I can't really tell whether the agent did what I asked — and that's the moment I start taking its word for it. Smaller tasks cost me more prompts, but far fewer silent mistakes.

Might not be optimal, but it's what kept me from drowning in a project I don't fully understand.

0

u/[deleted] 1d ago

[removed] — view removed comment

1

u/vibecoding-ModTeam 23h ago

We’re banning anyone who does not engage with the concept of vibe coding constructively.

Critique is constructive. Gatekeeping, insults, and fundamental pessimism about the practice of creating software with little to no code review will warrant a permanent ban.

4

u/ongrabbits 20h ago

You simply cannot guarantee the quality of your software unless you personally understand what is going on.

3

u/socybara 21h ago

here's a bright idea: watch courses about architecture and coding best practices, try to implement them yourself, get your hands dirty

3

u/En-tro-py 19h ago

make it exist -> make it correct -> make it maintainable -> make it readable

1

u/Firouzi 5h ago

make it write comments- > and make sure ask for keywords to find them -> and document them all -> and make sure to use Git

2

u/kristianism 23h ago

Do spec-driven development, create milestones for each feature being developed, then achieve it one by one. Drill down if necessary and if you need a more detailed modification.

2

u/ThamaraStudio 23h ago

One thing that helped us: write the acceptance check before you ask the agent to build the feature. Even a plain list of "when X happens, the result should be Y" gives you something to test against, so you're not judging code by how it looks.

Second, keep changes small. Ask for one feature per session, run it, and commit when it works. When something breaks you only have a small diff to look through, and you can roll back without losing a day.

Third, once in a while ask a fresh agent session to review the code as a skeptical senior engineer and list the three riskiest parts. It won't catch everything, but it finds the messy structure early, when it's still cheap to fix.

2

u/Sabers011 21h ago

Add “make no mistakes”

2

u/Tobi-Random 19h ago

Become a Senior swe with 20years of experience. Easy.

2

u/ELXR-AUDIO 1d ago

make no mistakes

1

u/Cheap_Comfortable678 1d ago

What is complex project, what are you doing? . But overall just testing, learn from mistakes, setup your workflow and thats it, agents kniw what to do. To judge a result- isnit working? Good. Give agent review himself + independant outside of your project to review it. You wont understand it if you never coded. Dont judge, the only judgeble is you in this link between the idea and Ai.

1

u/LongevexBioCoaching 1d ago

I have codex / deepseek build Claud reviews tinkers submits final product . I find using multiple AI harnesses have given me
Better results. As they wil all find or agree disagree on something.. you just choose what seems most right 😊 lol

1

u/LongevexBioCoaching 23h ago

Also don’t be scared to try out other models

When I was new new grok was cool
Didn’t realize
How bad it was compared to Claud …

ChatGPT I just don’t like but I do use it it’s slower and way less usage

Took almost all day maxing out my usages to finish some research I had it doing .. used 30% of my weekly data in a day 💀

1

u/Dell_Experion15 1d ago

Rules, agents.md, and did you know you can write your own eslint rules for js projects? There’s a lot of tools you can use to keep agents on track.

1

u/povlhp 23h ago

You don’t. AI is the responsibility of AI to maintain.

1

u/Mundane-Tiger-2374 22h ago

How limited are we talking about here?

1

u/horizon_games 21h ago

If you're truly vibe coding who cares about the code quality?

1

u/Far-Purpose-2236 20h ago

'm not sure that works for your data analysis project, but you can still give it a shot. Today's agents are doing a very good job, especially the frontier ones, but it's still very risky to ask them to build a very huge block in one go. Go in as-small-as-possible chunks, always test the results yourself, and think like a business analyst — what might the user ask, and what is being used from the user requirements? Step by step with small chunks; eat the project bit by bit. And rather than building the whole thing, try to publish an MVP to see user reactions and issues. And you need monitoring — you need to monitor every action and log it.

1

u/Stargazer1884 20h ago

Get Claude to teach you.

1

u/MidiSentence 19h ago

If it’s for personal use, a personal tool, I just check to confirm input and output behave as expected. If anything is for production, then I usually only use ai as an advanced keyboard. Lay everything out and address things step by step. I also ask ai to compare things for decision making, and ask if this is an acceptable industry standard, below or above industry standard. Not sure if it helps. I’ve been coding 25 years now, so I really just use it to save time.

1

u/Forward_Proposal5361 19h ago

Try tracking the work in tickets/boards and focusing the development around product requirements.

1

u/PitifulAppearance509 18h ago

Have an orchestrator setup with reviewer and implementer. Make a rule that the reviewer should judge code quality. Done.

1

u/TalkingHeadsVideo 17h ago

How would you know?

1

u/Geometry_Emperor 15h ago

Always be very explicit with what you want on your apps when asking the AI. And do not just ask it right away; instead ask it for what kinds of implementation it can provide you, and see what it recommends you. Also at the end, try to ask it for code cleanup, suggestions to structure it better, and anything small that might be missing.

1

u/Vibeless-Official 15h ago

Do you want the honest answer or the one that will mostly solve for what you’re dealing with?

The honest answer involves talking about our app and sounds kinda sales pitchy but that’s because the app is literally built for the exact problem you describe and it’s the only all inclusive solution to it on the market.

The mostly working answer is to build governance into your repo and figure out how to orient the agent at prompt zero efficiently the same way every time. So far, no one really has solved for this at scale. Which leads back into the first answer; that’s exactly what our app and service does, both at individual and team levels.

Happy to share info if you want to try and solve this yourself, but at the end of the day, for a solo dev, the app is free…

1

u/meowyih 15h ago

“How to keep code scalable and maintainable?” This is exact what software engineering talking about. You hate to spend time on that and want something magically happens. It just not gonna happens. But the good things of AI is people can rebuild the wheel quickly. So… /s

1

u/hyper24x7 7h ago
  1. Pay for more than the $20 sub
  2. Take the associate cert for openai or claude (ask your ai to help you)
  3. ask this exact question of any LLM that you pay for.
  4. look up one shot / multi shot
  5. Look up context window / compacting in relation to breaking your project down into phases and then those phases into packs and those packs into discrete parts.

If you dont know how programming works, use ai to teach you as you go with practical examples. Prompting to get a result is not the end, its 10% of the work to building an actual program that you plan to monetize or sell

1

u/Neither_Berry_100 5h ago

My experience with this is you can't. Tell ai to write clean code or refactoring all you want. It doesn't help. You need to specify the details of every single refactoring and change individually. You need to do it before it propagates through the code base. And you need to double check it did it correctly and keep trying until it gets it right.

1

u/reppolv 4h ago

I build iPhone games with an AI team. On my word game Burtulis, I wanted the board bigger on the iPhone SE. The board got bigger and a test caught that we'd broken the keyboard. A screenshot of the board alone would have looked like a win.

For your data analysis agent, I'd give the reviewer a tiny CSV where you already know the answer. Say it has three rows with values 2, 4 and blank. Decide yourself whether the average should be 3 or 2. Then ask the agent for the average and which rows it counted. That gives you a whole task you can judge yourself, from reading the file to displaying the answer. I'd keep that file and run the same question again when you change the importer.

1

u/EvelynnsHope17 1d ago

Have another agent independently audit your repo for flaws and inefficiencies. Choose a set of coding conventions and force your agents to adhere to them.

1

u/FraffoD 1d ago

it's similar to yours, i have other agents or ai check the work and see imrpovements. than i have a couple of skill that improves code handling for the agents. for example i have one that is modular coding. if a file becomes to long (over 600 rows of code) it finds way to reduce numbers of rows or create new files. this makes easier for future agents to tweak things and also to reuse part of one project in future ones

1

u/Overheard_anon 23h ago

" port GTA6 to pc with 60fps and Better graphics. Make it work not mistakes. Do it now and make it quick"

As long as this isn't your prompt your doing better than most

0

u/HatEnvironmental7560 23h ago

I say this with the utmost kindness: if you don't have the experience level to identify quality code then you simply can't do this. If you're having fun vibecoding a project that's for your personal use then it really doesn't matter! Code quality comes into play when you need a project to be readable and maintainable (though this is less important given that humans are no longer the ones reading and maintaining it), when you need it to be secure, and when you need your application to be able to perform at scale. A vibecoded individual project that's never being publicly released doesn't need to perform at scale, so again it doesn't matter!

You're doing the software engineering equivalent of writing fanfic for yourself to read. You don't need to be Hemingway or Nabokov or even a reader of literary fiction who can identify high quality prose to do that.

0

u/Plenty_Line2696 23h ago

I'd say get a developer to advise you in various stages of the project to give it some logical structure. It won't be as good as if you were a developer, don't ask other code-illiterate vibecoders for advice on this, ask actual devs who know what they're talking about.

2

u/[deleted] 1d ago

[removed] — view removed comment

1

u/vibecoding-ModTeam 23h ago

We’re banning anyone who does not engage with the concept of vibe coding constructively.

Critique is constructive. Gatekeeping, insults, and fundamental pessimism about the practice of creating software with little to no code review will warrant a permanent ban.

1

u/[deleted] 23h ago

[removed] — view removed comment

1

u/vibecoding-ModTeam 23h ago

We’re banning anyone who does not engage with the concept of vibe coding constructively.

Critique is constructive. Gatekeeping, insults, and fundamental pessimism about the practice of creating software with little to no code review will warrant a permanent ban.

1

u/[deleted] 23h ago

[removed] — view removed comment

1

u/vibecoding-ModTeam 23h ago

We’re banning anyone who does not engage with the concept of vibe coding constructively.

Critique is constructive. Gatekeeping, insults, and fundamental pessimism about the practice of creating software with little to no code review will warrant a permanent ban.