# "Better Than Vibe Coding Agile AI Driven Development for Complex Apps"
<!--
ref: @content/youtube/bmad-code/2025-04-07-better-than-vibe-coding-agile-ai-driven-developmen
triggers: [agents produce unmaintainable code, frequent rework cycles, lack of test coverage, ambiguous task definitions]
trigger_prompt: When the development process is bogged down by unclear requirements, frequent agent errors, or excessive credit usage, consider implementing this structured approach to Agile AI-driven development.
version: 4
updated_at: 2026-10-31T18:25:39.233Z
-->

From BMad Code, 2025-04-07: Vibe coding is fun for toy projects but collapses on serious work — agents loop on fix-one-break-another cycles and burn through credits.

Brian, founder of BM Mad Code with 20+ years in software development across startups and enterprises, presents his "Breakthrough Method for Agile AI-Driven Development."

## Core Thesis
Vibe coding is fun for toy projects but collapses on serious work — agents loop on fix-one-break-another cycles and burn through credits. The fix is to map traditional agile roles (BA → PM → Architect → PO → Scrum Master → Developer) onto distinct AI personas, doing all planning, research, and decomposition *outside* the coding IDE so that by the time agents touch code, every story is self-contained, unambiguous, and test-backed.

## Key Insights
- **Vibe coding doesn't scale.** Ad-hoc AI coding produces unmaintainable messes; agents eventually go off the rails.
- **Upfront planning is the cost-saver.** A locked architecture spec prevents agent rework that drains Cursor credits.
- **Multi-persona pipeline.** BA refines the idea via Q&A → PM produces a PRD using deep-research modes (OpenAI/Gemini) → Architect locks all technical decisions (languages, libs, schemas, infra, deployment, security).
- **Granularity is the unlock.** Each story must carry enough embedded context (data models, file locations, dependencies) that a developer agent can complete it in a fresh chat thread with no cross-referencing.
- **Cost externalization.** PRD, architecture, task list, and epics/stories are generated outside Cursor in cheaper LLMs; Cursor is reserved for actual code execution.
- **Test coverage is non-negotiable.** Target 80–90% coverage so accumulated stories don't regress prior work.
- **Vibe-then-rigor.** Ideation can stay loose and exploratory with AI as a thought partner; execution must be disciplined and ground-up.
- **Works for greenfield and brownfield**, scaling from a simple to-do app to multi-service SaaS with multiple frontends and mobile apps.

## Actionable Takeaways
1. **Don't open the IDE first.** Start with a BA persona conversation in advanced thinking mode to refine the raw idea.
2. **Demand a PRD explicitly** from the PM persona, using deep-research LLM modes for competitive/technical reconnaissance.
3. **Force the architect to lock all technical decisions upfront** — languages, libraries, pages/transitions, security, infra, deployment, DB schemas, data models — so coding agents have no ambiguity.
4. **Have the PO agent produce a granular, sequenced task list** including manual steps (account setup, env vars, secrets) and flag which steps are human vs. agent.
5. **Have the Scrum Master agent decompose into epics and stories**, where each story is a context-complete unit of work.
6. **Lead with enabler stories** (e.g., Vercel/Supabase setup, secret management) before feature stories.
7. **Convert all docs to Markdown** and drop them in an `AI/` folder before opening Cursor.
8. **Run a per-story loop**: new chat thread → implement → run tests → push if green, correct until green if not.
9. **Target 80–90% test coverage** continuously as stories stack.
10. **Separate ideation from build.** Vibe with AI on ideas; switch to the rigid pipeline for execution.

## Notable Quotes
> "Eventually, it's going to go off the rails."

> "Next thing you know you've used up all of your cursor credits for a month and a day or two."

> "This is a breakthrough method and I call it agile AI-driven development."

> "Each story is granular. So our developer agent can pick it up and implement it without having to look at other resources unless it needs to."

> "All of this we can be doing outside of cursor, saving a ton of money."

> "You're not vibe coding, but you are having fun. You are vibing with the AI to riff on your project ideas."

> "This is the way if you want to build anything from a very simple to-do app to a very complex SAS application."

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*