DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use Insomnia: what you can do with it

What is Insomnia? Insomnia is a macOS menu bar app that keeps a MacBook awake for timed sessions, including with the lid closed, and undoes its power and lid changes when a session ends.

How do I use it? Paste the install prompt from the README into your coding agent, or follow docs/install.md, and enter your password in Terminal when asked; then run open "$HOME/Applications/Insomnia.app" to start the app; Click the eye in the menu bar, enter days, hours and minutes, and press Enter to start the session. Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

4 use cases

  • Keep a MacBook awake for a timed agent run

    Install Insomnia, then start a timed awake session so a long agent job keeps running with the lid closed.

    View prompt
    Using the repo https://github.com/krishhgg/Insomnia, install Insomnia on this Mac by following skills/install-insomnia/SKILL.md, and if a step needs my password, give me the exact Terminal command to run. Then start a session of <session-length> from the menu bar eye. Verify that ~/Applications/Insomnia.app exists and report the installed version from Settings > App.
  • Test lid-close behavior before a long unattended run

    Run a short watched session and check the lid-close actions and log before trusting it overnight.

    View prompt
    In the repo https://github.com/krishhgg/Insomnia, read docs/lid-close.md and docs/recovery.md, then tell me which lid-close actions are on by default for this Mac. Output a short checklist for a test session of <test-minutes> minutes. Verify the checklist against the README before reporting.
  • Recover a Mac after a session that could not be undone

    Find and clear the recovery warning, unfreeze processes and restore audio after a crash or quit.

    View prompt
    In the repo https://github.com/krishhgg/Insomnia, read docs/recovery.md and the log at ~/Library/Logs/Insomnia/insomnia.log on this Mac. Report each recovery warning and the step from docs/recovery.md that addresses it. Verify that you did not change any power setting while reporting.
  • Keep a tmux coding agent going through a Wi-Fi drop

    Set up iPhone hotspot handoff and a marked tmux pane so a coding agent can resume after the network drops.

    View prompt
    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.

Quick start with Insomnia

  1. Check you have what it needs: 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.
  2. Open krishhgg/Insomnia on GitHub and read the README and license.
  3. Paste the install prompt from the README into your coding agent, or follow docs/install.md, and enter your password in Terminal when asked.
  4. Run open "$HOME/Applications/Insomnia.app" to start the app.
  5. Click the eye in the menu bar, enter days, hours and minutes, and press Enter to start the session.
  6. Check Settings, including the lid-close options, before you close the lid.

These steps come from our top use case, Keep a MacBook awake for a timed agent run, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for krishhgg/Insomnia

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Software and DevOps

About this repo

  • Who it is forMac developers and people running long unattended jobs, such as coding agents, who need a laptop to stay awake with the lid closed and a safe way to undo it.
  • Why it is hot2k stars, launched 56 days ago
  • LanguageSwift
  • Sourcegithub.com/krishhgg/Insomnia · Back to Hot repos

Requirements

  • 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

Add this badge to your README

Maintain Insomnia? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/krishhgg/Insomnia.svg)](https://dedupedai.com/use-cases/krishhgg-insomnia/?utm_source=github&utm_medium=badge&utm_campaign=krishhgg-Insomnia)

HTML

<a href="https://dedupedai.com/use-cases/krishhgg-insomnia/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=krishhgg-Insomnia"><img src="https://dedupedai.com/badge/krishhgg/Insomnia.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Insomnia

What is Insomnia?

Insomnia is a macOS menu bar app that keeps a MacBook awake for timed sessions, including with the lid closed, and undoes its power and lid changes when a session ends. It is an open-source project on GitHub: https://github.com/krishhgg/Insomnia.

How do I use Insomnia?

Paste the install prompt from the README into your coding agent, or follow docs/install.md, and enter your password in Terminal when asked; then run open "$HOME/Applications/Insomnia.app" to start the app; Click the eye in the menu bar, enter days, hours and minutes, and press Enter to start the session. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Insomnia for?

Mac developers and people running long unattended jobs, such as coding agents, who need a laptop to stay awake with the lid closed and a safe way to undo it.

What can I do with Insomnia?

4 use cases so far, for example: Keep a MacBook awake for a timed agent run; Test lid-close behavior before a long unattended run; Recover a Mac after a session that could not be undone. Each has steps and a copy-paste agent prompt.

What do I need to run Insomnia?

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.

What are alternatives to Insomnia?

Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.

Is Insomnia safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.