slartabartfast
Not just guitar players, and probably not just musicians.
Think about it. The human nervous system is demonstrably incapable of the speed necessary to use a feedback loop to synchronize ensemble playing. In other words your brain and muscle control are not fast enough to hear what another player is playing and match/complement his action in real time. There would be a very noticeable delay in your response. Even with an infinitely fast response time, the distance between players on a large stage and the limit of the speed of sound, although small compared to the nervous system latency, would be greater than most people could tolerate from a DAW. When players are ensemble, in the groove, they are constantly playing what they anticipate their fellow player will produce and synchronizing their internal clocks in order to make what appears to be coordinated play. It is actually independent play of consistent performance simultaneously. There is absolutely no way that you could add into this neurologic latency any conscious consideration and choice based on what you are hearing. Consciousness can guide your internal processing, by anticipating the direction you both will follow, but it is far to slow to be the mechanism for coordination. Try playing a totally "wrong" chord, and your partner will not hit it at the same time or even very close even if he is trying to "follow" you.
Hey, Like a look ahead plug in! Right!
I think much of it is in knowing another player and their style. This lets you pre think what they are likely to do next.
Sometimes a simple facial expression can be enough of a guide if you know them. Knowing the key is important even if you aren't reading music. I wouldn't include covers here. If they have the kind of personality that likes to change keys mid song simply slap them silly.
I can usually stay in the pocket playing a secondary instrument. For me it's more about staying out of the way. Two leads, not so much. Put them in a room together and let one of them kill the other one.
Playing without music can be really easy. If playing on piano simply pick a simple key like C or G. Works for me every time.