How shubhamshnd/open-cluely works
Open-Cluely is an Electron copilot for interviews and meetings. The main workflow is to capture system and microphone audio and screenshots, assemble enabled context in the desktop chat, and request an AI response or meeting notes. The app also offers settings, persistent session state, a stealth-capable window, and a mobile chat companion. The graph uses the README and source-index references for relationships; some implementation details, especially renderer-to-main IPC wiring, were not excerpted.
Main entry points: start-application.js Application startup · renderer.js Assistant interface · gemini-runtime.js AI provider runtime · service.js Streaming transcription service
Components 22
Desktop shell
- Application startup
src/main-process/start-application.js - Stealth window
src/main-process/features/window/window-controller.js - Settings panel
src/windows/assistant/renderer/features/settings/settings-panel-manager.js - Persisted session state
src/services/state/app-state.js
Session capture
- Transcription controls
src/windows/assistant/renderer/features/transcription/transcription-manager.js - Audio capture pipeline
src/windows/assistant/renderer/features/assembly-ai/audio-pipeline.js - Transcript buffering
src/windows/assistant/renderer/features/assembly-ai/transcript-buffer.js - Streaming transcription service
src/services/assembly-ai/service.js - AssemblyAI
- Screenshot capture and retention
src/main-process/features/assistant/screenshot-manager.js
Chat and context
- Assistant interface
src/windows/assistant/renderer.js - Chat and actions
src/windows/assistant/renderer/features/chat/chat-ui-manager.js - AI context selection
src/windows/assistant/renderer/features/ai-context/context-bundle.js - Message inclusion controls
src/windows/assistant/renderer/features/ai-context/message-store.js
AI services
- AI provider runtime
src/main-process/features/assistant/gemini-runtime.js - Assistant request handling
src/main-process/features/assistant/ipc.js - Gemini service
src/services/ai/gemini-service.js - Ollama service
src/services/ai/ollama-service.js - AI action prompts
src/services/ai/prompts.js
Mobile companion
- Mobile chat server
src/main-process/features/mobile-server/server.js
Other components
- Interviewer or host
- Phone browser
Connections 33
- Interviewer or host → Assistant interface: uses
- Application startup → Stealth window: creates
src/main-process/start-application.js - Application startup → Persisted session state: loads and saves
src/main-process/start-application.js - Application startup → Screenshot capture and retention: initializes
src/main-process/start-application.js - Application startup → AI provider runtime: initializes
src/main-process/start-application.js - Application startup → Assistant request handling: registers
src/main-process/start-application.js - Application startup → Streaming transcription service: initializes
src/main-process/start-application.js - Application startup → Mobile chat server: starts
src/main-process/start-application.js - Assistant interface → Chat and actions: uses
src/windows/assistant/renderer.js - Assistant interface → AI context selection: uses
src/windows/assistant/renderer.js - Assistant interface → Message inclusion controls: uses
src/windows/assistant/renderer.js - Assistant interface → Transcription controls: uses
src/windows/assistant/renderer.js - Assistant interface → Settings panel: uses
src/windows/assistant/renderer.js - Chat and actions → Message inclusion controls: records messages
src/windows/assistant/renderer/features/chat/chat-ui-manager.js - Interviewer or host → Transcription controls: starts and controls
- Transcription controls → Audio capture pipeline: controls capture
src/windows/assistant/renderer/features/transcription/transcription-manager.js - Audio capture pipeline → Streaming transcription service: streams audio
- Streaming transcription service → AssemblyAI: streams audio
- Streaming transcription service → Transcript buffering: emits transcript
- Interviewer or host → Screenshot capture and retention: requests capture
- Interviewer or host → Chat and actions: chooses AI action
- AI context selection → Message inclusion controls: selects context
src/windows/assistant/renderer/features/ai-context/context-bundle.js - Assistant request handling → AI provider runtime: dispatches requests
- Assistant request handling → Screenshot capture and retention: requests images
- AI provider runtime → Gemini service: selects provider
src/main-process/features/assistant/gemini-runtime.js - AI provider runtime → Ollama service: selects provider
src/main-process/features/assistant/gemini-runtime.js - Gemini service → AI action prompts: builds prompts
src/services/ai/gemini-service.js - Ollama service → AI action prompts: builds prompts
src/services/ai/ollama-service.js - Interviewer or host → Settings panel: configures app
- Settings panel → Persisted session state: saves settings
- Phone browser → Mobile chat server: opens chat
- Mobile chat server → AI provider runtime: requests AI responses
src/main-process/features/mobile-server/server.js - Mobile chat server → Screenshot capture and retention: reads screenshots
src/main-process/features/mobile-server/server.js