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
- Gergely Orosz: Shipping 10x PRs With AI Agents, Sites Fill With Small Regressions — ducha_aiki · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11
- agents-best-practices: a provider-neutral Agent Skill for designing and auditing agentic harnesses — tom_doerr · 2026-09-11
- Cognition's SWE-2 uses a KKT duality argument in RL to shift the effort Pareto curve — YouJiacheng · 2026-09-11