envoyd: send the agent type across the socket