Use The Silver Searcher. Does not check to see if ag is installed, so that’s your responsibility.