Question: what is ampdevicesagent on my mac?
Answer: It is part of macOS. Apparently it's the new device manager (it resided inside of iTunes before). It is used, for example, for backing up, updating or restoring an iPod, iPhone or other device connected to your Mac. It resides here: /System/Library/PrivateFrameworks/AMPDevices.framework/