Add a class for running external programs as AI programs.