Yasha gobies can be sexed based on their ventral fins. One of the sexes has a black edged ventral.
In the wild sometimes different species of stonogobiops can share the same hole. I have S. yasha, nematodes and xanthorhinica all sharing one shrimp in one hole. Ptereleotris dart fishes can also share the same home, but they do not interact with the shrimp.
If you are attempting to mix different stonogobiops I the same hole for an interesting display 'make sure to introduce all at the same time. And make sure the area you choose for the digging is large enough for them. A good location will be under a large base rock, and provide many rough rubble for the shrimp to open up and stabilize the hole. You'll be surprised how much rubble they can consume. To date I've added 4 handfuls of rough chips and all have been used up.
If the fish and shrimp partnership is very stable with a nice hole, thy won't jump and wil feel very comfortable. The shrimps can be paired as well.