Skip to main content

Architecture

Ultra-Dex is an AI Orchestration Meta-Layer — a cognitive operating system for agent swarms.

System Overview

User Request

CLI / API / Dashboard

Smart Router (cost / latency / quality)
├── 16+ AI Providers
└── Fallback Chains

Agent Orchestrator (Nexus)
├── Architect Agent
├── Coder Agent
├── Reviewer Agent
├── Tester Agent
└── DevOps Agent

Memory System (Hot / Warm / Cold)
├── Vector Search (Embeddings)
├── Graph RAG (Relationships)
└── Keyword (Inverted Index)

Result → User

Core Components

ComponentLocationPurpose
Nexus Orchestratorsrc/core/orchestration/Task decomposition, agent coordination
Smart Routersrc/core/ai/router.jsProvider selection (1,090 lines)
Memory Systemsrc/core/memory/3-tier memory (3,576 lines, 28 files)
Agent Poolsrc/core/agents/16 specialized agents
MCP Serversrc/core/mcp/Model Context Protocol hub
Provider Registrysrc/core/ai/provider-registry.jsAuto-discovery (162 lines)

Deployment

  • Local: CLI + SQLite + remote AI APIs
  • Docker: docker-compose up -d (Postgres, Redis, Prometheus, Grafana)
  • Kubernetes: Horizontal scaling via service mesh

Extension Points

  • Providers: Implement chat(), stream(), embed() — see Provider Guide
  • Agents: Extend the Agent base class — see SDK
  • Plugins: Add manifest.json + index.js — see Extensions