I kept walking back to check if Claude Code needed me, so I made my locked Mac glow when it does
A developer created a solution to be notified when Claude Code, or other AI agents like Codex, Gemini CLI, Cursor, Copilot CLI, and Aider, require attention while they are away from their Mac. The solution involves a command that writes Notification and Stop hooks into ~/.claude/settings.json. These hooks run "lockpaw ping," which the app listens for via a distributed notification, causing the Mac to glow when the agent needs interaction, without launching the app if it's not already running.
- Published
- Sep 6, 2026, 13:20
- Source type
- Dev community
- Tier
- Community
- Source status
- Healthy
Times shown in UTC
More details
If you leave Claude Code running and step away, you know the walk. Back to the desk, wiggle the mouse, nothing, walk away again.
So I built Lockpaw, a small menu bar app for macOS. One hotkey covers the screen without putting the Mac to sleep, so the agent keeps running. When Claude hits a permission prompt or finishes, the covered screen glows. You can see it from the kitchen.
It is silent by default because I work in an open office. The glow is the signal. Touch ID to unlock. Native Swift, about 10 MB, no analytics, free and open source (MIT).
How it hooks into Claude Code. One command writes a Notification hook (matching permission and idle prompts) and a Stop hook into ~/.claude/settings.json. Both just run lockpaw ping. The app listens on a distributed notification, so a ping never launches the app when it is not running, and it backs up your settings file before touching it. The same command works for Codex, Gemini CLI, Cursor, Copilot CLI and Aider.
How Claude Code helped build it. Most of the app was written in Claude Code sessions. The parts it got right that I would have struggled with alone: the CGEventTap on a background thread (Carbon hotkeys are unreliable in menu-bar-only apps), the inside-out codesigning order for Sparkle, and this week a bug where Cmd+Q reached the app during the Touch ID password sheet. macOS turns on secure input there, which hides keystrokes from the event tap. Claude Code found the secure-input cause and wrote the quit guard, I reviewed and shipped it. The repo has a CLAUDE.md that carries all of those decisions, which is how each session picks up where the last one stopped.
A user sent a PR last month that fades the screen to pure black after a few minutes so OLED panels are safe while the agent works. That was a good day.
What do you do today when you walk away from a running agent? Curious whether people just leave the screen up.