[ag] replace sleep with a cider-file-loaded-hook