Bro code and girl code are terms used to define friendships. If you're not familiar with these terms, bro code is a set of rules that dictate how male friendships should be, and girl code is the same thing, just for female friendships.
Having rules that dictate a friendship may sound silly and childish, but people actually take these things seriously. Friendships have even been permanently broken after certain boundaries have been crossed.