How jeevanjames2000/native-ai-cluely-assistant works
Native AI Assistant is an Electron desktop copilot for live conversations and screen-based questions. Its main workflow captures microphone/system audio or screen content, transcribes or extracts context, retrieves relevant local knowledge, generates an answer, and presents it in an overlay; meeting summaries and diagrams are additional product outcomes. The graph also shows the RAG embedding/retrieval layer and local persistence. README-documented links are cited to README.md; source-index links are cited only where the index names the relationship. Unsampled wiring is not inferred.
Main entry points: IntelligenceManager.ts Conversation intelligence · RAGManager.ts RAG orchestration · ProviderRouter.ts LLM gateway · MicrophoneCapture.ts Audio capture
Components 21
Capture and transcription
- Audio capture
electron/audio/MicrophoneCapture.ts - Native audio
native-module/src/lib.rs - Speech recognition
electron/audio/AppleSpeechSTT.ts - Screen capture
electron/ScreenshotHelper.ts - Screen intelligence
electron/services/screen/ScreenContextService.ts
Context and answers
- Conversation intelligence
electron/IntelligenceManager.ts - Context fusion
electron/intelligence/ContextFusionEngine.ts - Answer orchestration
electron/context-intelligence/orchestration/engine-bridge.ts - LLM gateway
electron/llm/ProviderRouter.ts
Knowledge and persistence
- RAG orchestration
electron/rag/RAGManager.ts - Embedding pipeline
electron/rag/EmbeddingPipeline.ts - Vector store
electron/rag/VectorStore.ts - Local database
electron/db/DatabaseManager.ts
Desktop experience
- App orchestration
electron/main.ts - Desktop UI
src/App.tsx - Assistant overlay
src/App.tsx
Meeting and visual outputs
- Meeting intelligence
electron/services/meeting/MeetingSummaryV3.ts - Diagram answers
electron/intelligence/DiagramIntelligenceService.ts
Other components
- User
- AI providers
- Meeting notes
Connections 25
- User → Audio capture: provides audio
README.md - Audio capture → Native audio: uses native capture
README.md - Audio capture → Speech recognition: feeds transcription
README.md - User → Screen capture: requests capture
README.md - Screen capture → Screen intelligence: supplies screen context
README.md - Speech recognition → Conversation intelligence: transcript stream
README.md - Screen intelligence → Conversation intelligence: visual context
README.md - App orchestration → Conversation intelligence: coordinates
electron/main.ts - Conversation intelligence → Context fusion: assembles context
- Context fusion → Answer orchestration: prepares prompt context
- Answer orchestration → LLM gateway: routes answer request
electron/context-intelligence/orchestration/engine-bridge.ts - Conversation intelligence → RAG orchestration: uses retrieval
- RAG orchestration → Embedding pipeline: initializes embeddings
electron/rag/RAGManager.ts - RAG orchestration → LLM gateway: streams response
electron/rag/RAGManager.ts - Embedding pipeline → Vector store: stores vectors
electron/rag/EmbeddingPipeline.ts - RAG orchestration → Local database: reads meeting data
electron/rag/RAGManager.ts - LLM gateway → AI providers: dispatches inference
- LLM gateway → Assistant overlay: streams response
README.md - Desktop UI → Assistant overlay: renders
src/App.tsx - App orchestration → Desktop UI: serves desktop UI
README.md - Conversation intelligence → Meeting intelligence: supports meeting summaries
README.md - Meeting intelligence → Meeting notes: produces notes
README.md - Conversation intelligence → Diagram answers: generates visual answers
README.md - RAG orchestration → Vector store: retrieves evidence
electron/rag/RAGManager.ts - Local database → Meeting notes: persists locally
README.md