Two Tricks to Run BMAD Across Several Git Repositories

· 423 words · 2 minute read

Our product is split across a dozen Git repositories: libraries, pipelines, Terraform, tools. We plan with BMAD and implement with Claude Code, and both need to see the whole product. A story often touches three repositories at once, and a PRD or an architecture document describes the product, not one repository.

So we work from a plain acme/ folder, not under Git, with every repository cloned inside it. Claude Code is always started from that root.

acme/                          # workspace, not versioned
├── CLAUDE.md                  # one-line pointer (trick 1)
├── .claude/
├── _bmad/
│   └── custom/
│       └── config.toml        # redirects BMAD (trick 2)
├── acme-docs/
│   ├── CLAUDE.md              # the real instructions
│   ├── _bmad-output/          # PRDs, architecture, stories
│   └── docs/                  # project knowledge
├── acme-billing/
├── acme-customers/
├── acme-libs/
├── acme-pipeline/
└── acme-terraform/

The catch: nothing at the root is versioned. Two tricks move everything that matters into acme-docs, a repository dedicated to documentation.

Trick 1: a pointer CLAUDE.md#

Claude Code reads the CLAUDE.md of the folder it starts from. Ours sits in the unversioned workspace, so it holds nothing but a pointer:

# Acme
See @acme-docs/CLAUDE.md

The @ syntax imports the other file into Claude Code’s memory1. The real instructions (conventions, how the repositories relate, build commands) live in acme-docs/CLAUDE.md, where they are reviewed and shared like any other change. Setting up a new workspace means writing these two lines, nothing more.

Trick 2: redirect BMAD’s output#

BMAD has to be installed where Claude Code starts, so _bmad/ sits at the workspace root.

~/acme$ npx bmad-method install
◆  Where should output files be saved?
│  acme-docs/_bmad-output

By default, BMAD writes its artifacts to _bmad-output/ and reads project documentation from docs/, both under the project root, which here is the unversioned workspace. We override both in _bmad/custom/config.toml:

[core]
output_folder = "{project-root}/acme-docs/_bmad-output"

[modules.bmm]
project_knowledge = "{project-root}/acme-docs/docs"
  • output_folder is where BMAD writes what it produces: PRDs, architecture documents, epics and stories.
  • project_knowledge is where BMAD agents look for existing documentation about the project.

{project-root} resolves to the workspace, so both paths land in acme-docs. Every planning document is committed and reviewed, whichever repository the story touches. _bmad/ itself stays unversioned: a newcomer reinstalls it or copies a configured one from a teammate.

What you get#

  • One Claude Code session sees the whole product and can implement a story across acme-billing, acme-libs and acme-customers.
  • Every instruction and every planning document is versioned in one repository.
  • No monorepo, no submodules: each repository keeps its own history and pipeline.

  1. See Claude Code memory for the @path import syntax. ↩︎