How safwan-nj/taligent-nextgen-core works
TaliGent is a local-first Windows desktop agent, with a CLI and phone-based WhatsApp entry points. A user submits a task through the desktop UI or CLI; the backend coordinates planning and execution through an LLM and scoped tools, using Windows UI Automation first and screen vision as a fallback. Results return through the session/bus layer. The README also documents Telegram, BrainDB, long-task watchers, integrations and a separate Voice Studio. Relationships for unsampled subsystems are omitted unless explicitly documented; several implementation paths are represented at their enclosing source directory.
Main entry points: engine.py Core Engine · orchestrator.py Task Orchestrator · headless_server.py WebSocket Backend · tools.py Tool Registry
Components 28
User Interfaces
- Electron Desktop UI
web_ui/src/App.jsx - WebSocket UI Client
web_ui/src/hooks/useTaliGentSocket.js - Terminal CLI
cli_launcher.py
Agent Runtime
- WebSocket Backend
headless_server.py - Core Engine
core/engine.py - Task Orchestrator
core/orchestrator.py - Plan Execute Loop
core/agent_loop.py - LLM Providers
core/llm_client.py - Security Capabilities
core/capabilities.py - Message Bus
core/bus.py - Chat Sessions
core/sessions.py - Workspace Task State
core/task_store.py - Runtime Configuration
core/config.py
Desktop Actions
- Tool Registry
core/tools.py - Windows UI Automation
core/ui_automation.py - Screen Capture
vision/capture.py - Visual Detection
vision/detector.py
Remote Connectors
- WhatsApp Manager
connectors/whatsapp/whatsapp_manager.py - WhatsApp Connector
connectors/whatsapp/whatsapp_connector.py - Telegram Connector
connectors/telegram/telegram_connector.py
Memory and Voice
- BrainDB Memory
core/brain_db.py - Background Watchers
core/background_watcher.py - Voice Studio Web Server
voice_studio/server.py - Voice Studio MCP
voice_studio/mcp_server.py
Other components
- User
- Voice Studio User
- AI Provider Services
- Phone User
Connections 28
- User → Electron Desktop UI: submits tasks
README.md - Electron Desktop UI → WebSocket UI Client: uses socket
web_ui/src/App.jsx - WebSocket UI Client → WebSocket Backend: sends commands
README.md - User → Terminal CLI: runs tasks
README.md - Terminal CLI → Core Engine: uses engine
README.md - WebSocket Backend → Core Engine: dispatches tasks
- Core Engine → Task Orchestrator: delegates tasks
core/engine.py - Task Orchestrator → Plan Execute Loop: runs plan
core/orchestrator.py - Task Orchestrator → LLM Providers: uses provider
core/orchestrator.py - LLM Providers → AI Provider Services: requests completion
core/llm_client.py - Task Orchestrator → Tool Registry: selects tools
core/orchestrator.py - Core Engine → Security Capabilities: checks permissions
core/engine.py - Tool Registry → Windows UI Automation: uses UIA
README.md - Tool Registry → Screen Capture: captures screen
README.md - Screen Capture → Visual Detection: provides images
- WebSocket Backend → Message Bus: publishes events
- Message Bus → WebSocket UI Client: broadcasts updates
- Core Engine → Chat Sessions: loads sessions
- Core Engine → Workspace Task State: stores task state
core/engine.py - Core Engine → Runtime Configuration: uses configuration
core/engine.py - Phone User → WhatsApp Manager: sends commands
README.md - WhatsApp Manager → WhatsApp Connector: manages connection
connectors/whatsapp/whatsapp_manager.py - WhatsApp Manager → Core Engine: triggers tasks
- User → Telegram Connector: sends messages
- Task Orchestrator → BrainDB Memory: learns workflows
README.md - Core Engine → Background Watchers: monitors long tasks
README.md - Voice Studio User → Voice Studio Web Server: uses web studio
README.md - Voice Studio User → Voice Studio MCP: connects MCP client
README.md