adding an `ag-started-hook`