mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
- The iPhone app, its widgets and notifications are called Botan (same app ID and iCloud container). It stays an Apple-style app; Botan comes in as touches: the #FF5A24 accent, its sign and wordmark, Mochi. - Home: a Botan card with what the box shows right now, or "Link" for those who have one. Settings: Botan first. Setup guide: a Botan step. - Mac: "Also while my Mac is unlocked" keeps Mochi in the iPhone's Dynamic Island as long as an agent works. The iPhone updates the running Live Activity itself whenever it is awake (Botan's signal, iCloud pushes). - CLAUDE.md: the iPhone app may be restyled for Botan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
4.3 KiB
4.3 KiB
Coucou — guide for AI coding agents
Coucou is a native macOS app (NotchBuddy/); windows/ is the Tauri version for Windows and Linux. Mochi, a small animated character living in the MacBook notch, shows AI coding agent sessions (Claude Code, Gemini CLI, Antigravity and more) and a few integrations, and lets the user approve, answer, chat and drop files from the notch.
Where things are
NotchBuddy/Sources/App/— Mac-only Swift code.NotchBuddy/Sources/CoucouKit/— code shared with the iPhone app (Mochi's BotEngine and outfits, pills, diff, models).NotchBuddy/Sources/Phone/— iPhone app (CoucouPhonetarget), with its widgets inSources/Widgets/and the expanded approval notification inSources/NotificationContent/.NotchBuddy/Resources/sounds/— the 28 WAV sounds.NotchBuddy/project.yml— XcodeGen project (never edit the.xcodeprojby hand).NotchBuddy/Sources/CoucouKit/PillCatalog.swift— single source of truth for all declared pills (workspace tools, agents, AI providers, services). Every pill ID, color, category and subtitle lives here.docs/SPEC.md,docs/INTEGRATIONS.md— behaviour, views, states, integrations (in French).design/prototype/notch-buddy.html— original prototype, the visual source of truth.design/captures/— target screenshots.windows/— the Tauri app for Windows and Linux: Rust insrc-tauri/, TypeScript insrc/, thecoucou-hookrelay inhook/.windows/README.mdlists what differs from the Mac.docs/*.html— the GitHub Pages site (privacy, terms, support, legal notice).relay/— the Coucou relay, a stateless Cloudflare Worker that forwards the iPhone Live Activity pushes (it holds the APNs key, which must never ship in an app). Seerelay/README.md.
Build
cd NotchBuddy && xcodegen && xcodebuild -scheme NotchBuddy -configuration Debug build
To run it day to day on the Mac (signed, iPhone link, permissions kept across builds): ./scripts/dev-install.sh — it installs the only Coucou in /Applications and removes the copies earlier builds left.
Windows and Linux: cd windows && npm install && npm run tauri dev
Rules
- Swift 6, SwiftUI + AppKit. No third-party dependencies unless truly unavoidable. The character is drawn in code (
Canvas+TimelineView), no Rive/Lottie/images. - Secrets live in the Keychain, never on disk or in git.
- No telemetry. Network calls only to services the user configured.
- Never block Claude Code: if the app doesn't answer, the hook exits immediately.
- Never overwrite
~/.claude/settings.json: dated backup, merge, show the diff, write only after the user confirms. - Never send an email or approve a Claude Code or Codex permission without an explicit click.
- Performance: 0 % CPU when the island is hidden.
- Keep the bundle identifier
fr.louisraille.NotchBuddy(Keychain items, preferences and permissions depend on it). - Never restyle what already ships (pills, cards, Settings, chat…): existing views stay exactly as they are in
main, which is the App Store build. Change the look of an existing view only when explicitly asked. Exception (Louis, 22 Nov 2026): the iPhone app (Sources/Phone,Sources/Widgets,Sources/NotificationContent) is becoming Botan, so its views may change. It stays an Apple-style iOS app (system font, Settings, glass); Botan comes in as touches: the orange #FF5A24 accent, the Botan logo, Mochi. - Pill IDs are stable contract values (Keychain, UserDefaults, hook routing): never rename an existing pill ID.
- New views follow the existing app style.
design/prototype/notch-buddy.htmlanddesign/captures/are references for new work, not a reason to change existing views. - Every release adds its CHANGELOG.md section, a row in the README Versions table, and commits the regenerated Info.plist with the new version.
- Every release also adds its What's new, shown once in the notch or the island after Coucou updates itself: an entry for the new version in
NotchBuddy/Resources/whats-new.json(Mac, the 16 languages) orwindows/src/whats-new/whats-new.json(Windows and Linux, the 14 languages). 1 to 4 items picked from the CHANGELOG section, each with an icon fromscripts/test-whats-new.py, a short title and one line, translated in every language.python3 scripts/test-whats-new.pychecks it; CI andrelease.shfail without it.