Powering agents with dynamic infrastructure