MacBook Notch Turned into Claude Code Approval Button
zack40xx · reddit · 2026-07-11
The author transformed the MacBook notch into an Allow/Deny button for Claude Code, solving the issue of tasks hanging when Claude requests permission while the user is away from the window.
Solution
- While awaiting approval, the notch area displays the current session status and allows direct click to allow or deny
- Uses a PreToolUse hook to block execution
- Writes decisions via Crest
- Combines heartbeat and timeout fallback to prevent the CLI from hanging if the app isn't running
- Can also display the active session's repository, latest actions, and token usage, and renders actual options for AskUserQuestion
Process
- This feature was largely built using Claude Code itself
- The author noted that the approval feature went from idea to launch in just 1 day of pair sessions
- The hook's "block-poll-heartbeat" design was iteratively refined in a real terminal environment
Product Info
- This is the Code mode of the author's custom Mac notch app, Crest
- The base version is free forever with full features open for the first 7 days, no credit card required
- Project URL: crestnotch.app
More from coding & agent
- Reticle builds a verification layer that lets AI coding agents check their own generated code — Scobleizer · 2026-10-27
- Trust your agent, but read its logs: Claude managed agents tips — brada · 2026-10-27
- Dev training a guard model to block prompt injection, tool and memory poisoning — gnukeith · 2026-10-27
- Dev trains a ~4GB-VRAM sentinel model to guard against prompt injection and poisoned memory — gnukeith · 2026-10-27
- Superset rebrands as Paradev, raises $11.5M seed led by USV — massimosgrelli · 2026-10-27
- Ex-Big Tech managers may thrive in the AI era: manage agents like you managed teams — lxfater · 2026-10-27