Mastering Prompt Optimization Agents: A Deep Dive