Integrate system-sleep?
One can now prevent the system from sleeping and/or the display blanking in Emacs 31 using the new library system-sleep. This may be useful to integrate or at least mention in the documentation for people who expect long-running sessions to continue working without sleep interruption. It does not prevent "hard sleeping" i.e., closing the lid on your laptop but it does have a hook you can use to know when the system is about to sleep and after it has woken up and take an appropriate action to suspend/resume things.
Neat! Thanks for this. I'll look into either integrating or mentioning in README.
Added in https://github.com/xenodium/agent-shell/commit/4f05fcf13f0c5a8116f11d7763e2ad96bd54f88a