I'm using AI agents and these still generate commands/toolchains that suprisingly by default have master instead of main. I've struggled with removing default branch 'main' on bitbucket. The three dots menu did not allow it. I did not have 'branch permissions' under workflow in settings. What I found out is that you need a change of what is the main/primary branch. This is under general->Repository details->Advanced->Main branch. Hope this saves someone some time until AI agents are up to date with what they generate (claude-3.7-sonnet)