Do you ever feel like you are losing control over your AI-built app? Most symptoms show up early and are relatively easy to fix. We’ll walk you through 7 common symptoms and solutions for them.
If you run an AI-built app made with Cursor, Claude Code, Codex, or Lovable, losing control usually doesn’t happen overnight. It starts with small signs you can catch early.
For context, let’s first illustrate with an example from our own work. At Evil Martians, a designer “vibe-coded” the first version of [Harmonizer](https://evilmartians.com/chronicles/why-your-vibe-coded-project-needs-a-developer), our accessible color-palette generator. This implementation proved the idea was viable, but as it grew, the interface became laggy and unresponsive, and prompting the agent to speed it up didn’t help.
Our engineer found the cause in the architecture. In this case, the logic and the UI were entangled, so every hover re-rendered the whole grid, and recalculating a 10×6 palette took 200 ms. He moved the logic out of components into signal-based stores and a web worker, and the palette ran at 60 fps.
#
In this case, pages that loaded instantly for your first users are now making people wait. This means your database bill can begin to grow faster than your user count.
Likewise, AI features that felt quick in the investor demo time out when many people use them at once. Everything works when you click through it, but users hit errors in flows you never tried (an account with years of data, two people editing the same record at once, a slow mobile connection).
Why? This issue crops up because AI-generated code is usually tested by one person, on a fast connection, with a handful of sample records, and problems hidden at that size can show up with real data (a page that asks the database for every item in a list one by one, or a search through a big table with no index). In this context, the database works harder on every request, so the bill grows faster than your traffic.
AI features fail the same way because each request goes straight to the model, with no caching or limits, which works for one person in a demo but not for a hundred at once.
The cost: This is the “prototype won’t survive real traffic” fear, and it also raises its burn rate. The default fix for an unindexed query is a bigger database instance, so you pay every month for a missing one-line migration.
For AI features, uncached and unbatched model calls turn a latency problem into a gross-margin problem. And every error a new user hits is a support ticket at best, and a user who never comes back at worst. Do now:
- Baseline before necessary. Set upLighthouse CI with budgets on key pages, and addSentry orOpenTelemetry on the backend to see the errors users hit, before the reports. (Without a baseline, “it got slow” can’t be measured or fixed.)
- Catch N+1s in tests. Pages that ask the database for items one by one (called N+1 queries) can be caught automatically. Evil Martians’n_plus_one_control fails a test when the number of database queries on a page grows with the number of records. For Rails,Prosopite also helps.
- Load-test the paths that make money. These include signup, onboarding, checkout, and the API endpoint your biggest customer hits hardest. We recommendk6 for this. Do before the launch, not after.
#
Fix bug A, bug B appears. Fix B, and A is back, and some new degradation is introduced. With every round, the code gets more complex to satisfy the AI reviewers, and a single fix ends up 1,000 lines bigger than it started.
Why? Agents tend to hide symptoms instead of finding the cause. GitClear’s AI Code Quality research shows error-masking code (catch blocks, safe-navigation operators, stubbed methods) is up 47%.
And the longer a debugging session runs, the worse the model gets at it.
For example, Chroma’s “context rot” research tested 18 models and found that performance degrades as input length grows, even on basic tasks, and every failed fix attempt adds more to the context. Do now:
- Reproduce first. Ask the agent for a failing test that captures the bugbefore it touches the fix. (If it can’t write one, it doesn’t understand the bug.)
- Then, ask for the root cause. Have the agent explain what’s actually causing the bug and why its fix addresses that cause, rather than the symptom. If the explanation changes from one attempt to the next, the agent is guessing.
- After a few failed fix attempts, stop prompting. Revert to the last known good commit and start a fresh session with a short, specific brief.
- Escalate by blast radius. Bugs that cross auth, payments, concurrency, or data migrations need to go to a human. That’s where “almost right ” costsreal money.
#
One might assume Lovable or Supabase handles security because they’re well-funded companies with security teams. Nevertheless, in November 2026, Cybernews reported that thousands of apps built with Lovable, which stores app data in Supabase by default, showed database records to anyone who opened them, no login needed. The leaks included passport numbers, payment details, and more than 200,000 private chat messages.
In fact, nobody hacked Lovable or Supabase. Rather, those apps had no rules saying who could read which rows.
Moltbook, a viral social network for AI agents, had the same problem earlier in 2026. As TechRadar reported, its Supabase key sat in the site’s JavaScript with no access rules behind it, exposing about 1.5 million API keys and tens of thousands of email addresses.
The cost: If you sell enterprise-first or you’re moving upmarket, the security questionnaire is the first gate to the deal. Buyers will ask about SOC 2 Type II, SSO, and audit logs. “An agent added SSO to our auth code in an afternoon” is a story a chief information security officer will want to see the review trail for. So, if you run a developer-first API business, a leaked key means someone else spends your inference budget and your rate limits.
Do now:
- Treat the anon key as public. Run Supabase’s Security Advisor to catch tables without RLS (row-level security). Then addpgTAP tests (as Supabase’s guide recommends) that run in CI against a local database: one as an anonymous user, one as user A trying to read user B’s rows.
- Scan the build output. Run
gitleaks dir, from the open-source secret scannergitleaks , on your build folder in CI to catch keys that ended up in the JavaScript you ship, and run gitleaks in a pre-commit hook for the source. - Gate the dangerous surfaces. List auth, payments, file uploads, database migrations, infrastructure, and anything touching personally identifiable information in a
CODEOWNERSfile, so no change there merges without a named reviewer’s approval.
nobody really understands them #
Greptile rates the change 5/5, CI is green, so you approve a 20,000-line diff called “Add team billing.” By now, it’s becoming apparent that agents open PRs faster than anyone can read them.
Why? Review can’t keep up with how much code agents write, so people …just stop reading. Invariably, review itself becomes the bottleneck, and the cheapest way around a bottleneck like this is to stop looking.
In a 2026 survey sponsored by CodeRabbit, seven in ten engineers said they approve AI-generated code they don’t fully understand, and 11% said they mostly check that it runs and passes tests. Nearly half of teams (47%) let the same AI agent that wrote the code review it.
The cost: Every PR nobody understood may hide a bug, security hole, or slowdown. You’ll find these later, in production and in front of customers. And when something breaks, nobody on the team can explain the change that caused it, so the fix takes longer than the review would have in the first place.
Do now:
- Review decisions first. Give your agents a skill for writing PR descriptions, so the description isn’t slop nobody reads, but a short, readable list of the decisions the change makes, with the important ones highlighted.
- Acceptance criteria before the prompt. Write testable statements for each task in the issue: “An anonymous request to
/api/projectsreturns 401.” The agent’s job is to make them true, with tests. Your review shifts from reading code to checking claims. - Cap PR size. Set a size limit for pull requests, excluding lockfiles, put it in your agents’ rules file, and enforce it with a CI check. Bigger work gets merged in parts: the larger a change, the harder it is to merge safely. Agents split work willingly when told to.
#
Let’s imagine something from a real project, like when a user clicks “Invite teammate.” Then, try to answer some questions:
- What happens next?
- Which parts of the app get involved?
- What gets written to the database?
- What other services get called?
If you can’t explain things like this in a couple of minutes, you’ve lost track of your architecture. Why? Agents build the new thing beside the old thing instead of changing what’s already there, and nobody writes down why. You end up with a prototype that’s already serving customers, where nobody can tell you which parts were decisions and which were guesses. The code works, but the reasons behind it are gone, so every new change is built on guesses too.
The cost: Agents get less efficient over time. Without a clear structure, every session reads more code, guesses more, and adds another layer on top. Onboarding gets harder, too: a new engineer is more likely to break things, because past decisions aren’t written down anywhere. And many problems from the other signs start here: slow pages, possible security holes, and the same logic written five times are often symptoms of an architecture nobody designed.
Do now:
- Make a one-page
ARCHITECTURE.md. In clude the main flows, module boundaries, where state lives, and what may call what. Have an agent draft it from the code, then have your engineers correct it. Their corrections should show exactly where the team’s picture of the app and the code have drifted apart. - Enforce boundaries mechanically. Usedependency-cruiser oreslint-plugin-boundaries for TypeScript,Packwerk for Rails,
internal/packages in Go. For example, if server code should never end up in the browser, set up a check that fails the build when it does, instead of only writing it in a rules file. - Make architecture changes a senior engineer’s call. Agents can propose changes, but a new layer, a new service, a new state library, or moving logic between the browser and the server needs a senior engineer’s approval before any agent builds it.
#
Say you use Cursor in your editor, Claude Code in the terminal, Codex for background tasks, and Copilot to review pull requests. But then you notice that one of them writes async/await while another chains .then(). One knows you’ve switched from Prisma to Drizzle, and another keeps writing Prisma code.
You wrote a rules file once, but only one of the four tools actually reads it.
Why? Each tool came with its own instruction file: .cursor/rules/, CLAUDE.md, .github/copilot-instructions.md. Most agents now also read AGENTS.md. Claude Code does too, but only when the project has no CLAUDE.md, so an old CLAUDE.md sneakily wins over your up-to-date rules.
Do now:
- Have one source of truth. Keep all your rules in
AGENTS.mdat the repo root, and let other tool files point only to it. If you need Claude-specific instructions, keepCLAUDE.mdto an@AGENTS.mdimport, plus the few lines that truly differ. - Link files instead of copying them. Each agent has its own default folders for rules, memories, and skills, such as
.cursor/rules,~/.claude/skills, or~/.codex/skills. Instead of copy-pasting files between them, use symlinks or a single source file that your tool configs point to, so every update reaches every agent. - Keep it short and testable. If you have a rules file that runs to thousands of lines, nobody will follow it, including the model. Instead, stick to your stack, the commands that must pass before a commit, the boundaries agents must not cross, and your definition of “done”.
#
Do new features make the app slower? Imagine on a phone, the first screen takes seconds to appear, buttons don’t respond until the page finishes , and every move to another page means another wait while more JavaScript downloads. Nothing’s broken, but the app feels cheap.
Ask the agent to “make it load faster,” and it adds a -animation library, a prefetching library, and a caching layer: three more dependencies, and the bundle grows again.
Why? The slowness usually has no single cause. Instead, it’s due to dozens of reasonable additions (a new package here, a helper there, a library for a beyond-the-edges edge case). A lot of that slowness comes from bloat; every extra package and duplicate helper is JavaScript the browser has to download, parse, and run on the same thread that handles clicks and typing.
The real fix is often removing code or restructuring it, but agents default to adding more.
The cost: Users judge quality by how an app feels, long before they notice what it does. A product that keeps people waiting feels unreliable, and that hurts trust, retention, and conversion.
The Google-commissioned Deloitte study Milliseconds Make Millions found that making a mobile site 0.1 seconds faster lifted retail conversion by 8.4%.
Do now:
- Make bundle size a required check. Evil Martians’Size Limit runs in CI, comments on every pull request with the size change, and fails when the bundle goes over your limit. If you mark it as required, a PR that bloats the bundle can’t be merged.
- Question big fixes to small problems. If an agent’s fix for “make it load faster ” or a minor review comment adds hundreds of lines, stop and check whether a real user will ever need them, and whether a small change could do the job instead.
- Make deleting code part of CI. AI agents add code far more readily than removing it, so runknip to catch files, exports, and useless dependencies. Runjscpd to catch copy-paste, with a stricter threshold for repeated business logic than for repeated markup.
- Give agents a cleanup skill. Theanti-slop skills from Evil Martians set up these checks in TypeScript and React repos one pull request at a time, starting with warnings and adding the CI gate last.
#
Every sign above is associated with things you can do right now.
But when your guardrails flag a problem, someone has to understand it, decide whether it’s too risky to leave to the agent, and fix it.
So, when the signs start piling up, look at your team. Level up the people you have, and bring in someone who understands the system your agents are building. Agents should make good engineers much faster engineers.
If you’re not an engineer yourself, and your startup has already proven its idea, that’s the moment to hire a team with the right skills to keep it running. That’s where our fixing AI-built apps service comes in!