How kuafuai/andee works
Andee is an Android resident voice-and-device agent. The main user flow is speech or text input into its persistent service, which obtains a response from its on-device or configured model, dispatches permitted device actions, and presents the result through speech and the floating interface. Separate capabilities include accessibility-based screen interaction, notification triage, scheduled scenes, private notebook memory, meetings, and device communication. Edges are limited to relationships shown by the supplied excerpts, SOURCE INDEX references, or README; several unsampled subsystem links are therefore omitted.
Main entry points: BodyCoreService.kt Core service · FloatingWindowUi.kt Floating interface · LocalBrain.kt Local brain · TtsController.kt Speech synthesis
Components 23
Resident runtime
- Core service
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Accessibility service
app/src/main/java/net/kuafuai/andee/ScreenBodyService.kt - Command dispatcher
app/src/main/java/net/kuafuai/andee/net/CommandDispatcher.kt - Tool schemas
app/src/main/java/net/kuafuai/andee/net/ToolSchemas.kt - WebSocket hub
app/src/main/java/net/kuafuai/andee/net/BodyWsClient.kt
Conversation and voice
- Speech recognition
app/src/main/java/net/kuafuai/andee/asr/AsrController.kt - Audio capture
app/src/main/java/net/kuafuai/andee/audio/AudioIO.kt - Local brain
app/src/main/java/net/kuafuai/andee/brain/LocalBrain.kt - Model client
app/src/main/java/net/kuafuai/andee/brain/LlmClient.kt - Speech synthesis
app/src/main/java/net/kuafuai/andee/tts/TtsController.kt
Device capabilities
- Screen interaction
app/src/main/java/net/kuafuai/andee/screen/ScreenController.kt - Notification triage
app/src/main/java/net/kuafuai/andee/device/NotificationRelayService.kt - Device actions
app/src/main/java/net/kuafuai/andee/device/DeviceActionsController.kt - Device communications
app/src/main/java/net/kuafuai/andee/device/DeviceCommsController.kt - Meeting recorder
app/src/main/java/net/kuafuai/andee/meeting/MeetingRecorder.kt
Memory and routines
- Scheduler and scenes
app/src/main/java/net/kuafuai/andee/config/Scheduler.kt - Private notebook
app/src/main/java/net/kuafuai/andee/config/Notebook.kt - Voice configuration
app/src/main/java/net/kuafuai/andee/config/VoiceConfig.kt
User experience
- Floating interface
app/src/main/java/net/kuafuai/andee/ui/FloatingWindowUi.kt - Cards and prompts
app/src/main/java/net/kuafuai/andee/ui/CardUi.kt - Conversation history
app/src/main/java/net/kuafuai/andee/ui/ChatHistory.kt
Other components
- User
- OpenAI-compatible model
Connections 26
- User → Core service: speaks to
README.md - Core service → Speech recognition: starts recognition
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Speech recognition → Audio capture: captures audio
app/src/main/java/net/kuafuai/andee/asr/AsrController.kt - Core service → Command dispatcher: dispatches commands
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Command dispatcher → Tool schemas: uses tools
app/src/main/java/net/kuafuai/andee/net/CommandDispatcher.kt - Core service → Local brain: submits turns
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Local brain → Model client: requests completions
- Model client → OpenAI-compatible model: sends requests
README.md - Core service → Speech synthesis: speaks responses
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Speech synthesis → Audio capture: streams playback
app/src/main/java/net/kuafuai/andee/tts/TtsController.kt - Speech synthesis → Voice configuration: reads settings
app/src/main/java/net/kuafuai/andee/tts/TtsController.kt - Accessibility service → Core service: attaches capability
app/src/main/java/net/kuafuai/andee/ScreenBodyService.kt - Core service → Screen interaction: uses screen tools
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Notification triage → Core service: offers notifications
app/src/main/java/net/kuafuai/andee/device/NotificationRelayService.kt - Core service → Device actions: dispatches actions
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Core service → Device communications: dispatches communications
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Core service → Meeting recorder: handles meeting turns
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Core service → WebSocket hub: sends events
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Core service → Scheduler and scenes: runs routines
- Local brain → Private notebook: keeps memories
- User → Floating interface: interacts with
README.md - Core service → Floating interface: controls overlay
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Core service → Conversation history: records conversation
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt - Floating interface → Cards and prompts: shows cards
app/src/main/java/net/kuafuai/andee/ui/CardUi.kt - Floating interface → Conversation history: shows history
app/src/main/java/net/kuafuai/andee/ui/FloatingWindowUi.kt - Core service → Voice configuration: reads preferences
app/src/main/java/net/kuafuai/andee/BodyCoreService.kt