# "BMad Method V4: Complete Step-by-Step Install, Upgrade and Execution"
<!--
ref: @content/youtube/bmad-code/2025-06-20-bmad-method-v4-complete-step-by-step-install-upgra
triggers: [need to install BMAD V4, upgrading from an earlier version, execute AI-driven development]
trigger_prompt: When a developer seeks to implement or upgrade to the latest version of the BMAD Method for their AI projects.
version: 4
updated_at: 2026-10-31T21:05:45.724Z
-->

BMad Method (BMad Code, 2025-06-20): V4 of the BMad Method collapses the previous multi-file agent setup into single self-contained web bundles and ships a Node-based installer (`npx bmad-method install` or `npm run install:bmad`) that handles both fresh installs and non-breaking upgrades, including V3-to-V4…

*Synthesized from BMad Code on BMad Code, 2025-06-20.*

BMad Code is the creator and maintainer of the BMad Method, an agentic project planning and development framework, walking through the V4 release with its new Node-based installer, V3-to-V4 upgrade path, and IDE agent setup.

## Core Thesis
V4 of the BMad Method collapses the previous multi-file agent setup into single self-contained web bundles and ships a Node-based installer (`npx bmad-method install` or `npm run install:bmad`) that handles both fresh installs and non-breaking upgrades, including V3-to-V4 migration with automatic backups. The method's core discipline is unchanged: a Scrum Master agent drafts highly detailed story files from a sharded PRD and sharded architecture, and a Developer agent executes those stories without needing to re-read the full architecture — but V4 enforces a `##` (level-two) heading convention that makes markdown-tree sharding trivial and reliable.

## Key Insights
- **One-file web bundles replace V3's six-file-per-agent uploads.** The `dist/teams/` folder on the BMad Method GitHub contains `team-fullstack.txt`, `team-no-ui.txt`, and `team-all.txt` (10 core agents). You upload a single `.txt` to a Gemini Gem or ChatGPT and the orchestrator plus every agent loads from that one file.
- **The installer requires Node 20+ regardless of your project's language.** Node is only used to copy and configure assets — Python, Ruby, C++, Go projects all work the same way. Two install paths: `npx bmad-method install` (no clone, caches globally) or `git clone` the repo then `npm install && npm run install:bmad`.
- **The installer detects existing BMad installations and offers upgrade vs. side-by-side install.** On a V3 project it backs up the old `bmad-agent/` and `docs/` layout, migrates epics into a new `docs/prd/` folder with an `index.md`, and reports counts (e.g., "12 files and 3 epics migrated").
- **IDE support at recording time: Cursor, Claude Code, Roo Code, Windsurf** — more imminent. For IDEs not yet listed, the agents still work by dragging agent or task files into chat and saying "assume this persona" or "run this task on <file>."
- **Cursor caps custom modes at 5, but the method ships 10 agents.** Workaround: rules install as *manual rules* (`alwaysApply: false`, empty globs, no description) — the only trigger is `@agent-name` in chat, which uses the ruler-icon rule to load the stock agent on demand.
- **V4 standardizes document structure around markdown level-two (`##`) headings** so every shardable section lives at the same depth. Sharding is then done by Kayan's `md-tree` CLI from the globally-installed `kb-markdown-tree-parser` npm package — fast, deterministic, no LLM tokens burned.
- **The `core-config.yaml` (bmad-core/) controls the Scrum Master and Developer agents**, including a `devLoadAlwaysFiles` list. Keep that list lean: the dev agent should rely on the SM's detailed story file, not pull the entire architecture into context every run.
- **V4 collapses the former design-architect + architect split into a single Full-Stack Architect agent** and recommends the `fullstack-architecture-tmpl.md` template for most projects — front end and backend in one document, monorepo or polyrepo.
- **Core workflow unchanged, just cleaner:** plan in the web with the orchestrator → export PRD + architecture to `docs/` → run `shard-doc` task on each → SM drafts `story-N.M.md` from epics + sharded architecture → human reviews and sets status to `approved` → dev agent picks up highest-numbered approved story.
- **The `*kb-mode` command on the web orchestrator loads the full BMad knowledge base** into the conversation, making the Gem itself an interactive how-to guide ("how do I get started in Cursor?").

## Actionable Takeaways
1. **Fastest path to try it (no install):** Go to the BMad Method GitHub → `dist/teams/` → download `team-fullstack.txt`. In Gemini, create a new Gem, upload that single `.txt`, save, then type `*help` or `*kb-mode` to the orchestrator.
2. **Fresh IDE install:** Ensure `node -v` ≥ 20. From your project's parent directory, run `npx bmad-method install`. Choose "complete installation," skip beta expansion packs, select your IDE(s) (Cursor, Claude Code, Roo Code, Windsurf), and optionally pull `dist/` web bundles into the project.
3. **Repo-based install (preferred for contributors):** `git clone` the BMad Method repo, `cd` in, run `npm install` then `npm run install:bmad`, and point it at your target project's absolute path.
4. **Upgrading a V3 project:** Run the installer against the V3 project path. Choose "upgrade" (recommended) over "install alongside." It auto-backs up the old `bmad-agent/` and legacy `docs/` layout; your old files are recoverable from the backup folder.
5. **Convert a V3 architecture to V4 format without agents:** Open your IDE's chat with a thinking model (e.g., Claude Sonnet in thinking mode), drag in `bmad-core/tasks/doc-migration-task.md`, your V3 architecture, and `bmad-core/templates/fullstack-architecture-tmpl.md`, and say "run doc migration task on <architecture> using <template>."
6. **Shard documents:** Install the parser globally once (`npx kb-markdown-tree-parser` or `npm i -g`). In your IDE chat, run the `shard-doc` task on `docs/prd.md` and `docs/architecture.md` — pass "use md-tree" to skip the manual-vs-tool prompt. Output lands in `docs/prd/` and `docs/architecture/` as per-section files (e.g., `source-tree.md`, `tech-stack.md`, `coding-standards.md`).
7. **Set up Cursor custom modes:** Settings → Cursor Settings → Chat tab → enable "Custom modes (beta)." Create one for `sm` and one for `dev` by pasting the full agent definition from `bmad-core/agents/sm.md` and `dev.md`. Reserve the 5-slot cap for the agents you use most; access the rest via `@agent-name`.
8. **Keep `devLoadAlwaysFiles` short in `core-config.yaml`.** If the SM references `docs/architecture/project-structure.md` but V4 names it `source-tree.md`, rename the file so the dev agent's always-load succeeds — otherwise it halts with "file not found."
9. **Commit between every story.** Before drafting the next story: `git add -A && git commit -m "story N.M complete"` and push. If an agent goes off the rails, revert to the start of the current story rather than trying to steer it back.
10. **Model allocation:** use thinking-mode / high-capacity models for the SM's story-drafting pass (lots of architecture to reason over) and non-thinking / cheaper models for the dev agent (the story file is already explicit).
11. **Efficiency tip for the dev agent:** instead of saying "start development" and letting it search for the next approved story, drag the specific `story-N.M.md` into chat and say "develop this story" — saves tokens on the search step.

## Notable Quotes
> "You never want your dev agent to have to load that whole architecture file on its own. It'll blow the context." — BMad Code

> "Don't go cheap on your model usage at the story drafting time or at the development time, but use your thinking models at story drafting." — BMad Code

> "If your agent goes off the rails, don't just try to keep going in circles — throw away all your changes and start over." — BMad Code

> "In V4, everything is self-contained in one single file that you need to upload. You never need to upload more than one file." — BMad Code

> "As long as you have level twos in your document, you're going to get perfect documents for everything that you need." — BMad Code

---

*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).*