Insomnia: Open-Source Menu Bar Utility for Timed macOS Awake Sessions with Lid Closed

Repositorykrishhgg/InsomniaTool

Insomnia is an experimental open-source menu bar app for macOS designed to keep MacBooks awake with the lid closed during timed agent sessions. It provides countdown timers and recovery mechanisms without requiring a dock icon or main window.

Key points

  1. Keeps Apple Silicon MacBooks awake for a specified period (days, hours, minutes), including when the display lid is closed.
  2. Designed specifically for unattended background workflows, such as long-running coding agent tasks.
  3. Operates purely from the macOS menu bar via an eye icon, without a dock icon or main application window.
  4. Includes recovery tracking and alerts users if system state alterations could not be completely reverted.
  5. Requires macOS 26 or later on Apple Silicon hardware, requiring Swift 6.2+ when built from source.

Why it matters

Autonomous coding agents frequently require extended runtimes to complete large-scale refactoring or indexing tasks. macOS standard sleep behaviour interrupts these processes unless external monitors are connected or specific sleep-prevention tools are used. Insomnia pairs lid-closed operation with explicit timers to avoid permanent insomnia.

Analysis

Insomnia fills a targeted operational need for developers using local agents on MacBooks. Written in Swift and SwiftUI and licensed under MIT, the application is still labelled experimental by its author, who stresses the need for proper ventilation and warns against transport in closed bags. The inclusion of dedicated installation prompt skills demonstrates an intentional focus on agent-assisted developer environments.

Found in

Summary generated by AI (Gemini 3.8 Flash, 18 October 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Repository:thedotmack/claude-mem

    claude-mem: Persistent Cross-Session Memory for AI Agents

    The open-source project claude-mem (now also branded as Grok Mem) captures agent activity during active sessions, compresses it with AI, and injects relevant context back into future runs.

    93.1kstarsJavaScript

    AI & LLMs· Tool

  • Repository:rohitg00/agentmemory

    agentmemory: Persistent Memory for AI Coding Agents

    agentmemory is an open-source TypeScript solution providing persistent memory for coding agents and MCP clients. Powered by the iii engine, it builds on Andrej Karpathy's LLM Wiki pattern by introducing confidence scoring, lifecycle management, knowledge graphs, and hybrid search.

    28kstarsTypeScript

    AI & LLMs· Tool

  • Repository:anomalyco/opencode

    OpenCode: Open-Source AI Coding Agent

    OpenCode is an open-source AI coding agent available via a terminal interface and a standalone desktop application. Built with TypeScript, the project provides a free alternative to proprietary AI programming assistants.

    204.4kstarsTypeScript

    AI & LLMs· Tool

  • Repository:manaflow-ai/cmux

    cmux: Ghostty-Based macOS Terminal for AI Coding Agents

    cmux is an open source macOS terminal multiplexer based on Ghostty, designed specifically for multitasking with AI coding agents. It features vertical tabs, workspace metadata, and visual notifications when agents require human attention.

    26.8kstarsSwift

    AI & LLMs· Tool

  • Link:Austin Wang, Lawrence Chen

    cmux: An Open-Source Terminal Built for Coding Agents

    cmux is a native macOS terminal based on Ghostty, designed specifically for multitasking with coding agents. It features vertical tabs, visual notifications, a built-in browser, and a CLI for automated control.

    AI & LLMs· Announcement

  • Repository:Gentleman-Programming/engram

    Engram: Persistent Memory System for AI Coding Agents

    Engram is an open-source, agent-agnostic memory engine written in Go that provides AI coding assistants with persistent memory across sessions.

    6.4kstarsGo

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.