How gguatit/cue works
Cue is a Windows desktop assistant whose main workflow is a pointer-triggered screen capture, vision-AI request, and discreet answer presentation. The graph preserves its distinct capture, answer, and output stages plus configuration, protection, update, and experimental capabilities. Edges reflect the shown IPC calls, imports, or README descriptions; some Rust internals and UI branches were not excerpted, so uncertain implementation links are omitted or marked unverified.
Main entry points: commands.rs Tauri command bridge · answer.ts Answer orchestration · AiTab.tsx AI settings · shortcut.rs Shortcut and gestures
Components 22
Capture and answer
- Shortcut and gestures
src-tauri/src/shortcut.rs - Tauri command bridge
src-tauri/src/commands.rs - Screen capture
src-tauri/src/capture.rs - Vision AI harness
src-tauri/src/ai.rs - AI providers
- Answer orchestration
src/stores/answer.ts
Answer presentation
- Answer overlay
src/overlay/OverlayView.tsx - Tray answer display
src-tauri/src/tray.rs - Keyboard LED output
src-tauri/src/led.rs - Brightness output
src-tauri/src/brightness.rs - Meeting detection
src-tauri/src/meeting.rs
Setup and settings
- Settings state
src/stores/settings.ts - Onboarding
src/views/onboarding/Onboarding.tsx - AI settings
src/views/settings/AiTab.tsx - Security settings
src/views/settings/SecurityTab.tsx
Protection and platform
- Capture protection
src-tauri/src/windows.rs - Survival protection
src-tauri/src/guard.rs - Signed updates
src-tauri/src/updates.rs
Optional capabilities
- Cue Air
src-tauri/src/air.rs - Cue Test Lab
site/src/App.tsx - Prompt library
site/src/components/PromptLibrary.tsx
Other components
- User
Connections 20
- User → Shortcut and gestures: triggers capture
README.md - Shortcut and gestures → Tauri command bridge: dispatches commands
src-tauri/src/shortcut.rs - Tauri command bridge → Screen capture: captures display
src-tauri/src/commands.rs - Tauri command bridge → Vision AI harness: requests answer
src-tauri/src/commands.rs - Vision AI harness → AI providers: sends AI request
README.md - Answer orchestration → Tauri command bridge: invokes capture
src/stores/answer.ts - Answer orchestration → Answer overlay: shows answer
src/stores/answer.ts - Answer orchestration → Tray answer display: sets tray answer
src/stores/answer.ts - Answer orchestration → Keyboard LED output: blinks answer
- Answer orchestration → Brightness output: blinks answer
- Answer orchestration → Meeting detection: checks meeting state
src/stores/answer.ts - Tauri command bridge → Capture protection: protects overlay
src-tauri/src/commands.rs - Onboarding → Settings state: configures setup
src/views/onboarding/Onboarding.tsx - AI settings → Settings state: updates provider
src/views/settings/AiTab.tsx - AI settings → Tauri command bridge: tests connection
src/views/settings/AiTab.tsx - Security settings → Tauri command bridge: requests security actions
- Tauri command bridge → Survival protection: manages protection
src-tauri/src/commands.rs - Tauri command bridge → Signed updates: runs update actions
src-tauri/src/commands.rs - Answer orchestration → Cue Air: publishes answer
src/stores/answer.ts - Cue Test Lab → Prompt library: offers prompt library