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
Terminal sessions: cmux and Orca, "Open terminal" goes back to the session's app
santiagoOrozco-encora33d719d22aed
diff --git a/NotchBuddy/Sources/App/ClaudeHost.swift b/NotchBuddy/Sources/App/ClaudeHost.swiftindex 7d846d79..ce4f96af 100644--- a/NotchBuddy/Sources/App/ClaudeHost.swift+++ b/NotchBuddy/Sources/App/ClaudeHost.swift@@ -28,6 +28,8 @@ struct ClaudeHost: Equatable {"com.github.wez.wezterm": "WezTerm","co.zeit.hyper": "Hyper","dev.zed.Zed": "Zed",+ "com.cmuxterm.app": "cmux", // sets TERM_PROGRAM=ghostty: the bundle id decides+ "com.stablyai.orca": "Orca",]private static let termPrograms: [String: String] = ["warpterminal": "dev.warp.Warp-Stable",diff --git a/NotchBuddy/Sources/App/IslandViewContent.swift b/NotchBuddy/Sources/App/IslandViewContent.swiftindex ce9a995d..d67894cd 100644--- a/NotchBuddy/Sources/App/IslandViewContent.swift+++ b/NotchBuddy/Sources/App/IslandViewContent.swift@@ -566,6 +566,11 @@ struct FinishedView: View {HStack(spacing: 8) {#if !APPSTOREPrimaryButton("Open terminal") {+ // The terminal the session runs in, when the hooks told us+ if state.focusTask?.id == "integration_claude", ClaudeHost.activate(state.focusTask?.hostApp) {+ NotificationCenter.default.post(name: .islandCollapse, object: nil)+ return+ }let terminalBundleIds = ["com.apple.Terminal", "com.googlecode.iterm2", "net.kovidgoyal.kitty", "com.mitchellh.ghostty"]let activated = terminalBundleIds.compactMap { id inNSWorkspace.shared.runningApplications.first { $0.bundleIdentifier == id }diff --git a/tests/ClaudeHostTests.swift b/tests/ClaudeHostTests.swiftindex 5c11b3d7..259a538c 100644--- a/tests/ClaudeHostTests.swift+++ b/tests/ClaudeHostTests.swift@@ -17,6 +17,9 @@ enum ClaudeHostTests {check("iTerm", ClaudeHost.terminal(termProgram: "iTerm.app", bundleId: "")?.name == "iTerm")check("tmux inside Ghostty: bundle id wins",ClaudeHost.terminal(termProgram: "tmux", bundleId: "com.mitchellh.ghostty")?.name == "Ghostty")+ check("cmux: bundle id wins over TERM_PROGRAM=ghostty",+ ClaudeHost.terminal(termProgram: "ghostty", bundleId: "com.cmuxterm.app")?.name == "cmux")+ check("Orca by bundle id", ClaudeHost.terminal(termProgram: "", bundleId: "com.stablyai.orca")?.name == "Orca")check("VS Code → nil", ClaudeHost.terminal(termProgram: "vscode", bundleId: "com.microsoft.VSCode") == nil)check("Cursor → nil", ClaudeHost.terminal(termProgram: "vscode", bundleId: "com.todesktop.230313mzl4w4u92") == nil)check("unknown → nil", ClaudeHost.terminal(termProgram: "", bundleId: "com.example.app") == nil)