Supports for custom rules in BugBot

Do we have plans for the BugBot to provide to get context from the cursor rules? This helps seamless integration of executing a certain checklist defined in the rules against the PR. Also, providing more context to the BugBot

3 Likes

It’s on our list but no ETA yet!

1 Like

@jkaplan – Do you know if .cursor/rules are used by BugBot for reviews? We have some style-guide and database migration suggestions that I’d love for BugBot to look out for certain issues for us that we’re happy to document there.

Hi! They are not, but BugBot will read any .cursor/BUGBOT.md file! Starting from each file in the PR and going upward through the repository, any .cursor/BUGBOT.md file is passed into the prompt, so that’s where you can put your BugBot rules.

1 Like

That’s great to hear! Any reason to keep them separate? Do you know if it will be effective to say in the .cursor/BUGBOT.md to use the .cursor/rules files (I imagine it would not be able to replicate the same directory search consolidation sadly)? Just so that we can keep the style-guides and standards consistent across both (and reduce the amount of duplicate rules).

Keeping it separate was mostly a “safe” choice for now but we may rethink it. Just worried people may have cursor rules that they don’t want to apply to a BugBot run.

It won’t have any powers to look at other files you link in there, just plaintext in the markdown file for now.

1 Like

@jkaplan – Do you know if BUGBOT.md changes in a PR will be accessible by BugBot and used for reviewing? I’m attempting to test some changes to the markdown with some pretty glaring issues, but it’s not finding any issues.

Do the changes to BUGBOT.md need to be merged to main first?

Needs to be merged into main first!

Do you mean default branch on Github or do I need to have a branch called main?

How do I know if my BUGBOT.md file was applied for PR review . I have a file named BUGBOT.md in .cursor folder in main branch and it seems cursor isn’t using that as reference .

1 Like

+1 for this

You can check if BUGBOT.md was applied by confirming it’s included in the PR diff or used in .cursor.json; if not, Cursor might not be referencing it correctly.

cursor review verbose=true is also not working
it is just repplying with Bugbot request id: serverGenReqId_18051a7e-d06f-..........

I first merged the pr with BUGBOT.md separately .So I know it’s there for sure and can see it in my project root by going to https://github.com///.cursor/.BUGBOT.md . Now I am merging a new PR . BUGBOT is getting triggered .But In my opinion it’s not applying the rules I mentioned in BUGBOT.md . So how do I know or find out if it applied for sure .