I created an eshell module a while ago that I use.
Here's the description:
em-compile tries to determine what commands it should defer to a
compilation buffer, and alerts you when it's done. It determines
which commands it should defer by keeping track of how long each
command took to finish. By default if it takes more than 5 seconds
then it will start to defer that command whenever it's invoke via
eshell. You can of course customize the amount of seconds or offer
a list of always defer or not defer.
Link: https://github.com/gopar/.emacs.d/tree/main/lisp/eshell/module
I have no interest in making this into a package (i was at one point but not anymore), so if you want to turn it into something. Go for it :)
Have you created anything that you've been hiding? :)
Also, plz ignore the messy config files. Too lazy to clean up.