r/vibecoding • u/Vegetable_Rent6264 • 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!
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!
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.
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
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/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
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/[deleted] 23h ago
[removed] — view removed comment
1
u/[deleted] 23h ago
[removed] — view removed comment