How christyl753/alyx works
Alyx is a local desktop assistant: a user opens its floating-orb panel, chats or selects a capability, and receives a response or system action. The desktop communicates with a Python backend over a local WebSocket; the backend coordinates model requests and available tools. Distinct capabilities include conversation context, voice, files, reminders/notes, system monitoring and control, media, model management, and quick settings. Some subsystem links are documented rather than visible in the excerpts, so those edges cite the README; unsampled implementation details are not inferred.
Main entry points: ai.py Tool-using assistant · AlyxPanel.axaml.cs Assistant panel · api.py WebSocket API · BackendClient.cs Backend client
Components 25
Desktop interface
- Floating orb
AlyxDesktop/Controls/AlyxEye.cs - Assistant panel
AlyxDesktop/AlyxPanel.axaml.cs - Widget window
AlyxDesktop/WidgetWindow.axaml.cs - Backend client
AlyxDesktop/Services/BackendClient.cs
Assistant backend
- WebSocket API
api.py - Tool-using assistant
ai.py
Conversation and models
- Invocation context
core/context.py - Conversation history
core/history.py - Model providers
core/llm_provider.py
Assistant capabilities
- System monitoring
core/system_monitor.py - System actions
function/system.py - File operations
function/files.py - Reminders
function/reminders.py - Notes
function/notes.py - Voice input
function/voice.py - Speech output
function/tts.py
Platform controls
- Media control
AlyxDesktop/Platform/MediaService.cs - Quick settings
AlyxDesktop/Platform/QuickSettingsService.cs - Volume control
AlyxDesktop/Platform/AudioService.cs - Brightness control
AlyxDesktop/Platform/BrightnessService.cs - Startup setting
AlyxDesktop/Platform/StartupService.cs - OS command helper
AlyxDesktop/Platform/Shell.cs
Other components
- User
- Local model engine
- Microphone
Connections 27
- User → Floating orb: opens
- Floating orb → Assistant panel: opens panel
- Assistant panel → Backend client: sends requests
AlyxDesktop/AlyxPanel.axaml.cs - Widget window → Backend client: uses
AlyxDesktop/WidgetWindow.axaml.cs - Backend client → WebSocket API: WebSocket messages
AlyxDesktop/Services/BackendClient.cs - WebSocket API → Tool-using assistant: dispatches chat
api.py - Tool-using assistant → Model providers: requests completion
ai.py - Model providers → Local model engine: queries models
- Tool-using assistant → Invocation context: enriches prompt
ai.py - WebSocket API → Conversation history: manages history
api.py - Tool-using assistant → File operations: invokes tools
ai.py - Tool-using assistant → System actions: invokes tools
- Tool-using assistant → Reminders: invokes tools
- Tool-using assistant → Notes: invokes tools
- Tool-using assistant → System monitoring: uses monitoring
core/system_monitor.py - WebSocket API → Voice input: handles voice input
- WebSocket API → Speech output: provides speech
api.py - Microphone → Voice input: captures audio
- Assistant panel → Media control: controls playback
AlyxDesktop/AlyxPanel.axaml.cs - Assistant panel → Quick settings: changes toggles
AlyxDesktop/AlyxPanel.axaml.cs - Assistant panel → Volume control: sets volume
AlyxDesktop/AlyxPanel.axaml.cs - Assistant panel → Brightness control: sets brightness
AlyxDesktop/AlyxPanel.axaml.cs - Assistant panel → Startup setting: sets startup
AlyxDesktop/AlyxPanel.axaml.cs - Quick settings → OS command helper: runs commands
AlyxDesktop/Platform/QuickSettingsService.cs - Media control → OS command helper: runs commands
AlyxDesktop/Platform/MediaService.cs - Volume control → OS command helper: runs commands
AlyxDesktop/Platform/AudioService.cs - System actions → System monitoring: reads metrics
function/system.py