How muhammadnaumantahir/mia works
Mia is a local-first personal AI companion, centered on a conversation workflow that connects user input to the Brain’s intent, context, routing, tool execution and verification stages, then returns a response with memory continuity. The repository also contains distinct capabilities for voice, computer access, personal-life workflows, self-programming, source analysis and evolution measurement. The README and source index establish the major product branches; where runtime wiring was not shown, the graph avoids asserting specific calls.
Main entry points: orchestrator.py Brain Workflow · service.py Model Gateway · api.py Evolution Observatory · tasks.py Computer Tasks
Components 22
Conversation Core
- Voice I/O
src/mia/voice - Brain Workflow
src/mia/brain/orchestrator.py - Intent Planning
src/mia/brain/intent.py - Tool Broker
src/mia/brain/broker.py - Holographic UI
frontend/holo/src/main.js
AI Gateway
- Model Gateway
src/mia/gateway/service.py - Model Providers
src/mia/gateway/providers.py - Model Routing
src/mia/gateway/routing.py
Memory Knowledge
- Conversation Memory
src/mia/memory/store.py - Structured Memory
src/mia/memory/structured.py - Document Knowledge
src/mia/knowledge/document_ingestion.py
Personal Operations
- Computer Tasks
src/mia/computer/tasks.py - Action Approvals
src/mia/computer/approvals.py - Computer Control
src/mia/computer/control.py - Life Workflows
src/mia/life/workflows.py - Browser Research
src/mia/life/research.py
Governed Evolution
- Evolution Observatory
src/mia/observatory/api.py - Mia Code Graph
src/mia/codegraph/indexer.py - Capability Evolution
src/mia/evolution/capabilities.py - Sandbox Validation
src/mia/evolution/sandbox_worker.py - SPS Layers
src/mia/sps/layers.py
Other components
- Owner
Connections 21
- Owner → Brain Workflow: sends input
src/mia/brain/orchestrator.py - Brain Workflow → Intent Planning: analyzes intent
src/mia/brain/orchestrator.py - Brain Workflow → Model Gateway: discovers models
src/mia/brain/orchestrator.py - Brain Workflow → Tool Broker: gates tools
src/mia/brain/orchestrator.py - Brain Workflow → Conversation Memory: uses memory
src/mia/brain/orchestrator.py - Brain Workflow → Owner: returns response
src/mia/brain/orchestrator.py - Owner → Voice I/O: speaks or types
README.md - Voice I/O → Brain Workflow: provides input
README.md - Brain Workflow → Model Gateway: requests inference
src/mia/brain/orchestrator.py - Model Gateway → Model Providers: dispatches requests
src/mia/gateway/service.py - Model Gateway → Model Routing: ranks candidates
src/mia/gateway/service.py - Computer Tasks → Action Approvals: checks approval
src/mia/computer/tasks.py - Computer Tasks → Computer Control: checks control
src/mia/computer/tasks.py - Life Workflows → Browser Research: offers research
- Document Knowledge → Conversation Memory: stores documents
src/mia/knowledge/document_ingestion.py - Holographic UI → Owner: renders interaction
README.md - Evolution Observatory → Brain Workflow: exposes capability
src/mia/observatory/api.py - Evolution Observatory → Mia Code Graph: exposes graph
src/mia/observatory/api.py - Evolution Observatory → Capability Evolution: exposes lab
README.md - Capability Evolution → Sandbox Validation: validates candidate
- SPS Layers → Brain Workflow: defines layers
README.md