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 AppKit
extension TerminalTarget {
/// Brings the session's terminal to the front: the app the session runs in first,
/// then the first running known terminal. Returns false if none is running.
@discardableResult
static func activate(sessionBundleId: String?) -> Bool {
let apps = NSWorkspace.shared.runningApplications
let running = Set(apps.compactMap(\.bundleIdentifier))
guard let id = pick(sessionBundleId: sessionBundleId, running: running),
let app = apps.first(where: { $0.bundleIdentifier == id }) else { return false }
return app.activate(options: .activateIgnoringOtherApps)
}
}