How definetlynotai/coucou_windows works
CouCou is a Windows desktop companion for local-model chat, with a compact animated mascot interface. The main workflow is user prompt or attachment → chat UI and shared state → Tauri bridge → Rust chat/tool handling → Ollama, local project search, web search, or optional integrations → response in the chat UI. Separate branches cover settings, voice, project indexing, and file uploads. The source index and excerpts support the named modules; several backend and view connections are documented capabilities rather than inspected call paths, so those links are marked unverified or cited to the README.
Main entry points: chat.ts Chat View · island.ts Island Controller · tools.rs Tool Dispatch · bridge.ts Tauri Bridge
Components 22
Mascot Interface
- Island Controller
src/island/island.ts - Mochi Animator
src/mochi/engine.ts - Upload Animation
src/upload/sequence.ts - DOM Helpers
src/views/dom.ts
Chat and Agents
- Chat View
src/views/chat.ts - App State
src/core/state.ts - Tauri Bridge
src/core/bridge.ts - Agent Profiles
src/core/agents.ts - Browser Model
src/core/browser-ai.ts
Desktop Backend
- Ollama Chat
src-tauri/src/ollama.rs - Tool Dispatch
src-tauri/src/tools.rs - MCP Servers
src-tauri/src/mcp.rs - Encrypted Storage
src-tauri/src/storage.rs - Settings
src-tauri/src/settings.rs
Workspace Features
- Project Index
src-tauri/src/index.rs - Web Search
src-tauri/src/web.rs - Service Integrations
src-tauri/src/integrations.rs - Voice Features
src/core/voice.ts - Attachment Canvas
src/upload/canvas.ts
Other components
- User
- Ollama Service
- Chromium Browser
Connections 24
- User → Island Controller: interacts
README.md - Island Controller → Chat View: hosts view
- Island Controller → Mochi Animator: renders
src/island/island.ts - Island Controller → Upload Animation: steps animation
src/island/island.ts - Island Controller → DOM Helpers: builds elements
src/island/island.ts - Chat View → Tauri Bridge: sends requests
src/views/chat.ts - Chat View → App State: reads state
src/views/chat.ts - Chat View → Agent Profiles: uses profiles
src/views/chat.ts - Chat View → Browser Model: uses browser model
src/views/chat.ts - App State → Tauri Bridge: loads chats
src/core/state.ts - Tauri Bridge → Ollama Chat: invokes chat
- Ollama Chat → Ollama Service: requests model
README.md - Ollama Chat → Tool Dispatch: handles tool calls
src-tauri/src/tools.rs - Tool Dispatch → MCP Servers: dispatches MCP
src-tauri/src/tools.rs - Tool Dispatch → Project Index: runs project tools
src-tauri/src/index.rs - Tool Dispatch → Web Search: runs search tools
src-tauri/src/tools.rs - Tool Dispatch → Service Integrations: runs integrations
- Project Index → Ollama Service: embeds documents
src-tauri/src/index.rs - Project Index → Encrypted Storage: reads and writes index
src-tauri/src/index.rs - Settings → Encrypted Storage: persists preferences
src-tauri/src/settings.rs - Browser Model → Chromium Browser: retrieves pages
README.md - Chat View → Voice Features: supports voice
src/views/chat.ts - User → Attachment Canvas: attaches files
README.md - Attachment Canvas → Tauri Bridge: submits attachment