Apply agent naming scheme