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.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for krishhgg/Insomnia and "Keep a tmux coding agent going through a Wi-Fi drop"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer