Skip to content

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.

Claude Code sessions from Conductor show on the Claude Code pill

Claudea8ba953d5b41
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b451e949..fd86a1a6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -86,6 +86,9 @@ jobs:
- name: Test terminal target
run: bash scripts/test-terminal-target.sh
+ - name: Test Claude Code host
+ run: bash scripts/test-claude-host.sh
+
- name: Test link filter
run: bash scripts/test-safe-links.sh
diff --git a/NotchBuddy/Sources/App/ClaudeHost.swift b/NotchBuddy/Sources/App/ClaudeHost.swift
index ce4f96af..4daf019d 100644
--- a/NotchBuddy/Sources/App/ClaudeHost.swift
+++ b/NotchBuddy/Sources/App/ClaudeHost.swift
@@ -15,7 +15,8 @@ struct ClaudeHost: Equatable {
static let terminalCardsKey = "terminalCardsEnabled"
static var terminalCardsEnabled: Bool { UserDefaults.standard.bool(forKey: terminalCardsKey) }
- /// Terminals accepted for Claude Code sessions. Keyed by bundle id; the second
+ /// Terminals (and agent apps like Conductor) accepted for Claude Code sessions.
+ /// Keyed by bundle id; the second
/// table maps TERM_PROGRAM for hooks that run without __CFBundleIdentifier.
private static let terminals: [String: String] = [
"dev.warp.Warp-Stable": "Warp",
@@ -30,6 +31,7 @@ struct ClaudeHost: Equatable {
"dev.zed.Zed": "Zed",
"com.cmuxterm.app": "cmux", // sets TERM_PROGRAM=ghostty: the bundle id decides
"com.stablyai.orca": "Orca",
+ "com.conductor.app": "Conductor", // runs Claude Code with no TERM_PROGRAM
]
private static let termPrograms: [String: String] = [
"warpterminal": "dev.warp.Warp-Stable",
diff --git a/docs/INTEGRATIONS.md b/docs/INTEGRATIONS.md
index b023aa48..4f36ddfe 100644
--- a/docs/INTEGRATIONS.md
+++ b/docs/INTEGRATIONS.md
@@ -64,6 +64,7 @@ Vérifier dans la doc la liste exacte des événements et leurs champs.
| `TERM_PROGRAM=iTerm.app` + `ITERM_SESSION_ID` | AppleScript iTerm : sélectionner la session, activer |
| `TERM_PROGRAM=vscode` | ouvrir le dossier `cwd` dans VS Code ou Cursor (selon `__CFBundleIdentifier`) |
| Ghostty, Warp, autre | activer l'app |
+| Conductor (`__CFBundleIdentifier=com.conductor.app`, sans `TERM_PROGRAM`) | activer Conductor (pas de lien documenté vers un workspace précis) |
| rien (app Claude) | activer l'app Claude |
Demande l'autorisation Automatisation la première fois (normal).
diff --git a/tests/ClaudeHostTests.swift b/tests/ClaudeHostTests.swift
index 259a538c..0058e68a 100644
--- a/tests/ClaudeHostTests.swift
+++ b/tests/ClaudeHostTests.swift
@@ -1,6 +1,6 @@
import Foundation
-@main
+@main @MainActor
enum ClaudeHostTests {
static var failures = 0
@@ -20,6 +20,10 @@ enum ClaudeHostTests {
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("Conductor by bundle id, no TERM_PROGRAM",
+ ClaudeHost.terminal(termProgram: "", bundleId: "com.conductor.app")?.name == "Conductor")
+ check("Conductor keeps its own bundle id",
+ ClaudeHost.terminal(termProgram: "", bundleId: "com.conductor.app")?.bundleId == "com.conductor.app")
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)
@@ -27,9 +31,11 @@ enum ClaudeHostTests {
print("ClaudeHost.name / pillName")
check("nil host = VS Code", ClaudeHost.name(for: nil) == "VS Code")
check("Warp host", ClaudeHost.name(for: "dev.warp.Warp-Stable") == "Warp")
+ check("Conductor host = Open Conductor", ClaudeHost.name(for: "com.conductor.app") == "Conductor")
check("unknown host = VS Code", ClaudeHost.name(for: "com.example.app") == "VS Code")
check("editor session → VS Code", ClaudeHost.pillName(hostApp: nil) == "VS Code")
check("terminal session → Claude Code", ClaudeHost.pillName(hostApp: "dev.warp.Warp-Stable") == "Claude Code")
+ check("Conductor session → Claude Code", ClaudeHost.pillName(hostApp: "com.conductor.app") == "Claude Code")
print("ClaudeHost.terminalCardsEnabled")
UserDefaults.standard.removeObject(forKey: ClaudeHost.terminalCardsKey)
diff --git a/tests/TerminalTargetTests.swift b/tests/TerminalTargetTests.swift
index 2023a688..0f8ba6bd 100644
--- a/tests/TerminalTargetTests.swift
+++ b/tests/TerminalTargetTests.swift
@@ -13,6 +13,13 @@ struct TerminalTargetTests {
running: ["com.apple.Terminal", "com.cmuxterm.app"]) == "com.cmuxterm.app",
"session app (cmux) is preferred over a running Terminal")
+ // Conductor (no TERM_PROGRAM, bundle id only) goes back to Conductor
+ check(TerminalTarget.pick(sessionBundleId: "com.conductor.app",
+ running: ["com.apple.Terminal", "com.conductor.app"]) == "com.conductor.app",
+ "Conductor session goes back to Conductor")
+ check(!TerminalTarget.knownTerminals.contains("com.conductor.app"),
+ "Conductor is not a fallback terminal")
+
// VS Code integrated terminal goes back to VS Code
check(TerminalTarget.pick(sessionBundleId: "com.microsoft.VSCode",
running: ["com.microsoft.VSCode", "com.googlecode.iterm2"]) == "com.microsoft.VSCode",