[medium] agent stat socket
[doc] agent configuration