Build Smart Agents
with a Click
Use BMad Code AI Agent Framework to simulate AI behavior with task handling, context awareness, and reasoning.
🎥 Watch BMad Agent Framework
What is BMad Agent Framework?
BMad is a powerful natural language-driven AI Agent Framework that works in any domain—code, creativity, business, or wellness. It enables users to create modular, goal-oriented agents with planning, tool use, and memory.
- Supports agent planning, memory, and custom toolchains
- Works with OpenAI, Qwen3, DeepSeek, Claude, and more
- Easily integrates with web apps, APIs, and workflows
- Built for fast iteration and natural language commands
🎥 Watch The BMad-Method
🔍 What Makes BMad Method Different?
The BMad Method is not just another agent framework—it's a groundbreaking shift in how AI collaborates with humans to build software (and beyond). At its core are two revolutionary innovations that address the biggest pain points in AI-assisted workflows:
🚀 BMad Method's Two Key Innovations
1. Agentic Planning
Dedicated planning agents — Analyst, Project Manager, and Architect — work together (and with you) to generate highly structured, context-rich:
- Product Requirement Documents (PRDs)
- Architecture diagrams and specifications
- UX guidance and domain insights
These aren’t just generic AI task lists. Through advanced prompt engineering, iterative design, and human-in-the-loop refinement, BMad creates robust, real-world plans that align tightly with your goals.
2. Context-Engineered Development
Once your PRDs and Architecture are ready, the Scrum Master (SM) agent takes over to generate detailed story files for development.
Each story file includes:
- Full architectural context
- Implementation guidelines
- Embedded reasoning: What, why, and how to build it
- Testing criteria for the QA agent
This guarantees zero context loss and eliminates confusion for Dev and QA agents—two of the most common issues in traditional AI-assisted dev environments.
✅ Your Dev agent opens a story file that reads like a blueprint—no guessing, no digging, just building.
📚 Want to See It in Action?
Explore the entire flow in the User Guide: From agent roles to PRD creation to development cycles—it’s all documented for easy onboarding.
⚙️ Quick Navigation
-
Understanding the BMad Workflow
Review two essential diagrams:- Planning Workflow (Web UI) – How PRDs and Architecture docs are generated
- Core Development Cycle (IDE) – How SM, Dev, and QA agents coordinate via story files
- ⚠️ These diagrams clarify 90% of BMad's process—understanding them is key to mastering the Agentic Agile flow.
🧭 What Would You Like to Do?
- Install and Build Software with a Full Stack AI Team → Quick Start Instructions
- Learn How to Use BMad → Complete User Guide & Walkthrough
- See Available AI Agents → Browse Specialized Agent Roles
- Explore Non-Technical Uses → Creative Writing, Business, Wellness, Education
- Create My Own AI Agents → Build Custom Agents for Your Domain
- Browse Expansion Packs → Game Dev, DevOps, Infrastructure & More
- Understand the Architecture → Technical Deep Dive
- Join the Community → Get Help, Share Ideas, Collaborate
🎥 Watch How to Plan & Build Complex Apps with Free AI
Where Can You Use BMad?
Software Development
Use Dev, Architect, and Scrum agents to write, plan, and ship reliable software fast. Try Top Tools
Business Strategy
Collaborate with PM and Analyst agents to plan, evaluate, and align business goals.
Creative Content
From storyboarding to scripting—generate content with creative and editorial agents.
Personal Wellness
Use agents to assist in journaling, mood tracking, habit loops, and mindful reflection.
🎥 Watch Complete Step-by-Step Install, Upgrade and Execution
🔄 Keep Your BMad Installation Updated
Stay on the cutting edge of Agentic Agile with just one command! Whether you're maintaining an existing BMad setup or upgrading to the latest version, updating is seamless and safe.
🛠️ Update Existing Installation
npx bmad-method install # OR git pull npm run install:bmad
- ✅ Detects your current BMad method v4 installation
- ✅ Updates only changed or new files – nothing unnecessary
- ✅ Creates .bak backups for any customized files
- ✅ Preserves your existing configurations and agent setups
Benefit instantly from the latest agents, features, performance improvements, and bug fixes—without losing your custom workflow!
🚀 Quick Start: One Command for Everything
npx bmad-method install # OR if already installed: git pull npm run install:bmad
- Install BMad into any Node.js project
- Upgrade your current setup if BMad is already there
- Install expansion packs listed in your package.json
- Simple, unified, and powerful – no extra setup required
🔧 Prerequisite
Make sure you have Node.js v20+ installed.
⚡ Fastest Start: Web UI + Full Stack Agent Team (2-Min Setup)
- Download or clone the full-stack team bundle
- Create an AI agent (Gemini Gem or CustomGPT)
-
Upload the file and set these instructions:
Your critical operating instructions are attached. Do not break character as directed.
-
Start ideating: Type
*help
to see commands or*analyst
to start planning
💡 Talk to the BMad Orchestrator Anytime
Use the
#bmad-orchestrator
command in web chat to ask questions, explore workflows, or get help.
💻 When to Switch to the IDE
- Once your PRD, Architecture, UX plans, and briefs are complete
- Shard your docs
- Trigger Dev/QA/SM agent workflows
- Start real implementation cycles
👉 See the User Guide for full IDE instructions.
🧬 Alternative Setup: Clone & Build Manually
git clone https://github.com/bmadcode/bmad-method.git npm run install:bmad
This builds and installs BMad into your destination folder, ready for customization.
🎥 Watch Better Than Vibe Coding
🌍 Beyond Software Development – Expansion Packs
BMad isn't just for building software — it's a universal agentic framework that works across any domain. With Expansion Packs, you can transform how AI helps you in diverse fields like:
- Creative Writing – Writers’ rooms, plot generators, editing assistants
- Business Strategy – Market analysis, SWOT planning, growth agents
- Health & Wellness – Habit trackers, mental health agents, wellness planners
- Education – Curriculum designers, tutoring agents, learning plan assistants
- Content Creation – Storyboard assistants, video scripting, branding bots
🧩 What Are Expansion Packs?
- Load only what your project needs
- Add new agent roles or workflows
- Keep your core installation clean and lean
📖 Learn more: Check the Expansion Packs Guide to explore available packs or create your own custom expansions!
🛠️ Codebase Flattener Tool
BMad-Method includes a powerful Codebase Flattener Tool—built to convert your full project codebase into a structured format optimized for AI model consumption.
- Code analysis
- Debugging support
- Code review
- AI pair programming
- Architecture refactoring
✨ Key Features
- AI-Optimized Output: Outputs a clean, structured .xml file tailored for LLMs
- Smart Filtering: Respects .gitignore and auto-excludes unnecessary files
- Binary File Detection: Skips binaries and focuses on source code
- Progress Feedback: Real-time status and completion summary
- Flexible Output: Set custom output paths and file names
🧪 Usage Examples
🔹 Default use (flattens current directory):
npx bmad-method flatten
🔹 Flatten a custom input directory:
npx bmad-method flatten --input /path/to/source npx bmad-method flatten -i /path/to/source
🔹 Specify custom output file:
npx bmad-method flatten --output my-code.xml npx bmad-method flatten -o /custom/output/path/code.xml
🔹 Combine input and output:
npx bmad-method flatten --input /my/code --output /my/output/code.xml
📦 Example Output
📊 Completion Summary: ✅ Successfully processed 156 files into flattened-codebase.xml 📁 Output file: /path/to/your/project/flattened-codebase.xml 📏 Total source size: 2.3 MB 📄 Generated XML size: 2.1 MB 📝 Total lines of code: 15,847 🔢 Estimated tokens: 542,891 📊 File breakdown: 142 text, 14 binary, 0 errors
The flattened XML file is a fully structured, AI-readable representation of your code—perfect for:
- Feeding into LLMs for deeper understanding
- Running architectural reviews with AI
- Sharing context with development agents in BMad workflows
⚡ Give your AI agents full project awareness in seconds—no manual zipping, no prep work.
🎥 Watch BMad Planning Workflow
🧠 BMad Planning Workflow
graph TD A["Start: Project Idea"] --> B{"Optional: Analyst Research"} B -->|Yes| C["Analyst: Brainstorming (Optional)"] B -->|No| G{"Project Brief Available?"} C --> C2["Analyst: Market Research (Optional)"] C2 --> C3["Analyst: Competitor Analysis (Optional)"] C3 --> D["Analyst: Create Project Brief"] D --> G G -->|Yes| E["PM: Create PRD from Brief (Fast Track)"] G -->|No| E2["PM: Interactive PRD Creation (More Questions)"] E --> F["PRD Created with FRs, NFRs, Epics & Stories"] E2 --> F F --> F2{"UX Required?"} F2 -->|Yes| F3["UX Expert: Create Front End Spec"] F2 -->|No| H["Architect: Create Architecture from PRD"] F3 --> F4["UX Expert: Generate UI Prompt for Lovable/V0 (Optional)"] F4 --> H2["Architect: Create Architecture from PRD + UX Spec"] H --> I["PO: Run Master Checklist"] H2 --> I I --> J{"Documents Aligned?"} J -->|Yes| K["Planning Complete"] J -->|No| L["PO: Update Epics & Stories"] L --> M["Update PRD/Architecture as needed"] M --> I K --> N["📁 Switch to IDE (If in a Web Agent Platform)"] N --> O["PO: Shard Documents"] O --> P["Ready for SM/Dev Cycle"] style A fill:#f5f5f5,color:#000 style B fill:#e3f2fd,color:#000 style C fill:#e8f5e9,color:#000 style C2 fill:#e8f5e9,color:#000 style C3 fill:#e8f5e9,color:#000 style D fill:#e8f5e9,color:#000 style E fill:#fff3e0,color:#000 style E2 fill:#fff3e0,color:#000 style F fill:#fff3e0,color:#000 style F2 fill:#e3f2fd,color:#000 style F3 fill:#e1f5fe,color:#000 style F4 fill:#e1f5fe,color:#000 style G fill:#e3f2fd,color:#000 style H fill:#f3e5f5,color:#000 style H2 fill:#f3e5f5,color:#000 style I fill:#f9ab00,color:#fff style J fill:#e3f2fd,color:#000 style K fill:#34a853,color:#fff style L fill:#f9ab00,color:#fff style M fill:#fff3e0,color:#000 style N fill:#1a73e8,color:#fff style O fill:#f9ab00,color:#fff style P fill:#34a853,color:#fff
🎥 Watch The Complete IDE Workflow
💻 BMad Development Cycle
graph TD A["📁 PRD + Architecture Documents Ready"] --> B["PO: Shard Docs into Dev Stories"] B --> C["SM: Queue Story Files for Dev Agent"] C --> D["Dev Agent: Review Story Context"] D --> E["Dev Agent: Implement Code"] E --> F["Dev Agent: Write Tests"] F --> G["Dev Agent: Commit Code + Notes"] G --> H["SM: Review for Completion"] H --> I{"Tests Passed?"} I -->|Yes| J["SM: Forward to QA Agent"] I -->|No| K["Dev Agent: Rework + Fix"] J --> L["QA Agent: Run Tests + Review"] L --> M{"QA Passes?"} M -->|Yes| N["SM: Merge PR & Close"] M -->|No| O["QA Agent: Write Bug Report"] O --> P["Dev Agent: Fix Bugs"] P --> H style A fill:#f5f5f5,color:#000 style B fill:#e3f2fd,color:#000 style C fill:#c5cae9,color:#000 style D fill:#e8f5e9,color:#000 style E fill:#e0f7fa,color:#000 style F fill:#e0f7fa,color:#000 style G fill:#ffe0b2,color:#000 style H fill:#f3e5f5,color:#000 style I fill:#e3f2fd,color:#000 style J fill:#fff9c4,color:#000 style K fill:#ffcdd2,color:#000 style L fill:#c8e6c9,color:#000 style M fill:#e3f2fd,color:#000 style N fill:#4caf50,color:#fff style O fill:#ffcdd2,color:#000 style P fill:#ffecb3,color:#000