I guess you want something like tools.namespace.repl/refresh
but for AOT :)
i.e. something that looks at the modification dates of files, figures out a dependency subtree out of a modified file, etc
I don't think that's a particularly explored area