add agpre command and open search results by default