I solved this by creating calendar events for just myself. I’ll book an hour of dedicated programming time and then after that I’ll respond to all of my messages. Or if I don’t need to be hyper focused on a task I’ll bounce around and respond to various messages and check the status of stuff.