Credentials. The hotspot password is stored in your login Keychain, and the logs can contain Wi-Fi names and tmux targets, so check logs before you share them.
Who it is forA developer whose coding agent runs in tmux on a MacBook and who may lose Wi-Fi while the lid is closed or they are away.
The problemA dropped network can stop a coding agent mid-task, and nobody is at the keyboard to restart it.
The outcomeAfter 90 seconds without a network, Insomnia can join the saved iPhone hotspot and type continue into the marked tmux pane.
What you need first
- A Mac with Apple Silicon running macOS 26 or later
- Your administrator password, because the installer adds a sudoers rule
- Terminal access, and optionally Xcode with Swift 6.2 or later if you build from source
- A stable, well-ventilated surface for the Mac during a session, as the README advises
Steps
- Set System Settings > Wi-Fi > Ask to join hotspots to Automatically.
- Enter the hotspot's name and password in Insomnia's Settings, then approve the Location Services request.
- Mark only the tmux pane that runs your agent with
tmux set-option -p -t <pane-target> @insomnia-nudge on. (inferred, check the README) - Start a session from the menu bar eye so the nudge runs during the session.
- Check the log afterward to confirm which panes were typed into.
Prompt for your agent
In the repo https://github.com/krishhgg/Insomnia, read docs/extras.md and list the steps to enable the iPhone hotspot handoff and tmux nudge for a pane named <pane-target>. Verify that the nudge option is off by default and that Enter is not pressed unless enabled, then report the result.
Caveat. The README says some web apps may still stop with the lid closed, so the tmux nudge cannot guarantee that an agent keeps working.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page