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.

536 B
Raw Blame
import AppIntents
import Foundation

/// Opens Coucou on the Mochi that needs you most (Control Center button).
/// Compiled into the app and the widgets extension.
struct OpenLeadMochiIntent: AppIntent {
    static let title: LocalizedStringResource = "Open the agent that needs you"

    func perform() async throws -> some IntentResult & OpensIntent {
        let url = SharedSessions.load().first.map { SharedSession.url(for: $0.id) } ?? URL(string: "coucou://home")!
        return .result(opensIntent: OpenURLIntent(url))
    }
}