Automated Reverse Engineering of Agent Behaviors