agent shell with agfm in place