Listen to agent changes.