Back to Coding

What Should You Never Vibe Code?

What Should You Never Vibe Code?
AI Tutorials Team 6 May 2026

Most of this subject is about trade-offs. This part is not: there is a short list of things where accepting unread code is a mistake regardless of how quickly you needed it, because the consequences fall on somebody other than you.

What is on the list?

  • Authentication and authorisation. Who can see what.
  • Anything handling payments. Or financial records.
  • Anything storing personal data. Particularly sensitive categories.
  • Destructive operations. Deleting, overwriting, bulk changes.
  • Anything running unattended. Scheduled jobs, automated processes.
  • Regulated work. Where somebody has a professional obligation.

The list is short deliberately. A rule covering everything gets ignored, where a rule covering six categories is memorable and can be applied honestly in the moment somebody is tempted to skip it.

What do these have in common?

The failure is not recoverable by you noticing. A broken interface is visible; a permission check that was never written is invisible until somebody reaches data they should not have, and by then it has happened.

Input validation belongs alongside it, since anything reaching a database or a command from a user is a boundary that has to be deliberately defended.

Why is authorisation the clearest case?

Because it is the most common serious flaw in small applications and it is invisible in testing. Generated code implements the path where somebody accesses their own records; whether somebody can access another person's by changing an identifier is a separate check that has to be deliberately requested.

You cannot notice its absence by using the application normally.

Why does unattended matter?

Because nobody is watching when it goes wrong. A script you run manually fails in front of you; the same script on a schedule fails at three in the morning, possibly repeatedly, and the first sign is the consequence rather than the error.

What about destructive operations?

The one category where a single unread line has permanent consequences. A generated deletion that matched more than intended cannot be undone by reverting the code, and this is worth reading regardless of how trivial the script seems.

Does this mean writing it by hand?

No. Generate it and read it, which is a different practice rather than a slower one. Most of this material is conventional enough that generation is genuinely helpful; the requirement is that somebody who understands it has looked.

Before I accept this: explain what it does line by line, and specifically what data it can reach, what it can modify, and who is permitted to trigger it.

What about a personal project with no users?

The destructive and unattended categories still apply, since both can lose your own data. The others matter less until somebody else is involved, and somebody else has a habit of becoming involved later.

What about code that talks to an AI model?

Worth adding to the list, for reasons of cost rather than safety. Anything calling a metered service in a loop can produce a bill out of proportion to what it does, and a generated implementation has no reason to include a limit unless asked.

The other consideration is what gets sent. Code that forwards user input to a model provider is sharing data with a third party, which is a decision worth making deliberately rather than discovering in a review. Both are visible in a few lines and neither is visible from using the application.

What is the underlying rule?

Read anything whose failure would be invisible or permanent. That is a shorter list than reading everything and it covers the cases where the trade stops being a trade and becomes an unexamined risk.