18729 - Publish the service agent

Complete rewrite of the service agent