19 KiB
BMM Troubleshooting Guide
Common issues and solutions for the BMad Method Module.
Quick Diagnosis
Use this flowchart to find your issue:
flowchart TD
START{What's the problem?}
START -->|Can't get started| SETUP[Setup & Installation Issues]
START -->|Wrong level detected| LEVEL[Level Detection Problems]
START -->|Workflow not working| WORKFLOW[Workflow Issues]
START -->|Agent lacks context| CONTEXT[Context & Documentation Issues]
START -->|Implementation problems| IMPL[Implementation Issues]
START -->|Files/paths wrong| FILES[File & Path Issues]
style START fill:#ffb,stroke:#333,stroke-width:2px
style SETUP fill:#bfb,stroke:#333,stroke-width:2px
style LEVEL fill:#bbf,stroke:#333,stroke-width:2px
style WORKFLOW fill:#fbf,stroke:#333,stroke-width:2px
style CONTEXT fill:#f9f,stroke:#333,stroke-width:2px
Table of Contents
- Setup and Installation Issues
- Level Detection Problems
- Workflow Issues
- Context and Documentation Issues
- Implementation Issues
- File and Path Issues
- Agent Behavior Issues
- Integration Issues (Brownfield)
Setup and Installation Issues
Problem: BMM not found after installation
Symptoms:
bmadcommand not recognized- Agent files not accessible
- Workflows don't load
Solution:
# Check if BMM is installed
ls bmad/
# If not present, run installer
npx bmad-method@alpha install
# For fresh install
npx bmad-method@alpha install --skip-version-prompt
Problem: Agents don't have menu
Symptoms:
- Load agent file but no menu appears
- Agent doesn't respond to commands
Solution:
- Ensure you're loading the correct agent file path:
bmad/bmm/agents/[agent-name].md - Wait a few seconds for agent to initialize
- Try asking "show menu" or "help"
- Check IDE supports Markdown rendering with context
- For Claude Code: Ensure agent file is open in chat context
Problem: Workflows not found
Symptoms:
- Agent says workflow doesn't exist
- Menu shows workflow but won't run
Solution:
- Check workflow exists:
ls bmad/bmm/workflows/ - Verify agent has access to workflow (check agent's workflow list)
- Try using menu number instead of workflow name
- Restart chat with agent in fresh session
Level Detection Problems
Problem: workflow-init suggests wrong level
Symptoms:
- Detects Level 3 but you only need Level 1
- Suggests Level 1 but project is actually Level 2
- Can't figure out appropriate level
Solution:
- Override the suggestion - workflow-init always asks for confirmation, just say "no" and choose correct level
- Be specific in description - Use level keywords when describing:
- "fix bug" → Level 0
- "add small feature" → Level 1
- "build dashboard" → Level 2
- Manual override - You can always switch levels later if needed
Example:
workflow-init: "Level 3 project?"
You: "No, this is just adding OAuth login - Level 1"
workflow-init: "Got it, creating Level 1 workflow"
Problem: Project level unclear
Symptoms:
- Between Level 1 and Level 2
- Not sure if architecture needed
- Story count uncertain
Solution: When in doubt, start smaller:
- Choose Level 1 instead of Level 2
- You can always run
create-prdlater if needed - Level 1 is faster, less overhead
- Easy to upgrade, hard to downgrade
Decision criteria:
- Single epic with related stories? → Level 1
- Multiple independent epics? → Level 2
- Need product-level planning? → Level 2
- Just need technical plan? → Level 1
Problem: Old planning docs influencing level detection
Symptoms:
- Old Level 3 PRD in folder
- Working on new Level 0 bug fix
- workflow-init suggests Level 3
Solution: workflow-init asks: "Is this work in progress or previous effort?"
- Answer: "Previous effort"
- Then describe your NEW work clearly
- System will detect level based on NEW work, not old artifacts
Workflow Issues
Problem: Workflow fails or hangs
Symptoms:
- Workflow starts but doesn't complete
- Agent stops responding mid-workflow
- Progress stalls
Solution:
- Check context limits - Start fresh chat for complex workflows
- Verify prerequisites:
- Phase 2 needs Phase 1 complete (if used)
- Phase 3 needs Phase 2 complete
- Phase 4 needs Phase 3 complete (if Level 3-4)
- Restart workflow - Load agent in new chat and restart
- Check status file - Verify
bmm-workflow-status.mdorsprint-status.yamlis present and valid
Problem: Agent says "workflow not found"
Symptoms:
- Request workflow by name
- Agent doesn't recognize it
- Menu doesn't show workflow
Solution:
- Check spelling/format - Use exact workflow name or menu shortcut (*prd not *PRD)
- Verify agent has workflow:
- PM agent: prd, tech-spec
- Architect agent: create-architecture, validate-architecture
- SM agent: sprint-planning, create-story, story-context
- Try menu number instead of name
- Check you're using correct agent for workflow
Problem: Sprint-planning workflow fails
Symptoms:
- Can't create sprint-status.yaml
- Epics not extracted from files
- Status file empty or incorrect
Solution:
- Verify epic files exist:
- Level 1: tech-spec with epic
- Level 2-4: epics.md or sharded epic files
- Check file format:
- Epic files should be valid Markdown
- Epic headers should be clear (## Epic Name)
- Run in Phase 4 only - Ensure Phase 2/3 complete first
- Check file paths - Epic files should be in correct output folder
Problem: story-context generates empty or wrong context
Symptoms:
- Context file created but has no useful content
- Context doesn't reference existing code
- Missing technical guidance
Solution:
- Run epic-tech-context first - story-context builds on epic context
- Check story file exists - Verify story was created by create-story
- For brownfield:
- Ensure document-project was run
- Verify docs/index.md exists with codebase context
- Try regenerating - Sometimes needs fresh attempt with more specific story details
Context and Documentation Issues
Problem: AI agents lack codebase understanding (Brownfield)
Symptoms:
- Suggestions don't align with existing patterns
- Ignores available components
- Proposes approaches that conflict with architecture
- Doesn't reference existing code
Solution:
- Run document-project - Critical for brownfield projects
Load Analyst agent → run document-project Choose scan level: Deep (recommended for PRD prep) - Verify docs/index.md exists - This is master entry point for AI agents
- Check documentation completeness:
- Review generated docs/index.md
- Ensure key systems are documented
- Run deep-dive on specific areas if needed
Problem: Have documentation but agents can't find it
Symptoms:
- README.md, ARCHITECTURE.md exist
- AI agents still ask questions answered in docs
- No docs/index.md file
Solution:
Option 1: Quick fix (2-5min)
Run index-docs task:
- Located at
bmad/core/tasks/index-docs.xml - Scans existing docs and generates index.md
- Lightweight, just creates navigation
Option 2: Comprehensive (10-30min) Run document-project workflow:
- Discovers existing docs in Step 2
- Generates NEW AI-friendly documentation from codebase
- Creates index.md linking to BOTH existing and new docs
Why this matters: AI agents need structured entry point (index.md) to navigate docs efficiently.
Problem: document-project takes too long
Symptoms:
- Exhaustive scan running for hours
- Impatient to start planning
Solution: Choose appropriate scan level:
- Quick (2-5min) - Pattern analysis, no source reading - Good for initial overview
- Deep (10-30min) - Reads critical paths - Recommended for most brownfield projects
- Exhaustive (30-120min) - Reads all files - Only for migration planning or complete understanding
For most brownfield projects, Deep scan is sufficient.
Implementation Issues
Problem: Existing tests breaking (Brownfield)
Symptoms:
- Regression test failures
- Previously working functionality broken
- Integration tests failing
Solution:
- Review changes against existing patterns:
- Check if new code follows existing conventions
- Verify API contracts unchanged (unless intentionally versioned)
- Run test-review workflow (TEA agent):
- Analyzes test coverage
- Identifies regression risks
- Suggests fixes
- Add regression testing to DoD:
- All existing tests must pass
- Add integration tests for new code
- Consider feature flags for gradual rollout
Problem: Story takes much longer than estimated
Symptoms:
- Story estimated 4 hours, took 12 hours
- Acceptance criteria harder than expected
- Hidden complexity discovered
Solution: This is normal! Estimates are estimates. To handle:
- Continue until DoD met - Don't compromise quality
- Document learnings in retrospective:
- What caused the overrun?
- What should we watch for next time?
- Consider splitting story if it's truly two stories
- Adjust future estimates based on this data
Don't stress about estimate accuracy - use them for learning, not judgment.
Problem: Integration points unclear
Symptoms:
- Not sure how to connect new code to existing
- Unsure which files to modify
- Multiple possible integration approaches
Solution:
- For brownfield:
- Ensure document-project captured existing architecture
- Review architecture docs before implementing
- Check story-context - Should document integration points
- In tech-spec/architecture - Explicitly document:
- Which existing modules to modify
- What APIs/services to integrate with
- Data flow between new and existing code
- Run integration-planning workflow (Level 3-4):
- Architect agent creates integration strategy
Problem: Inconsistent patterns being introduced
Symptoms:
- New code style doesn't match existing
- Different architectural approach
- Not following team conventions
Solution:
- Check convention detection (Quick Spec Flow):
- Should detect existing patterns
- Asks for confirmation before proceeding
- Review documentation - Ensure document-project captured patterns
- Use story-context - Injects pattern guidance per story
- Add to code-review checklist:
- Pattern adherence
- Convention consistency
- Style matching
- Run retrospective to identify pattern deviations early
File and Path Issues
Problem: Output files in wrong location
Symptoms:
- PRD created in wrong folder
- Story files not where expected
- Documentation scattered
Solution:
Check bmad/bmm/config.yaml for configured paths:
output_folder: '{project-root}/docs'
dev_story_location: '{project-root}/docs/stories'
Default locations:
- Planning docs (PRD, epics, architecture):
{output_folder}/ - Stories:
{dev_story_location}/ - Status files:
{output_folder}/bmm-workflow-status.md,{output_folder}/sprint-status.yaml
To change locations, edit config.yaml then re-run workflows.
Problem: Can't find status file
Symptoms:
- workflow-status says no status file
- Can't track progress
- Lost place in workflow
Solution:
- Check default location:
docs/bmm-workflow-status.md - If missing, reinitialize:
Load Analyst agent → run workflow-init - For Phase 4: Look for
sprint-status.yamlin same folder as PRD - Search for it:
find . -name "bmm-workflow-status.md" find . -name "sprint-status.yaml"
Problem: Sprint-status.yaml not updating
Symptoms:
- Workflows complete but status unchanged
- Stories stuck in old status
- Epic status not progressing
Solution:
- Manual update required - Most status changes are manual:
stories: - id: epic-1-story-1 status: done # Change this manually - Some workflows auto-update:
- sprint-planning creates file
- epic-tech-context changes epic to "contexted"
- create-story changes story to "drafted"
- story-context changes to "ready-for-dev"
- dev-story may auto-update (check workflow)
- Re-run sprint-planning to resync if needed
Agent Behavior Issues
Problem: Agent provides vague or generic responses
Symptoms:
- "Use appropriate framework"
- "Follow best practices"
- Generic advice without specifics
Solution:
- Provide more context - Be specific in your description:
- "Add OAuth using passport.js to Express server"
- Not: "Add authentication"
- For brownfield:
- Ensure document-project was run
- Agent needs codebase context for specific advice
- Reference existing docs:
- "Based on the existing auth system in UserService..."
- Start fresh chat - Context overload can cause generic responses
Problem: Agent hallucinating or making up information
Symptoms:
- References files that don't exist
- Suggests APIs that aren't in your stack
- Creates imaginary requirements
Solution:
- Use fresh chat - Context overflow main cause of hallucinations
- Provide concrete constraints:
- "We use Express 4.18.2, not Next.js"
- "Our database is PostgreSQL, not MongoDB"
- For brownfield:
- Document-project provides factual grounding
- Agent sees actual code, not assumptions
- Correct immediately:
- "No, we don't have UserService, we have AuthenticationModule"
Problem: Agent won't follow instructions
Symptoms:
- Ignores specific requests
- Does something different than asked
- Doesn't respect constraints
Solution:
- Be more explicit - Agents respond to clear, specific instructions:
- "Use EXACTLY these three steps..."
- "Do NOT include database migrations in this story"
- Check agent capabilities - Agent might not have access to requested workflow
- Try different phrasing - Rephrase request to be more direct
- Use menu system - Numbers are clearer than text commands
Integration Issues (Brownfield)
Problem: New code conflicts with existing architecture
Symptoms:
- Integration approach doesn't fit existing structure
- Would require major refactoring
- Conflicts with established patterns
Solution:
- Check if document-project was run - Agents need architecture context
- Review existing architecture docs:
- Read docs/architecture.md (from document-project)
- Understand current system design
- For Level 3-4:
- Run validate-architecture workflow before planning
- Use integration-planning workflow
- Explicitly document integration strategy in architecture:
- How new components fit existing structure
- What modifications needed to existing code
- Migration path if changing patterns
Problem: Breaking changes to existing APIs
Symptoms:
- Changing API breaks consumers
- Downstream services affected
- Need backward compatibility
Solution:
- Identify all API consumers (document-project should show this)
- Plan versioning strategy:
- API v1 (existing) + v2 (new)
- Deprecation timeline
- Use feature flags for gradual rollout
- Document migration guide for API consumers
- Add to testing strategy:
- Existing consumers still work (v1)
- New functionality works (v2)
Problem: Data migration required
Symptoms:
- Schema changes needed
- Existing data needs transformation
- Risk of data loss
Solution:
- Create explicit migration strategy in architecture:
- Forward migration (old → new schema)
- Rollback plan (new → old schema)
- Data validation approach
- Test migrations thoroughly:
- On copy of production data
- Measure performance impact
- Plan rollout:
- Staging environment first
- Gradual production rollout
- Monitoring for issues
- Document in tech-spec/architecture:
- Migration scripts
- Rollback procedures
- Expected downtime
Still Stuck?
Getting More Help
If your issue isn't covered here:
-
Check other documentation:
- FAQ - Common questions
- Glossary - Terminology
- Quick Start - Basic usage
- Brownfield Guide - Existing codebases
- Scale Adaptive System - Understanding levels
-
Community support:
- Discord - #general-dev, #bugs-issues
- Active community, fast responses
- Share your specific situation
-
Report bugs:
- GitHub Issues
- Include version, steps to reproduce, expected vs actual behavior
-
Video tutorials:
- YouTube Channel
- Visual walkthroughs of common workflows
Common Error Messages
"No workflow status file found"
Cause: Haven't run workflow-init yet Fix: Load Analyst agent → run workflow-init
"Epic file not found"
Cause: PRD/epics not created, or wrong path Fix: Verify PRD/epics exist in output folder, check config.yaml paths
"Story not in sprint-status.yaml"
Cause: Sprint-planning not run, or story file not created Fix: Run sprint-planning workflow, verify story files exist
"Documentation insufficient for brownfield"
Cause: No docs/index.md or document-project not run Fix: Run document-project workflow with Deep scan
"Level detection failed"
Cause: Ambiguous project description Fix: Be more specific, use level keywords (fix, feature, platform, etc.)
"Context generation failed"
Cause: Missing prerequisites (epic context, story file, or docs) Fix: Verify epic-tech-context run, story file exists, docs present
Prevention Tips
Avoid common issues before they happen:
- ✅ Always run document-project for brownfield - Saves hours of context issues later
- ✅ Use fresh chats for complex workflows - Prevents hallucinations and context overflow
- ✅ Verify files exist before running workflows - Check PRD, epics, stories are present
- ✅ Read agent menu before requesting workflows - Confirm agent has the workflow
- ✅ Start with smaller level if unsure - Easy to upgrade (Level 1 → 2), hard to downgrade
- ✅ Keep status files updated - Manual updates when needed, don't let them drift
- ✅ Run retrospectives after epics - Catch issues early, improve next epic
- ✅ Follow phase sequence - Don't skip required phases (Phase 2 before 3, 3 before 4)
Issue not listed? Please report it so we can add it to this guide!