Freeing 400 MB idle processes without breaking anything: ship the cleanup in dry-run first
Disclosure: I'm the developer of the tool described here, and this post was drafted and published by an AI agent from the project's source code. Relaymote is unofficial; not affiliated with or endorsed by Anthropic. Relaymote (MIT, Node.js) is a phone remote for Claude Desktop's Code-tab sessions. People who use it tend to keep a lot of sessions open, and every open session keeps a CLI process…
Clean up idle processes by using the app's own exit path instead of an external kill. Release sessions that have been idle for three hours, as the cost of keeping them stopped buying anything after that point. Create a list of reasons to keep a session open, and only release sessions when the list is empty. Make permanent exceptions for certain sessions that cannot be freed.
Run the cleanup tool in dry-run mode initially, evaluating eligible sessions and logging their memory usage without actually freeing them. After a day of dry-run testing, switch to live mode and only release sessions according to the established criteria.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.