Make the "agent list" and "agent remove" commands work

refs #7245