Applying shared coding guidelines across multiple repos with Bugbot

Has anyone found a way to make Bugbot use context from one repository in another?

My use case is that I keep documentation and coding guidelines in a dedicated “docs” repo, and I’d like Bugbot to automatically apply those guidelines when reviewing PRs in a different code repo. From the docs it looks like Bugbot’s context is scoped per-repository only — but I’m wondering if anyone has a workaround (e.g. linking repos, symlinks, shared .cursor/BUGBOT.md references, or org-level config).

Is cross-repo context possible today, or is the only option to duplicate the guidelines into each repo?

Currently the best way is to duplicate BUGBOT.md into each repo! This is on our mind though

Thanks for the answer. But what if I reference specific file paths in the bugbot.md?

My actual guidelines exist in .md files which I reference in my BUGBOT.md.

Currently that won’t work for BUGBOT.md at all. The model will read what’s in that file but won’t jump to other files to read what’s in there!

1 Like

I see. That’s surprising. I thought I saw somewhere in the docs that you could reference files but I might misremember!

So my BUBGOT.md never really worked :person_facepalming: :grinning_face:

Haha I guess not, but is it a good sign that you didn’t even notice? Bugbot seems to naturally be working well!

It does but in this case I was struggling to understand if my bugbot.md was working. I was not really happy with its performance and now I know why.

In any case thanks for letting me know.

1 Like

@giorgosera I found that team rules worked really well for all our repos! How many rules do you have defined?

You can find them in cursor dashboard → bugbot → team rules. Here is a sample of some I defined.

@giorgosera you should be able to reference other files now :slight_smile: we implemented this functionality a while ago!

hey @jkaplan! can you clarify what is the best way/syntax to reference other files inside BUGBOT.md? we have our own documentation inside our repo and would love to reference them instead of duplicating their content in BUGBOT.md.

Relative markdown links are explicitly fed to the model, like this “Follow the rules laid out in (my coding standards)[./.cursor/rules/codingstandards.mdc]”

Anything else may work but it’s up to the agent

thanks, this helps a ton! and just to clarify, when you say relative, it is not relative to the path of the BUGBOT.md file, right? so we start from the root as you wrote, for instance [our api pattern](./docs/patterns/api.md) (where .docs is at the root).