Stop Babysitting Claude Code: Native Mac Notifications (DIY Hook vs Notch Apps vs L2Cache)
You assign Claude Code or Codex a multi-file refactor and switch to Slack or your browser. Ten minutes later you switch back and find it finished in 45 seconds—or worse, paused after 10 seconds waiting for permission to
You assign Claude Code or Codex a multi-file refactor and switch to Slack or your browser. Ten minutes later you switch back and find it finished in 45 seconds—or worse, paused after 10 seconds waiting for permission to run a command.
Here are the three ways developers handle AI coding agent notifications on macOS today, and where each one breaks down.
1. DIY ~/.claude/settings.json Hook (Free, Manual)
Claude Code supports lifecycle hooks (Stop when a turn finishes, Notification when it pauses for input). Add this to ~/.claude/settings.json:
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Task finished\" with title \"Claude Code\" sound name \"Glass\"'"
}
]
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Waiting for your input\" with title \"Claude Code\" sound name \"Funk\"'"
}
]
}
]
}
}
If you use iTerm2, Ghostty, or Kitty, you can also enable the terminal bell:
claude config set --global preferredNotifChannel terminal_bell
Where it falls short:
- Apple Terminal, Warp, and VS Code's integrated terminal don't reliably surface
terminal_bellalerts. -
osascripthooks don't cover Codex CLI or Antigravity, don't summarize what finished, and don't warn you if a session's prompt cache has expired before you resume.
2. Mac "Notch" Companion Apps
A wave of macOS notch utilities (Dynamic Island-style status pills) now target Claude Code notifications. They look slick on a MacBook Pro's built-in screen, but they have three real-world gaps:
- External Monitors & Clamshell Mode: If you code on a Studio Display, ultrawide, or Mac Mini/Studio, there is no notch—you miss the visual pill completely.
- Status Pill ≠ Memory: Notch apps only show "Claude is running / waiting". Once you close the terminal, they don't index your prompts, terminal commands, or error screenshots.
-
No Token-Quota Protection: They don't intercept cold
claude --resumecalls that re-write 100k+ tokens at 1.25× cost.
3. Native Notification Center + Developer Memory (L2Cache)
L2Cache for Mac watches local agent streams directly on-device and sends native macOS Notification Center alerts (works on any display, clamshell or built-in) for:
- Task completion (with a 1-sentence summary)
- Permission / confirmation prompts
- Build errors & API rate limits
Beyond notifications, L2Cache indexes your Claude Code, Codex, Copilot, Grok, and Antigravity sessions alongside terminal command history (folder, git branch, exit code), clipboard history, and Vision screenshot OCR—and includes an active Cold-Resume Guard with /clear handoffs.
- Compare Mac session tools: Best AI Coding Session Viewer Apps for Mac (2026)
- Check where your agents store logs locally: agent-history-paths on GitHub
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.