How saketh11111/intention works
Intention is a macOS dictation-and-writing app: a person holds the dictation key, speaks, and receives finished text at the focused cursor. The main workflow spans key/audio capture, streaming transcription, optional voice-style writing, and insertion; setup, history, caret guidance, and diagnostics are supporting capabilities. A local Node proxy connects the client to privately configured speech and writing services. Relationships are limited to the README and source-index references; unsampled implementation details are not asserted.
Main entry points: DictationController.swift Dictation controller · server.mjs Local proxy · OnboardingView.swift First-run setup · HoldKey.swift Dictation key
Components 21
Mac app
- First-run setup
apps/macos/Intention/Onboarding/OnboardingView.swift - Setup model
apps/macos/Intention/Onboarding/OnboardingModel.swift - Home window
apps/macos/Intention/Home/HomeView.swift - Preferences
apps/macos/Intention/Settings/SettingsSheet.swift - Caret tracking
apps/macos/Intention/Platform/TextAccess/CaretTracker.swift - Caret dot
apps/macos/Intention/Platform/Panels/CaretDotController.swift
Dictation
- Dictation key
apps/macos/Intention/Platform/Input/HoldKey.swift - Dictation controller
apps/macos/Intention/Dictation/DictationController.swift - Microphone capture
apps/macos/Intention/Platform/Audio/Microphone.swift - Dictation history
apps/macos/Intention/Dictation/DictationHistory.swift
Writing and insertion
- Compose context
apps/macos/Intention/Compose/ComposeContext.swift - Email writer
apps/macos/Intention/Compose/EmailWriter.swift - Writing input
apps/macos/Intention/Compose/WritingInput.swift - Text insertion
apps/macos/Intention/Platform/TextAccess/TextInserter.swift
Backend and records
- Speech stream
apps/macos/Intention/Platform/Backend/DictationStream.swift - Interaction archive
apps/macos/Intention/Platform/Backend/InteractionArchive.swift - Client event sender
apps/macos/Intention/Platform/Backend/ClientEventSender.swift - Backend client
apps/macos/Intention/Platform/Backend/AlphaClient.swift - Local proxy
proxy/src/server.mjs
Other components
- Mac user
- Speech and writing services
Connections 19
- Mac user → Dictation key: holds to dictate
README.md - Dictation key → Dictation controller: starts dictation
- Dictation controller → Microphone capture: records audio
apps/macos/Intention/Dictation/DictationController.swift - Dictation controller → Speech stream: streams audio
apps/macos/Intention/Dictation/DictationController.swift - Speech stream → Local proxy: sends speech
- Local proxy → Speech and writing services: forwards requests
README.md - Dictation controller → Dictation history: records history
apps/macos/Intention/Dictation/DictationController.swift - Dictation controller → Email writer: requests email writing
apps/macos/Intention/Dictation/DictationController.swift - Email writer → Writing input: uses writing input
apps/macos/Intention/Compose/EmailWriter.swift - Dictation controller → Text insertion: inserts finished text
apps/macos/Intention/Dictation/DictationController.swift - Mac user → First-run setup: sets up app
README.md - First-run setup → Setup model: drives setup
apps/macos/Intention/Onboarding/OnboardingView.swift - Mac user → Home window: reviews activity
- Mac user → Preferences: changes preferences
- Caret tracking → Caret dot: tracks caret display
apps/macos/Intention/Platform/Panels/CaretDotController.swift - Dictation controller → Interaction archive: archives interaction
apps/macos/Intention/Dictation/DictationController.swift - Dictation controller → Backend client: requests credentials
apps/macos/Intention/Dictation/DictationController.swift - Client event sender → Interaction archive: reads event journal
apps/macos/Intention/Platform/Backend/ClientEventSender.swift - Backend client → Local proxy: uses configured endpoint