Skip to main content

Command Palette

Search for a command to run...

Installing BMAD v4 for Roo Code.

Or: Enhancing the Software Development Process with AI Agents.

Updated
4 min read
Installing BMAD v4 for Roo Code.

TL;DR.

This post provides a step-by-step process for installing and setting up the BMAD Method for Roo Code, which integrates AI with Agile methodologies to enhance software development. It covers prerequisites, installation steps, and customisation options that streamlines workflows and automates tasks, improving the SDLC (Software Development Life-Cycle) for many software solutions.

Attributions:


An Introduction.

This guide walks through the installation and setup of BMAD for Roo Code, a framework for integrating AI with Agile methodologies which improves my software development efficiency.

The purpose of this post is to show how to setup the BMAD Method so that it works with Roo Code.


The Big Picture.

BMAD for Roo Code is essential for my understanding of how to effectively integrate AI with Agile methodologies. This guide walks through the installation and setup process, providing insights into how the BMAD Method enhances my software development by enhancing many, tedious tasks. By following the steps outlined in this post, the result is a streamlined workflow for leveraging innovations that boosts my effectiveness when creating my projects.

NOTE: The following process results in a single installation that is used across multiple projects.


Prerequisites.

  • A Debian-based Linux distro (I use Ubuntu),

  • The Roo Code Extension,

  • VS Code, and

  • Node v20+.


Updating my Base System.

  • From the (base) terminal, I update my (base) system:
sudo apt clean && \
sudo apt update && \
sudo apt dist-upgrade -y && \
sudo apt --fix-broken install && \
sudo apt autoclean && \
sudo apt autoremove -y

NOTE: The Ollama LLM manager is already installed on my (base) system.


What is the BMAD Method?

BMAD is a framework that integrates AI with Agile methodologies that streamlines software development. It utilises specialised AI agents to manage tasks and automate repetitive processes, which improves the SDLC (Software Development Life-Cycle) for many software projects.


Installing the BMAD Method.

From the terminal, I install the BMAD Method:

npx bmad-method install

  • On the next screen, I provide the full path to my installation directory and tap the ENTER key:

NOTE: As I am already in the installation directory, I type a period (.) to install BMAD into the current location.

  • On the next screen, I use the up/down arrow keys to move the selector, use the SPACEBAR to select/deselect multiple options, and hit the ENTER key:

  • On the next two screens, I type ‘y’ for both of the document sharding options, and hit the ENTER key:

NOTE: Sharding is used to intelligently break large documents into a collection of smaller documents. The purpose of sharding is to provide LLMs with prompts that do not overwhelm the context window.

  • On the next screen, I use the up/down arrow keys to move the selector and the SPACEBAR to make my selections, and then I tap the ENTER key:

  • On the final screen, I type ‘n’ to bypass the installation of pre-built web bundles, and hit the ENTER key:

  • Here is the screen after a successful installation:

  • And here is the installation directory:


Editing the .roomodes & .kilocodemodes Files.

The trick to using a single instance or BMAD across multiple projects is to:

  • Open the files in a text editor,

  • Changing every instance of a relative to an absolute path and saving the results, and

  • Adding copies of these files into the root directories of every project.

In this post, for example, the installation directory is /home/brian/.roo/commands, so in the .roocodes and .kilocodemodes files I would change a relative path, like .bmad-core/agents/ux-expert.md, so that it becomes an absolute path, like /home/brian/.roo/commands/.bmad-core/agents/ux-expert.md.


BMAD v6.

I also install BMAD v6 into the same location. Here is the installation command for BMAD v6 (currently in Public Alpha):

npx bmad-method@alpha install

The Results.

The installation and setup of the BMAD Method for Roo Code provides a robust framework for integrating AI with Agile methodologies, enhancing the software development process. By following the detailed steps outlined, I can effectively implement the BMAD Method, customise Roo Code with new modes, and create reusable slash commands to streamline my workflow. This approach not only automates repetitive tasks but also fosters improved collaboration and efficiency throughout the software development life cycle. As I continue to explore and utilise these tools, I must remember to adapt and customise these utilities to best fit the unique needs of each project.


In Conclusion.

I learned how to seamlessly integrate AI with Agile methodologies using the BMAD Method for Roo Code. This comprehensive guide covered the installation, setup, and customisations that enhances my software development processes and automates many of the tasks I perform. The BMAD method is perfect for developers looking to streamline their workflow with innovative tools.

Until next time: Be safe, be kind, be awesome.


Hash Tags.

#BMADMethod #RooCode #AIMethodologies #AgileDevelopment #SoftwareDevelopment #WorkflowAutomation #VSCode #NodeJS #TechGuide #SoftwareEfficiency

The AI Series

Part 1 of 29

In the AI series, I describe numerous "artificial intelligence" technologies and techniques including machine learning, deep learning, prompt engineering, and large language models.

Up next

A Look into the BMAD Method.

Or: Bringing the Agile Methodology to AI Development.