Agent simulation engine