Skip to content

mgrddsj/SupraMAS

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SupraMAS

Supervisor Multi-Agent System

Enterprise-grade AI Native Workspace Platform | ไผไธš็บงAIๅŽŸ็”Ÿๅทฅไฝœๅนณๅฐ

Python Version Framework Orchestration Frontend Docker License Stars Forks


๐Ÿ“– Table of Contents


โœจ Features

๐ŸŽฏ Core Capabilities

  • ๐Ÿง  Supervisor + SubAgent Architecture: Five-layer intelligent orchestration system

    • L1 Input Router (Intent Classification & Slot Extraction)
    • L2 Query Optimizer (Coreference Resolution & Query Rewriting)
    • L3 Task Planner (DAG-based Task Decomposition)
    • L4 Execution Dispatcher (Intelligent Scheduling with Circuit Breaker)
    • L5 Security Guard (Permission Intersection & Data Sanitization)
  • ๐Ÿค– Dual-Layer Agent System:

    • Infrastructure Layer: RAG, Skill (Docker Sandbox), File (RealDoc-style), Intent Recognition
    • Domain Expert Layer: 6 Business Domain Agents with Skill-driven workflows
  • ๐Ÿ”Œ MCP Integration: Model Context Protocol for external system connectivity

    • FileSystem Server, Database Server, Search Server
    • Unified client management and cross-server tool invocation
  • ๐ŸŽจ Modern Frontend: React 18 + TypeScript + Vite + TailwindCSS

    • Real-time chat interface with streaming support
    • Domain selector with 6 business areas
    • Responsive design with smooth animations

๐Ÿ“Š Business Domains

Domain Agent Core Capabilities Workflows
๐Ÿ›’ Ecommerce Product Research, Sourcing Decision, Listing Generation product_research, sourcing_decision, listing_generation
๐ŸŽจ Design Brand Identity, Marketing Asset Creation branding_solution, marketing_assets
๐Ÿ’ฐ Finance Financial Analysis, Tax Management, Reporting monthly_close, quick_analysis
๐Ÿ’ป Developer Feature Development, Bug Fixing, Code Review, DevOps feature_development, bugfix_workflow
โœ๏ธ Content Article Writing, SEO Optimization, Social Media Batch article_writing, social_media_batch
๐ŸŽง Customer Service Ticket Resolution, Sentiment Analysis, FAQ Matching ticket_resolution, feedback_analysis

๐Ÿ—๏ธ Architecture

System Overview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                      React Frontend (Vite)                       โ”‚
โ”‚         Chat Interface โ”‚ Sidebar โ”‚ Domain Selector              โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                             โ”‚ HTTP/WebSocket / SSE
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   FastAPI Backend (main.py)                     โ”‚
โ”‚                                                                 โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚              WukongSupervisor (LangGraph)                โ”‚   โ”‚
โ”‚  โ”‚                                                           โ”‚   โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”               โ”‚   โ”‚
โ”‚  โ”‚  โ”‚Input     โ”‚โ”€โ–ถโ”‚Query     โ”‚โ”€โ–ถโ”‚Task      โ”‚               โ”‚   โ”‚
โ”‚  โ”‚  โ”‚Router    โ”‚  โ”‚Optimizer โ”‚  โ”‚Planner   โ”‚               โ”‚   โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜               โ”‚   โ”‚
โ”‚  โ”‚                                     โ”‚                     โ”‚   โ”‚
โ”‚  โ”‚                              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”             โ”‚   โ”‚
โ”‚  โ”‚                              โ”‚Execution    โ”‚             โ”‚   โ”‚
โ”‚  โ”‚                              โ”‚Dispatcher   โ”‚             โ”‚   โ”‚
โ”‚  โ”‚                              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ”‚   โ”‚
โ”‚  โ”‚                                     โ”‚                     โ”‚   โ”‚
โ”‚  โ”‚                              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”             โ”‚   โ”‚
โ”‚  โ”‚                              โ”‚Security     โ”‚             โ”‚   โ”‚
โ”‚  โ”‚                              โ”‚Guard        โ”‚             โ”‚   โ”‚
โ”‚  โ”‚                              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                                 โ”‚                               โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚                    Agent Pool (10 Agents)                  โ”‚   โ”‚
โ”‚  โ”‚                                                            โ”‚   โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ Infrastructure Layer (Tools/Capabilities)           โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข RAGSubAgent       (Hybrid Retrieval + Reranking) โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข SkillSubAgent     (Docker Sandbox Execution)     โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข FileSubAgent      (RealDoc Atomic Operations)    โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข IntentSubAgent    (3-Tier: Rulesโ†’Semanticโ†’LLM)  โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚   โ”‚
โ”‚  โ”‚                                                            โ”‚   โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ Domain Expert Layer (Business Intelligence)        โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข EcommerceDomainAgent                             โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข DesignDomainAgent                                โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข FinanceDomainAgent                               โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข DeveloperDomainAgent                             โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข ContentDomainAgent                               โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ โ€ข CustomerServiceDomainAgent                       โ”‚   โ”‚   โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                                 โ”‚                               โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚              MCP Client (External Systems)                โ”‚   โ”‚
โ”‚  โ”‚  FileSystem โ”‚ Database (PostgreSQL) โ”‚ Search Engine       โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          โ”‚                โ”‚                โ”‚              โ”‚
    PostgreSQL          Redis            Milvus          MinIO
   (Users/Sessions)   (Cache/Sessions)  (Vector Store)  (File Storage)

Data Flow

User Input โ†’ L1 Router (Intent+Slots) โ†’ L2 Optimizer (Rewrite)
    โ†“
L3 Planner (Task DAG) โ†’ L4 Dispatcher (Schedule to Agents)
    โ†“
Domain Agent Execution (Skills + Infrastructure Agents + MCP)
    โ†“
L5 Security Check (PermissionโˆฉSanitization) โ†’ Response Aggregation
    โ†“
Streaming Output โ†’ Frontend Display

๐Ÿš€ Quick Start

Prerequisites

  • Python: 3.11+
  • Node.js: 18+
  • Docker: 20.10+ (for containerized deployment)
  • PostgreSQL: 15+ (or use Docker)
  • Redis: 7+ (or use Docker)

Option 1: Docker Compose (Recommended)

# Clone the repository
git clone https://github.com/liuyang0508/SupraMAS.git
cd SupraMAS

# Start all services (11 containers)
cd docker
docker-compose -f docker-compose.dev.yml up -d

# Wait for services to be healthy (~30s)
docker-compose ps

# Access the application
open http://localhost:8000  # API Docs: http://localhost:8000/docs
open http://localhost:5173  # Frontend (if running separately)

Option 2: Local Development

Backend Setup

# Navigate to backend directory
cd backend

# Create virtual environment
python3.11 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Start the server
python main.py
# OR with hot-reload:
uvicorn main:app --host 0.0.0.0 --port 8000 --reload

Frontend Setup

# Navigate to frontend directory (new terminal)
cd frontend

# Install dependencies
npm install

# Start development server
npm run dev

# Open browser
open http://localhost:5173

๐Ÿ“ฆ Installation

Backend Dependencies

pip install -r requirements.txt

Key packages:

  • fastapi - High-performance web framework
  • langchain + langgraph - AI/LLM orchestration
  • pydantic-settings - Configuration management
  • sqlalchemy + asyncpg - Async database ORM
  • milvus + pymilvus - Vector database client
  • sentence-transformers - Embedding models for RAG

Frontend Dependencies

npm install

Key packages:

  • react + react-dom - UI framework
  • @tanstack/react-query - Data fetching & caching
  • zustand - State management
  • tailwindcss - Utility-first CSS
  • recharts - Data visualization
  • lucide-react - Icon library

๐Ÿ”ง Configuration

Environment Variables

Create a .env file in the backend/ directory:

# Application Settings
APP_NAME=SupraMAS
APP_VERSION=1.0.0
ENVIRONMENT=development
DEBUG=true
LOG_LEVEL=INFO

# Database (PostgreSQL)
DATABASE_URL=postgresql+asyncpg://supramas:supramas@localhost:5432/supramas

# Cache (Redis)
REDIS_URL=redis://localhost:6379/0

# Vector Database (Milvus)
MILVUS_HOST=localhost
MILVUS_PORT=19530

# Object Storage (MinIO)
MINIO_ENDPOINT=localhost:9000
MINIO_ACCESS_KEY=supramasadmin
MINIO_SECRET_KEY=supramasadmin123

# Message Queue (RabbitMQ)
RABBITMQ_URL=amqp://guest:guest@localhost:5672/

# LLM Configuration

Supports **OpenAI**, **Anthropic**, and **MiniMax** providers.

#### OpenAI (GPT-4)
```env
LLM_PROVIDER=openai
OPENAI_API_KEY=sk-your-key-here
OPENAI_MODEL=gpt-4-turbo-preview
OPENAI_BASE_URL=https://api.openai.com/v1

MiniMax (M2)

LLM_PROVIDER=minimax
OPENAI_API_KEY=your-minimax-api-key
OPENAI_BASE_URL=https://api.minimax.io/anthropic/v1
OPENAI_MODEL=MiniMax-M2

Anthropic (Claude)

LLM_PROVIDER=anthropic
OPENAI_API_KEY=sk-ant-your-key-here
OPENAI_BASE_URL=https://api.anthropic.com
OPENAI_MODEL=claude-3-5-sonnet-20241022

Supervisor Configuration

Customize the 5-layer supervisor in backend/main.py:

supervisor_config = {
    "input_router": {
        "mode": "hybrid",  # rule_based | llm_based | hybrid
        "confidence_threshold": 0.75
    },
    "query_optimizer": {
        "context_window_size": 20,
        "enable_query_expansion": True
    },
    "task_planner": {
        "max_task_depth": 3
    },
    "dispatcher": {
        "scheduling_strategy": "intelligent",
        "enable_parallel_execution": True,
        "max_parallel_subtasks": 5,
        "circuit_breaker_threshold": 5
    },
    "security": {
        "enable_permission_intersection": True,
        "enable_data_sanitization": True,
        "enable_audit_logging": True
    }
}

๐Ÿ“š Documentation

Key API Endpoints

Method Endpoint Description
POST /api/v1/chat/completions Main chat interface (OpenAI-compatible)
GET /health Health check
GET /health/ready Readiness check with component status
GET /api/v1/agents/status List all registered agents with stats
GET /api/v1/domains List available business domains (6 total)
GET /api/v1/domains/{name}/info Get domain details, workflows, skills
GET /api/v1/skills/installed List installed skills via Skill Agent
GET /api/v1/mcp/status MCP servers connection status
GET /api/v1/intent/domains Intent recognition domain registry

๐Ÿ› ๏ธ Tech Stack

Backend

Technology Version Purpose
Python 3.11+ Primary language
FastAPI 0.109+ Web framework
LangChain 0.1+ LLM orchestration
LangGraph 0.1+ Workflow/state machine
Pydantic v2 Data validation
SQLAlchemy 2.0+ ORM (async)
PostgreSQL 15+ Primary database
Redis 7+ Cache/session store
Milvus 2.3+ Vector database

Frontend

Technology Version Purpose
React 18.2+ UI framework
TypeScript 5.3+ Type safety
Vite 5.0+ Build tool
TailwindCSS 3.4+ Styling
Zustand 4.4+ State mgmt
React Query 5.17+ Data fetching
Recharts 2.10+ Charts

DevOps

Technology Purpose
Docker Containerization
Kubernetes Orchestration
Prometheus Metrics collection
Grafana Visualization
RabbitMQ Message queue

๐Ÿ“ Project Structure

SupraMAS/
โ”œโ”€โ”€ backend/                    # FastAPI Python Backend
โ”‚   โ”œโ”€โ”€ config/
โ”‚   โ”‚   โ””โ”€โ”€ settings.py         # Pydantic configuration
โ”‚   โ”œโ”€โ”€ core/
โ”‚   โ”‚   โ”œโ”€โ”€ supervisor/         # 5-Layer Supervisor System
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py     # WukongSupervisor (LangGraph)
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ state.py        # TypedDict state definitions
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ layers/
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ input_router.py
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ query_optimizer.py
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ task_planner.py
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ execution_dispatcher.py
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ security_guard.py
โ”‚   โ”‚   โ”œโ”€โ”€ subagents/          # Agent Implementations
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ base.py         # BaseSubAgent ABC
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ intent/         # Intent Recognition Agent
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ rag/            # RAG Agent
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ skill/          # Skill Execution Agent
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ file/           # File Processing Agent
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ domain/         # 6 Business Domain Agents
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ base.py     # BaseDomainAgent
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ ecommerce.py
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ design.py
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ finance.py
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ developer.py
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ content.py
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ customer_service.py
โ”‚   โ”‚   โ””โ”€โ”€ mcp/                # MCP Integration Layer
โ”‚   โ”‚       โ””โ”€โ”€ __init__.py     # Servers + Client
โ”‚   โ”œโ”€โ”€ main.py                 # Application entry point
โ”‚   โ””โ”€โ”€ requirements.txt        # Python dependencies
โ”‚
โ”œโ”€โ”€ frontend/                   # React TypeScript Frontend
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ chat/ChatInterface.tsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ Sidebar.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ App.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ main.tsx
โ”‚   โ”‚   โ””โ”€โ”€ styles/index.css
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ vite.config.ts
โ”‚   โ”œโ”€โ”€ tailwind.config.js
โ”‚   โ””โ”€โ”€ tsconfig.json
โ”‚
โ”œโ”€โ”€ docker/                     # Container Configurations
โ”‚   โ”œโ”€โ”€ Dockerfile              # Multi-stage build
โ”‚   โ”œโ”€โ”€ docker-compose.dev.yml  # Dev environment (11 services)
โ”‚   โ”œโ”€โ”€ docker-compose.prod.yml # Production setup
โ”‚   โ””โ”€โ”€ init-db.sql             # Database initialization
โ”‚
โ”œโ”€โ”€ k8s/                        # Kubernetes Manifests
โ”‚   โ””โ”€โ”€ deployment.yaml         # Deployment + HPA + Ingress
โ”‚
โ”œโ”€โ”€ docs/                       # Documentation
โ”‚   โ”œโ”€โ”€ PRD.md                  # Product Requirements
โ”‚   โ””โ”€โ”€ Technical_Design.md     # Architecture & Design
โ”‚
โ”œโ”€โ”€ README.md                   # This file
โ””โ”€โ”€ .gitignore                  # Git ignore rules

๐Ÿค Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow PEP 8 for Python code
  • Use TypeScript strict mode for frontend
  • Write tests for new features (pytest for backend, Jest/Vitest for frontend)
  • Update documentation for API changes
  • Ensure Docker builds succeed before submitting PR

Code of Conduct

By participating in this project, you agree to maintain a respectful and inclusive environment.


๐Ÿ“Š Project Statistics

  • Total Lines of Code: ~9,500+ (Backend: ~8,000 | Frontend: ~1,500)
  • Python Files: 40+ modules
  • React Components: 5 core components
  • API Endpoints: 10+ RESTful endpoints
  • Domain Agents: 6 business experts
  • Infrastructure Agents: 4 capability providers
  • Docker Services: 11 containerized services
  • Documentation Pages: 1,650+ lines (PRD + Tech Design)

๐Ÿ™ Acknowledgments

  • Inspired by Alibaba DingTalk Wukong platform architecture
  • Built on LangChain/LangGraph ecosystem
  • Powered by FastAPI performance
  • Enhanced by React modern UX patterns

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ“ฎ Contact


โญ If this project helped you, please give it a star! โญ

Made with โค๏ธ by the SupraMAS Team

About

Super Multi-Agent System

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 89.4%
  • TypeScript 9.4%
  • Other 1.2%