DontCloseMe — AI skill for Claude Code
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
**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.
[](https://www.apple.com/macos/) [](https://swift.org) [](LICENSE) [](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:
- Knows when an AI agent is actually working (versus merely sitting idle at a prompt).
- 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.
- 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 page0x0020, usage0x008A) alongside anIOPMrootDomain(`AppleClamshellStat
Related Skills
Dsh Screensaver
macOS screen saver that keeps AI coding agents (Claude Code, Codex, DeepSeek Harness) running while you step a
Macvibe
Keep your MacBook awake with the lid closed while Claude Code, Codex, Gemini CLI & other AI coding agents work
Dont Sleep
Keep your Mac awake while your AI agents are working — even on battery with the lid closed.
Lucid
Looks asleep. Isn't. — keeps your Mac awake with the lid shut while an AI coding agent is working, and lets it
Vibe Gauge
🧠 Native macOS menu-bar dashboard for AI coding: Claude / Codex / Gemini / Grok quotas with sleep-aware usage
VibeGauge
🧠 Native macOS menu-bar dashboard for AI coding: Claude / Codex / Gemini / Grok quotas with sleep-aware usage
Related Agents
Repotify Scanner Guardian
Use for any change under src/scan/ (line rules, shell reading, file rules, typosquatting) and to triage a repo
Market Monitor
Real-time crypto market intelligence. Use when analyzing current market conditions, price movements, volume an
Pattern Consolidator
Sleep-time memory compute. Reads daily notes + subagent logs from the last 7 days, identifies recurring patter