Mealiclay01

DontCloseMe — AI skill for Claude Code

AI community

Native macOS AI Agent Lid & Sleep Guardian — real-time HID lid angle alarm, CoreAudio volume override, and failsafe clamshell wake guard.

How to install DontCloseMe

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Mealiclay01/DontCloseMe and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What DontCloseMe does

Native macOS AI Agent Lid & Sleep Guardian — real-time HID lid angle alarm, CoreAudio volume override, and failsafe clamshell wake guard.

Alternatives in AI

  • App Rules — Never interact with the Manina AI app (also named ESP32 Agent; this agent itself): not its screens, its saved 5.2k ★
  • Osaurus — Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cry 5.1k ★
  • Vibeproxy — Native macOS menu bar app to use your Claude Code & ChatGPT subscriptions with AI coding tools - no API keys n 3.3k ★

README

DontCloseMe Logo

DontCloseMe

**Native macOS AI Agent Lid & Sleep Guardian**

Protect running AI coding agents from accidental MacBook lid closures with real-time HID lid-angle alarms, non-bypassable CoreAudio alerts, and safe clamshell sleep prevention until tasks complete.

[![macOS](https://img.shields.io/badge/macOS-14.0%2B-000000?style=flat-square&logo=apple&logoColor=white)](https://www.apple.com/macos/) [![Swift](https://img.shields.io/badge/Swift-5.10-F05138?style=flat-square&logo=swift&logoColor=white)](https://swift.org) [![License: MIT](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](LICENSE) [![CI](https://github.com/Mealiclay01/DontCloseMe/actions/workflows/ci.yml/badge.svg)](https://github.com/Mealiclay01/DontCloseMe/actions/workflows/ci.yml)


Why DontCloseMe?

Long-running AI coding sessions—multi-file refactors, test loops, migrations, and subagent runs—often run unattended in a terminal or IDE. Closing your MacBook lid out of habit immediately suspends processes, drops streaming LLM sockets, and corrupts or stalls active agent state.

**DontCloseMe** sits quietly in your macOS Menu Bar and solves this at the hardware and kernel power level:

  1. Knows when an AI agent is actually working (versus merely sitting idle at a prompt).
  2. Screams before the lid shuts using Apple Silicon's hardware HID lid-angle sensor, a multi-display pulsing red alert, a CoreAudio klaxon that overrides Mute/Volume-Down keys, and spoken voice warnings.
  3. Keeps the Mac working even if the lid is closed, then automatically restores normal macOS sleep as soon as your AI agents finish.

Key Features

1. Real-Time Hardware Lid-Closing Alarm

  • Direct IOKit HID Sensor Reading: Reads your MacBook's real-time HID Lid Angle Sensor (0x05AC:0x8104, usage page 0x0020, usage 0x008A) alongside an IOPMrootDomain (`AppleClamshellStat