Distributed agent infrastructure