AI anti-patterns: vibe coding, prompt-and-pray and agent sprawl

The new failure modes of AI-assisted development, and the habits that prevent them.

Key takeaways

  • Generating code is cheap; understanding and verifying it is the real work.
  • Unreviewed AI output at scale multiplies tech debt and security risk.
  • Agents need boundaries: permissions, budgets and human checkpoints.

AI tools brought new superpowers and a new set of anti-patterns. Most share one root cause: treating generated output as finished work.

Vibe coding to prodPromptAccept allShipfast today, incidents tomorrowVerified AI codingSpecGenerateTestReviewShipslightly slower, far safer
The difference between vibe coding and verified AI coding is a few cheap steps.

#Vibe coding to production

Prompt, accept everything, ship. It works for prototypes and weekend projects. In production it creates code nobody understands, with hidden bugs and security issues.

  • Fix: prototypes can be vibe-coded; production code goes through specs, tests and quality gates.

#Prompt-and-pray

Vague prompts, then repeatedly regenerating until something looks right, without understanding why.

#The PR flood

AI makes it easy to open huge pull requests. Reviewers can't keep up, so they skim and approve.

  • Fix: strict PR size limits, stacked PRs, and the rule: "the author must be able to explain every line".

#Context dumping

Pasting the entire codebase or a 50-page document into the prompt and hoping for the best. Quality drops and costs rise.

  • Fix: curate context: the relevant files, the spec, and the conventions. Use retrieval for large knowledge bases.

#Stale context

Outdated specs and docs that the AI faithfully follows, producing code that matches last year's design.

  • Fix: treat specs and architecture notes as living documents, updated in the same PR as the code.

#Agent sprawl

Agents everywhere, each with broad permissions, no logs and no owner.

  • Fix: an owner per agent, least-privilege credentials, audit logs, spending limits and human approval for irreversible actions.

#Hallucination trust

Believing AI-invented APIs, configuration flags or packages because they sound plausible.

  • Fix: verify against docs, run the code, and use type checks and allow-listed registries.

#Skill atrophy

Engineers who stop understanding their own systems because "the AI handles it". During an incident at 3 a.m., that's a crisis.

  • Fix: rotate deep-dive work, review AI output critically, and use AI to explain things, not just to generate them.

#AI as a performance metric

Measuring engineers by "lines of AI code accepted" or "% AI usage". It rewards exactly the wrong behavior.

  • Fix: measure outcomes: lead time, change failure rate, customer impact. See Metrics that matter.

Remember: AI doesn't remove engineering discipline. It makes discipline more valuable.

Keep reading

Anti-patterns

Code anti-patterns: God objects, spaghetti and golden hammers

The most common code-level anti-patterns, how to recognize them and how to refactor your way out.

Anti-patterns

Architecture anti-patterns: distributed monoliths and big balls of mud

The structural mistakes that make systems slow to change and painful to run, and how to recover.

Anti-patterns

Process anti-patterns: death marches, feature factories and hero culture

The team and process traps that quietly destroy productivity and morale, and what healthy teams do instead.