How namadeku/aion works
Aion is a desktop voice assistant with a text-capable web UI. Its main workflow captures speech, detects activation, transcribes it, routes the request to commands or an LLM, and speaks a response; plugins add skills, while mood, memory, and avatar features enrich interaction. The Python application container wires runtime services, and the authenticated UI backend exposes settings and events to the frontend. README claims preserve documented capabilities even where their source was not sampled; those subsystems are represented at supported directory paths. Unshown runtime links are omitted or marked unverified.
Main entry points: app.py Application runtime · dialog.py Dialog manager · brain.py LLM & streaming · pipeline.py Voice pipeline
Components 26
Interaction
- Desktop UI
frontend/src/main.ts - UI API & events
src/aion/ui/server.py - UI API client
frontend/src/api.ts - Settings pages
frontend/src/pages/llm.ts - Voice pipeline
src/aion/audio/pipeline.py - Speech recognition
src/aion/stt/whisper_engine.py
Conversation
- Intent routing
src/aion/core/router.py - Dialog manager
src/aion/core/dialog.py - LLM & streaming
src/aion/llm/brain.py - Memory & episodes
src/aion/llm/memory.py - Speech synthesis
src/aion/tts/base.py
Skills
- User commands
src/aion/commands/engine.py - Command definitions
src/aion/commands/store.py - Plugin manager
src/aion/plugins/manager.py - Plugin SDK
src/aion/sdk/plugin.py - MCP tools
src/aion/llm/mcp_hub.py - Built-in skills
src/aion/plugins/builtin
Character & voice
- Mood & initiative
src/aion/core/mood.py - Avatar rendering
frontend/src/avatar/motion.ts - Desktop character
src/aion/ui/desktop.py
App platform
- Event bus
src/aion/core/events.py - Application runtime
src/aion/app.py - Configuration
src/aion/config/schema.py
Other components
- User
- Model services
- Telegram bot
Connections 29
- User → Voice pipeline: speaks to
- User → Desktop UI: types into
- Voice pipeline → Speech recognition: transcribes with
src/aion/audio/pipeline.py - Voice pipeline → Dialog manager: submits request
- Dialog manager → Intent routing: routes intent
src/aion/core/dialog.py - Intent routing → User commands: dispatches commands
src/aion/commands/engine.py - Dialog manager → LLM & streaming: asks model
- LLM & streaming → Memory & episodes: uses memory
- LLM & streaming → MCP tools: calls MCP tools
- Dialog manager → Speech synthesis: speaks response
- User commands → Command definitions: reads commands
src/aion/commands/engine.py - Plugin manager → Plugin SDK: loads plugins
src/aion/plugins/manager.py - Plugin manager → Built-in skills: discovers skills
- Application runtime → Voice pipeline: starts voice
src/aion/app.py - Application runtime → Plugin manager: loads plugins
src/aion/app.py - Application runtime → Event bus: creates bus
src/aion/app.py - Application runtime → Configuration: reads settings
src/aion/app.py - UI API & events → Event bus: streams events
src/aion/ui/server.py - UI API & events → Configuration: reads and updates
src/aion/ui/server.py - Desktop UI → UI API client: uses API
frontend/src/main.ts - UI API client → UI API & events: HTTP requests
- Settings pages → UI API client: loads settings
frontend/src/pages/llm.ts - Application runtime → Mood & initiative: starts mood
src/aion/app.py - Mood & initiative → Avatar rendering: drives expression
- Speech synthesis → Avatar rendering: lip-syncs
- Desktop UI → Desktop character: opens desktop mode
- Model services → Speech recognition: provides models
- LLM & streaming → Model services: uses optional providers
- Telegram bot → Built-in skills: remote control