How thecuong96/coucou works
Coucou is a cross-platform companion for AI coding-agent sessions, centered on a Mac notch/island and companion desktop and phone apps. The main workflow is: an agent emits a hook event, Coucou surfaces session activity or an approval/question, and the user responds without leaving their work. Separate product branches cover offline dictation and call notes, local memory and Mochi agents, optional cloud execution, and phone continuity. Relationships are limited to those stated in the README or visible in the supplied excerpts and source index; many listed subsystems were not sampled.
Main entry points: engine.ts Cloud execution · CoucouPhoneApp.swift Phone app · FlowHubMochiAgents.swift Mochi agents · main.rs Agent hook relay
Components 22
Agent companion
- Agent hook relay
windows/hook/src/main.rs - Mac session state
NotchBuddy/Sources/App/AppState.swift - Mac hook server
NotchBuddy/Sources/App/HookServer.swift - Mochi animation
NotchBuddy/Sources/CoucouKit/BotEngine.swift - Desktop session state
windows/src/core/state.ts - Desktop Mochi
windows/src/mochi/engine.ts
Voice and notes
- Voice coordinator
NotchBuddy/Sources/App/Voice/VoiceEngine.swift - Dictation
NotchBuddy/Sources/App/FlowDictation.swift - Call notetaker
NotchBuddy/Sources/App/NoteTaker.swift
Memory and Mochis
- Memory index CLI
brain/src/cli.ts - Memory MCP server
brain/src/mcp/server.ts - Mochi agents
NotchBuddy/Sources/App/FlowHubMochiAgents.swift - Cloud execution
cloud/src/engine.ts - Cloud billing
cloud/src/billing.ts
Phone continuity
- Phone app
NotchBuddy/Sources/Phone/CoucouPhoneApp.swift - Mac phone link
NotchBuddy/Sources/App/PhoneLink/MochiLink.swift - Android link
NotchBuddy/Sources/App/AndroidLink/AndroidLinkService.swift
Desktop experience
- Desktop island UI
windows/src/main.ts - Desktop command bridge
windows/src/core/bridge.ts
Other components
- User
- Coding agent
- Cloud service
Connections 23
- Coding agent → Agent hook relay: emits events
windows/hook/src/main.rs - Agent hook relay → Mac hook server: forwards events
windows/hook/src/main.rs - Mac hook server → Mac session state: updates state
NotchBuddy/Sources/App/AppState.swift - Mac session state → Mochi animation: drives island
- User → Mochi animation: views activity
- User → Desktop Mochi: views activity
- Desktop session state → Desktop Mochi: drives rendering
windows/src/core/state.ts - User → Voice coordinator: speaks or records
- Voice coordinator → Dictation: coordinates speech
- User → Call notetaker: records a call
- User → Memory index CLI: indexes sessions
- Memory index CLI → Memory MCP server: exposes memory
- Memory MCP server → Mochi agents: supplies memory
- User → Mochi agents: configures agents
- Mochi agents → Cloud execution: runs remotely
- Cloud execution → Cloud service: uses cloud service
- Cloud execution → Cloud billing: checks billing
cloud/src/engine.ts - User → Phone app: checks sessions
- Phone app → Mac phone link: links to Mac
- Phone app → Android link: links to Mac
- User → Desktop island UI: uses desktop app
- Desktop island UI → Desktop command bridge: invokes commands
windows/src/main.ts - Desktop command bridge → Desktop session state: reads session state
windows/src/core/bridge.ts