enable tabcompletion for the functions agi and agr