How mattmezza/humux works
Humux is a self-hosted personal AI agent that brings messaging, tools, memory, and proactive jobs into one assistant. The main workflow is a user message arriving through Telegram, passing to AgentCore for model-driven reasoning and tool use, then returning as a reply; voice can transcribe incoming audio and synthesize spoken responses. Separate branches cover agent identities and administration, persistent memory, scheduled work, and integrations. Relationships are based on the supplied excerpts, SOURCE INDEX references, and README; unsampled implementation details are not inferred.
Main entry points: agent.py AgentCore · telegram.py Telegram channel · main.py Application startup · scheduler.py Scheduler
Components 28
Channels and API
- Telegram channel
humux/channels/telegram.py - Admin API
humux/api/admin.py - Voice pipeline
humux/voice/pipeline.py
Agent runtime
- AgentCore
humux/core/agent.py - LLM clients
humux/core/llm.py - Prompt builder
humux/core/prompt_builder.py - Reasoning
humux/core/reasoning.py - Goal decomposition
humux/core/goal_decomposition.py - Application startup
humux/core/main.py
Identity and state
- Agent identities
humux/core/agents.py - Configuration
humux/core/config.py - Config store
humux/core/config_store.py - Conversation history
humux/core/history.py - Persistent memory
humux/core/memory.py - Embeddings
humux/core/embeddings.py
Tools and capabilities
- Skills engine
humux/core/skills.py - Tool registry
humux/core/tools.py - Browser automation
humux/tools/browser.py - Web artifacts
humux/core/artifacts.py - Deep research
humux/core/deep_research.py - Subagents
humux/core/subagents.py - Calendar tools
humux/tools/calendar_read.py - Contacts tools
humux/tools/contacts.py - WhatsApp CLI
humux/core/wacli.py
Other components
- User
- Whistle STT service
whistle/server.py
Connections 29
- User → Telegram channel: sends message
humux/channels/telegram.py - Telegram channel → AgentCore: dispatches turn
humux/channels/telegram.py - Telegram channel → Voice pipeline: uses voice
humux/channels/telegram.py - AgentCore → Telegram channel: sends reply
humux/channels/telegram.py - AgentCore → LLM clients: requests completion
humux/core/agent.py - AgentCore → Prompt builder: builds prompt
humux/core/agent.py - AgentCore → Reasoning: uses reasoning
- AgentCore → Goal decomposition: decomposes goals
humux/core/agent.py - AgentCore → Persistent memory: reads and writes
humux/core/agent.py - Persistent memory → Embeddings: retrieves vectors
humux/core/memory.py - AgentCore → Agent identities: resolves identity
humux/core/agent.py - AgentCore → Skills engine: loads skills
humux/core/agent.py - AgentCore → Tool registry: offers tools
humux/core/agent.py - Tool registry → Browser automation: enables browsing
- AgentCore → Web artifacts: creates artifacts
humux/core/agent.py - AgentCore → Deep research: runs research
humux/core/agent.py - AgentCore → Subagents: delegates tasks
humux/core/agent.py - Scheduler → AgentCore: runs scheduled work
humux/core/scheduler.py - Scheduler → Job store: reads and writes jobs
humux/core/scheduler.py - AgentCore → Conversation history: records conversation
humux/core/agent.py - Application startup → Scheduler: starts scheduler
humux/core/main.py - Application startup → Telegram channel: starts channel
humux/core/main.py - Application startup → Admin API: starts API
humux/core/main.py - Admin API → Config store: manages settings
humux/api/admin.py - Application startup → Config store: loads settings
humux/core/main.py - Voice pipeline → Whistle STT service: uses remote STT
- AgentCore → Calendar tools: uses calendar tools
- AgentCore → Contacts tools: uses contacts tools
- AgentCore → WhatsApp CLI: uses WhatsApp CLI