A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
import Foundation
/// True when a parsed ~/.claude/settings.json routes Claude Code SessionStart events to Coucou.
///
/// Kept free of file access so it can be tested on fixtures instead of the real settings file.
/// Both the installed app and earlier builds matched on the command text: a hook written by
/// Coucou runs ~/.claude/coucou/nb-hook, and the App Store build names NotchBuddy instead.
func coucouHooksPresent(inSettings settings: [String: Any]) -> Bool {
guard let hooks = settings["hooks"] as? [String: Any],
let sessionStart = hooks["SessionStart"] as? [[String: Any]] else { return false }
return sessionStart.contains { group in
(group["hooks"] as? [[String: Any]])?.contains { hook in
guard let command = hook["command"] as? String else { return false }
return command.contains("NotchBuddy") || command.contains("coucou")
} ?? false
}
}