You built something real with Lovable, Bolt, Replit, Base44, Cursor or v0. People are using it, or you’re about to launch. But every change breaks something else, the AI keeps re-fixing the same bug, and you’re not sure the data is safe. That’s the point where people start searching for “vibe coding cleanup”.
This guide explains what a cleanup actually involves, what moves the price, how fixed-price and hourly work compare, how to choose someone, and when it’s smarter to rebuild.
What vibe coding cleanup is
Vibe coding cleanup means taking an app built mostly by prompting an AI tool and making it safe, stable and maintainable for real users, without throwing away what works.
It isn’t a judgement on the tools. AI builders are good at getting a working product on screen quickly. What they tend to leave behind is the work nobody sees in a demo: access rules on the database, secrets kept out of the browser, payments confirmed by the server, a deploy that matches the preview, and code a person can change without breaking three other screens.
A cleanup sits between “keep prompting” and “start again”. You keep the product, the data and most of the code. An engineer reads it, fixes the causes rather than the symptoms, and hands it back in a state you (and your AI tool) can keep building on.
What a cleanup usually covers
Every app is different, but the work almost always falls into the same buckets. A good provider will tell you which ones apply to your app after reading the code, not before.
Security
- Database access rules. On Supabase-backed apps (common with Lovable and Bolt), the browser talks to the database directly. What protects the data is Row Level Security. Tables with RLS off, or policies that let any signed-in user read everyone’s rows, are a common serious finding. Our vibe-coded app security checklist shows how to test this yourself.
- Secrets in the wrong place. API keys for Stripe, OpenAI or email providers bundled into frontend code, or committed to the repo, need moving server-side and rotating.
- Unprotected server functions. Edge or backend functions that anyone can call without checking who’s calling.
Auth
Login loops, password resets that send people to localhost, roles that only exist in the UI, and sessions that behave differently in preview and production. The Lovable and Base44 guides cover common versions of these.
Data
Tables the AI created and abandoned, duplicate columns that mean the same thing, missing relationships, and data stored somewhere that doesn’t survive a redeploy (see the Replit guide for one example).
Deploy
“Works in preview, broken when published”: missing production secrets, wrong ports, a build that never finishes, a custom domain that won’t connect. See the Bolt and Replit guides for platform-specific causes.
Refactor
This is the part people underestimate. AI tools often patch a bug by piling on more code instead of fixing what caused it. Repeat that enough times and you get 800-line components, three near-identical versions of the same function, and logic nobody can follow. Refactoring here means consolidating that, adding tests around the risky parts (money, permissions, data), and leaving notes, so the next change doesn’t undo the fix.
What drives the cost
Providers who publish prices almost all quote after looking at the code, because the same symptom (“login is broken”) can be a one-line setting or a week of rework. The main drivers:
- What the app handles. Personal data, payments and multiple user roles take the most testing time, and the security work goes deeper.
- How many areas are broken. One deploy issue is quick. Security plus auth plus payments plus a refactor is a project.
- The state of the data model. If the tables are fundamentally wrong, fixes on top of them don’t hold. Changing the structure of a live database with real users is careful, slow work.
- Integrations. Stripe, email, calendars and third-party APIs each need testing in production-like conditions.
- What you want at the end. “Fixed and live” is cheaper than “fixed, live, with tests, CI, monitoring and documentation”.
- The platform. On fully hosted builders, some settings and infrastructure can only be changed by the platform itself, which limits what any cleanup can touch.
What the price usually looks like
Few providers publish prices, and every serious one quotes after looking at the code. Some patterns hold anyway:
- Small, well-defined fixes (one bug, one broken deploy) cost far less than a full cleanup.
- A real cleanup (security, auth, deploy and some refactoring) is project-sized work, and the price scales with scope.
- Audits are often a separate, smaller first step, and some providers fold the review into the quote.
Nobody can price your app from a description. If you get a firm number without anyone looking at the code, be wary (more on that below).
Fixed price vs hourly
Both models are legitimate. They suit different situations.
Fixed price, agreed upfront
- You know the cost before work starts.
- It only works when the scope is clear, which is why fixed-price providers review the code first.
- Good providers say plainly what’s in and out of scope, and what happens if they find something new (usually a written change and a new price for that piece, which you approve or don’t).
- Watch for vague scopes like “fix bugs”. A fixed price on an undefined scope just moves the argument to later.
Hourly
- Flexible, and suits ongoing work or problems nobody can size yet.
- The risk sits with you: if the problem turns out deeper than expected, the bill grows.
- Ask for a cap, regular written updates, and a clear stopping point.
A common pattern is a short paid or free review first, then a fixed price for the defined fixes, then hourly or a monthly plan for ongoing changes if you want them. On inahei.pro, projects are a fixed price, agreed upfront.
How to choose a cleanup provider
Ask these before you hire.
- Will you read the code before quoting? Anyone who quotes a cleanup or a rewrite without looking is guessing.
- What access do you need? The right answer is invites to your GitHub, database and hosting accounts, with the least access needed. Supabase, for example, supports roles like Developer and Read-Only for organisation members (Supabase access control), and Stripe lets you invite team members with specific roles and advises granting “the lowest permission required” (Stripe teams). Never hand over your passwords.
- Who owns the code at the end? You should, in writing, with the repo in your account throughout.
- How will you check the data is actually protected? Look for a hands-on test, such as logging in with one account and trying to open records that belong to another, not “the scanner says it’s fine”.
- What does done look like? A written list of findings, each fix tied to an item, tests or repeatable checks for the risky parts, and handover notes.
- Will you explain what went wrong? If you plan to keep building with AI, you need to know which patterns to avoid prompting back in.
- Do you sign an NDA? Reasonable to ask for if your idea or data is sensitive.
Red flags: asking for passwords or secret keys over chat, wanting the repo moved into their account, a firm price or “rebuild everything” before reading anything, and treating exposed user data as acceptable for an early version.
When a rewrite beats a cleanup
Most AI-built apps are worth cleaning up. The UI, flows and much of the logic usually hold up. But sometimes rebuilding is genuinely cheaper:
- The data model is wrong at the root. If the core tables don’t represent your business correctly, every fix on top fights the structure.
- Nothing is separable. If you can’t change one screen without touching everything, there’s nothing stable to keep.
- The platform is the limit. If you need something your builder can’t support (self-hosting, a specific compliance requirement, a backend it doesn’t offer), staying means working around it forever.
- The app is small and young. If it’s a few screens with little real data, a clean rebuild can cost about the same as untangling it.
- Security issues run through everything, not just a few tables.
A trustworthy engineer will tell you which parts to keep, which to fix and which to rebuild, and why, after looking. Be cautious of anyone whose first answer, before reading the code, is a full rewrite.
Who does vibe coding cleanup
You’ll find three broad options:
- Specialist cleanup studios. Clear packages, sometimes published prices.
- Freelance engineers. Can be excellent for a well-defined problem. Quality varies most here, so the questions above matter most.
- Matching services that pair you with a vetted engineer for your stack.
inahei.pro is in the last group. Vetted senior engineers review and fix AI-built apps, it’s a fixed price, agreed upfront, experts sign NDAs, and access is through scoped tokens and collaborator invites, never shared passwords. Engineers also show you what went wrong, so the fix doesn’t get prompted away again. If your app was built with a specific tool, the matching pages are a good starting point: Lovable, Bolt, Replit, Base44, Cursor and v0, or start from the homepage.
Comments