How arti2210/corvus-x works
Corvus X is a personal AI assistant reached primarily through Telegram, with a React operations interface. The main conversational path runs from Telegram into the channel adapter and application pipeline, which composes a response using LLM, persona/style, and contact-memory services before sending it back through the channel. Separate product branches provide web/API management, voice and calls, and ReAct tools. The README documents these capabilities; several internal connections below are supported by the source index rather than inspected implementation excerpts.
Main entry points: pipeline_runner.py Conversation pipeline · telegram_channel.py Telegram channel · knowledge_base.py Knowledge base · main.py Runtime startup
Components 22
Channels and UI
- Telegram channel
src/adapters/channels/telegram_channel.py - Management SPA
frontend/src/App.tsx
Assistant application
- Conversation pipeline
src/core/application/pipeline_runner.py - Dialog manager
src/core/application/dialog_manager.py - LLM orchestration
src/core/application/llm_orchestrator.py - Persona and prompts
src/core/application/persona_manager.py - Style imprinting
src/core/application/style_imprinter.py - ReAct agent
src/core/application/agent_loop.py
Runtime adapters
- REST API
src/adapters/api/app.py - Agent tools
src/tools - Voice adapters
src/adapters/voice - Live call engine
src/adapters/calls/engine.py
Memory and persistence
- Contact memory
src/core/application/contact_memory_manager.py - Knowledge base
src/core/application/knowledge_base.py - Memory consolidation
src/core/application/consolidation/worker.py - Persistence adapters
src/adapters/persistence
Operations
- Runtime startup
src/main.py - Dependency assembly
src/di_container.py - Background loops
src/core/application/background_loops.py - Multi-stage orchestrator
orchestrator/main.py
Other components
- Messenger user
- Telegram
Connections 21
- Messenger user → Telegram: sends messages
README.md - Telegram → Telegram channel: receives via
README.md - Telegram channel → Dialog manager: routes messages
- Dialog manager → Conversation pipeline: runs conversation
- Conversation pipeline → LLM orchestration: requests generation
src/core/application/pipeline_runner.py - Conversation pipeline → Persona and prompts: uses persona
src/core/application/pipeline_runner.py - Conversation pipeline → Style imprinting: uses style
src/core/application/pipeline_runner.py - Conversation pipeline → Contact memory: persists memory
src/core/application/pipeline_runner.py - Conversation pipeline → Knowledge base: uses memory
src/core/application/pipeline_runner.py - ReAct agent → Agent tools: dispatches tools
README.md - Conversation pipeline → ReAct agent: supports agent loop
- Contact memory → Persistence adapters: stores profiles
- Knowledge base → Persistence adapters: reads knowledge
src/adapters/persistence/knowledge_repository.py - Memory consolidation → Knowledge base: consolidates memory
- Telegram channel → Live call engine: provides call client
src/adapters/calls/engine.py - Live call engine → Voice adapters: uses voice services
- Management SPA → REST API: calls management API
- Runtime startup → Dependency assembly: builds services
src/main.py - Runtime startup → Background loops: wires loops
src/main.py - Dependency assembly → REST API: creates app
src/di_container.py - Multi-stage orchestrator → Telegram: coordinates stages