manus-project-expert
Enterprise AI Agent framework expert. Use for ManusProject architecture analysis, NET 8+ implementation, SemanticKernel orchestration, RAG systems, workflow design, deployment strategies, scaling AI agents, or when working with multi-LLM enterprise agent platforms. Handles Layer 1 React UI, API Gateway, Business Logic with CQRS/MediatR, PostgreSQL/ChromaDB persistence, and Agent.McpGateway AI engine.
SKILL.md
| Name | manus-project-expert |
| Description | Enterprise AI Agent framework expert. Use for ManusProject architecture analysis, NET 8+ implementation, SemanticKernel orchestration, RAG systems, workflow design, deployment strategies, scaling AI agents, or when working with multi-LLM enterprise agent platforms. Handles Layer 1 React UI, API Gateway, Business Logic with CQRS/MediatR, PostgreSQL/ChromaDB persistence, and Agent.McpGateway AI engine. |
AgentProject - AI-Powered Intelligent Agent Platform
A professional-grade AI agent framework built with .NET 8.0 and React, designed for autonomous task execution and intelligent workflow automation. All files and solution logic are generated from Manus. reference: https://manus.im/ About to be abandoned
๐ข Author's Message
This project is continuously being optimized, and the author strives for 3+ updates and optimizations per week.
C# never lost online, never won in reality. Man! what can i say? ๐
2026-02-01 Reminder
Due to Manus' recent reduction of key functions and the increasingly serious problems exposed in its Reddit community, the author's expectations for Manus have been declining.
Because it has become more oriented towards non-professional users, both the loopholes in the payment system and the efficiency of integrating the model for project modifications have become increasingly poor. I began to miss the version that was released not long ago.
This has forced the author to rethink and switch to more professional platforms and tools such as Cursor / Claude Code / Antigravity / Codex in order to continue the project.
Not only this was disappointing:
๐ Table of Contents
- Project Overview
- Key Features
- Technology Stack
- System Architecture
- System Requirements
- Project Structure
- Quick Start
- Deployment Guide
- Core Modules
- Documentation
- Development Guide
- Contributing Guide
- License
๐ฏ Project Overview
AgentProject is an enterprise-grade AI agent framework that combines cutting-edge Large Language Model (LLM) technologies with robust backend infrastructure and intuitive frontend interfaces. The platform enables autonomous task execution through intelligent workflow management, Retrieval-Augmented Generation (RAG), and sandbox-based task processing.
Key Highlights
- ๐ค Multi-Model Support: Integration with OpenAI, DeepSeek, Kimi, and Llama 4, supporting both open-source and closed-source models
- ๐๏ธ Distributed Architecture: Native support for Kubernetes and Docker, inherently scalable
- ๐ Advanced Security: eBPF system monitoring, ASP.NET Core Identity integration, fine-grained access control
- โก Real-time Communication: SignalR enables instant updates and push notifications
- ๐ Enterprise-Ready: Comprehensive logging, distributed tracing, and observability
- ๐จ Modern UI: Dark theme support with intuitive workflow visualization
โจ Key Features
๐ค AI & LLM Capabilities
- Semantic Kernel Integration - Unified LLM abstraction layer supporting multiple model providers (OpenAI, DeepSeek, Kimi, Llama 4)
- Model Context Protocol (MCP) - Standardized tool integration framework for seamless AI tool interoperability
- Retrieval-Augmented Generation (RAG) - Intelligent knowledge base with ChromaDB and custom vector store integration
- Advanced Prompt Engineering - Prompt system with dynamic variable substitution and template management
- Model Fine-tuning Tools - Complete scripts and utilities for custom model adaptation with MLflow tracking
โ๏ธ Workflow & Automation
- Intelligent Workflow Engine - Orchestration and execution of complex multi-step tasks
- Workflow Visualization - Visual workflow editor with drag-and-drop interface
- Sandbox Terminal Integration - Secure isolated command execution environment preventing malicious operations
- Dynamic Task Planning - AI-driven automatic to-do list generation and task decomposition
- Flexible Interaction Handling - Support for interaction patterns across diverse task types
๐ System & Security
- eBPF Detection Module - Low-level system monitoring and security threat analysis
- Identity & Authorization - Complete ASP.NET Core Identity implementation
- Custom Policy Engine - Fine-grained role and permission management
- Web Search Integration - Real-time information retrieval via SearXNG and SerpApi
๐ Observability & Operations
- Agent Trace - Distributed tracing for AI agent execution flows with OpenTelemetry
- Distributed Tracing - OpenTelemetry integration for end-to-end request visualization
- Prometheus Metrics - Comprehensive application and system health metrics
- MLflow Experiment Management - Model training and experiment tracking
- Structured Logging - Correlation IDs and contextual logging across the call stack
๐ Infrastructure & Deployment
- Docker Containerization - Complete Docker Compose multi-container orchestration solution
- Kubernetes Support - Helm charts and raw manifests for cloud deployment
- YARP Reverse Proxy - Intelligent gateway with circuit breaker pattern support
- High Availability Design - Load balancing and failover mechanisms
๐ Technology Stack
๐ฑ Backend Technologies
| Component | Version | Purpose |
|---|---|---|
| .NET | 8.0+ | Modern high-performance web framework |
| ASP.NET Core | 8.0+ | Web API and real-time communication |
| Entity Framework Core | 8.0+ | PostgreSQL ORM mapping |
| SignalR | 8.0+ | Real-time bidirectional communication |
| Autofac | Latest | Advanced dependency injection container |
| OpenTelemetry | Latest | Observability and distributed tracing |
| Semantic Kernel | Latest | LLM abstraction and orchestration |
| YARP | Latest | Reverse proxy and gateway |
๐จ Frontend Technologies
| Component | Version | Purpose |
|---|---|---|
| React | 18.0+ | Modern UI framework |
| TypeScript | 5.0+ | Type-safe JavaScript development |
| SignalR Client | 8.0+ | Real-time notification client |
| Tailwind CSS | Latest | Modern CSS framework |
| Theme System | Built-in | Light/Dark theme switching |
๐พ Data & Storage
| Component | Purpose |
|---|---|
| PostgreSQL 12+ | Primary relational database for metadata storage |
| ChromaDB | Vector database supporting RAG functionality |
| Redis (Optional) | Caching layer for improved query performance |
๐ณ Containerization & Orchestration
| Component | Purpose |
|---|---|
| Docker | Application and service containerization |
| Docker Compose | Local development multi-container orchestration |
| Kubernetes 1.21+ | Production cloud deployment |
| Helm 3.0+ | Kubernetes package management and templating |
๐ Monitoring & Operations
| Component | Purpose |
|---|---|
| Prometheus | Metrics collection and storage |
| Grafana (Optional) | Metrics visualization dashboard |
| MLflow | Machine learning experiment tracking |
| Elasticsearch (Optional) | Log indexing and search |
๐ Integration & Extensions
| Component | Purpose |
|---|---|
| Model Context Protocol (MCP) | Standardized tool integration framework |
| Nginx | Web server and load balancing |
| SearXNG / SerpApi | Web search integration |
๐ System Architecture
Layered Architecture Design (Layered Architecture Pattern)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Layer 1: Presentation โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ React 18+ Application Interface (agent-ui) โ โ
โ โ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโ โ โ
โ โ โ Dashboard โ โ Workflow โ โ Task โ โ โ
โ โ โ - Analytics โ โ - Editor โ โ - Board โ โ โ
โ โ โ - Overview โ โ - Visualizer โ โ - Cards โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
HTTP/HTTPS + WebSocket
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ API Gateway Layer โ
โ (Nginx / YARP - Load Balancing) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโปโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Business Logic Layer (Application Layer) โ
โ ASP.NET Core Backend โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Agent.Api (Startup, Configuration, Routing) โ โ
โ โ โโ Program.cs: App Entry Point & DI Setup โ โ
โ โ โโ GlobalUsings.cs: Global Namespaces โ โ
โ โ โโ Controllers: REST API Routes โ โ
โ โ โโ Extensions: Modular Service Registration โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Agent.Application (Application Orchestration) โ โ
โ โ โโ DTOs: Request/Response Data Transfer Objects โ โ
โ โ โโ Mappers: Entity-DTO Mapping Logic โ โ
โ โ โโ Validators: Business Rule Validation โ โ
โ โ โโ Commands: CQRS Command Handling โ โ
โ โ โโ Queries: CQRS Query Handling โ โ
โ โ โโ Events: Domain Events Definition โ โ
โ โ โโ Behaviors: Pipeline Behaviors & Intercepting โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Agent.Core (Core Business Logic - Domain Layer) โ โ
โ โ โ โ
โ โ โถ Identity & Authorization โ โ
โ โ โโ Authorization Handlers (Roles/Policies/Claims) โ โ
โ โ โโ Authorization Policies (Permission Rules) โ โ
โ โ โโ Identity Services (User/Role Management) โ โ
โ โ โ โ
โ โ โถ Workflow & Task Management โ โ
โ โ โโ WorkflowService (Workflow Orchestration) โ โ
โ โ โโ TaskService (Task Management) โ โ
โ โ โโ StateManager (State Tracking) โ โ
โ โ โโ ExecutionContext (Execution Context) โ โ
โ โ โ โ
โ โ โถ System Monitoring & Detection โ โ
โ โ โโ eBPF Services (Process Monitoring) โ โ
โ โ โโ SecurityDetector (Threat Detection) โ โ
โ โ โโ HealthChecker (Health Checking) โ โ
โ โ โ โ
โ โ โถ Data Access & Persistence โ โ
โ โ โโ Entity Models (Data Entities) โ โ
โ โ โโ DbContext (EF Core Context) โ โ
โ โ โโ Repositories (Generic Repository Pattern) โ โ
โ โ โโ Migrations (Database Migrations) โ โ
โ โ โ โ
โ โ โถ Real-Time Communication โ โ
โ โ โโ SignalR Hubs (Real-time Message Push) โ โ
โ โ โโ NotificationService (Notification Service) โ โ
โ โ โโ ConnectionManager (Connection Management) โ โ
โ โ โ โ
โ โ โถ Gateway & Routing โ โ
โ โ โโ YARP Configuration (YARP Setup) โ โ
โ โ โโ RouteService (Routing Service) โ โ
โ โ โโ CircuitBreaker (Circuit Breaker Pattern) โ โ
โ โ โ โ
โ โ โถ Exception & Logging โ โ
โ โ โโ Exception Handlers (Exception Handling) โ โ
โ โ โโ Logging Middleware (Logging Middleware) โ โ
โ โ โโ Correlation ID (Correlation ID) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Agent.McpGateway (AI Orchestration Engine) โ โ
โ โ โ โ
โ โ โถ LLM Integration & Management โ โ
โ โ โโ SemanticKernelService (SK Wrapper) โ โ
โ โ โโ ModelRouter (Model Routing) โ โ
โ โ โโ PluginManager (Plugin Management) โ โ
โ โ โโ PromptOptimizer (Prompt Optimization) โ โ
โ โ โ โ
โ โ โถ Knowledge Base & RAG โ โ
โ โ โโ RagService (RAG Core Service) โ โ
โ โ โโ DocumentProcessor (Document Processing) โ โ
โ โ โโ EmbeddingGenerator (Vector Generation) โ โ
โ โ โโ VectorDatabaseService (Vector DB Operations) โ โ
โ โ โโ SimilaritySearcher (Similarity Search) โ โ
โ โ โ โ
โ โ โถ Workflow Orchestration โ โ
โ โ โโ WorkflowService (Workflow Engine) โ โ
โ โ โโ WorkflowVisualization (Visual Editor Backend) โ โ
โ โ โโ WorkflowExecutor (Executor) โ โ
โ โ โโ WorkflowParser (Parser) โ โ
โ โ โโ StateManager (State Management) โ โ
โ โ โ โ
โ โ โถ Prompt Engineering โ โ
โ โ โโ PromptService (Prompt Management) โ โ
โ โ โโ TemplateEngine (Template Engine) โ โ
โ โ โโ VariableResolver (Variable Resolution) โ โ
โ โ โโ PromptCache (Prompt Caching) โ โ
โ โ โโ ToolCallEnhancer (Tool Call Reliability) โ โ
โ โ โ โ
โ โ โถ Sandbox & Isolated Execution โ โ
โ โ โโ SandboxService (Sandbox Service) โ โ
โ โ โโ ProcessExecutor (Process Execution) โ โ
โ โ โโ EnvironmentManager (Environment Management) โ โ
โ โ โโ SecurityManager (Security Isolation) โ โ
โ โ โ โ
โ โ โถ Search & Integration โ โ
โ โ โโ WebSearchService (Web Search) โ โ
โ โ โโ CacheWarmupService (Intelligent Cache Preload) โ โ
โ โ โโ McpTools (MCP Tools) โ โ
โ โ โโ FileUploadService (File Management) โ โ
โ โ โโ UserInputService (User Input) โ โ
โ โ โ โ
โ โ โถ Model Fine-Tuning โ โ
โ โ โโ FinetuneService (Fine-tuning Service) โ โ
โ โ โโ MeteringService (Usage Tracking & Billing) โ โ
โ โ โโ DatasetPreparer (Dataset Preparation) โ โ
โ โ โโ ModelTrainer (Model Training) โ โ
โ โ โโ MetricsCalculator (Metrics Calculation) โ โ
โ โ โ โ
โ โ โถ Observability โ โ
โ โ โโ AgentTraceService (Agent Execution Tracing) โ โ
โ โ โโ TelemetryService (Telemetry Service) โ โ
โ โ โโ MetricsCollector (Metrics Collection) โ โ
โ โ โโ TraceExporter (Trace Exporting) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโผโโโโโโโ โโโโโโโโผโโโโโโ โโโโโโโผโโโโโโโ
โ PostgreSQL โ โ ChromaDB โ โ External โ
โ (Metadata) โ โ (Vectors) โ โ Services โ
โ โ โ โ โ โ
โ - Users โ โ - Embeddingsโ โ - OpenAI โ
โ - Workflowsโ โ - Documents โ โ - DeepSeek โ
โ - Tasks โ โ - RAG Index โ โ - Kimi โ
โ - Config โ โ โ โ - Llama 4 โ
โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ - SearXNG โ
โโโโโโโโโโโโโโ
Architecture Characteristics
๐ Separation of Concerns
- Single responsibility per layer, clear boundaries
- Dependencies flow from top to bottom
- Each layer independently testable and maintainable
๐ Data Flow
- Request Flow: Presentation โ Gateway โ Application โ Business โ Data โ Storage
- Response Flow: Storage โ Data โ Business โ Application โ Gateway โ Presentation
- Notification Flow: SignalR Hub โ Gateway โ Presentation (Real-time Push)
๐ก๏ธ Cross-Cutting Concerns
- Authentication/Authorization: Enforced at gateway and business layers
- Logging/Tracing: Collected across all layers
- Error Handling: Unified handling at gateway layer
- Caching: Implemented at data layer
๐ป System Requirements
Minimum Hardware Configuration
CPU: 4 cores (8+ cores recommended)
Memory: 8 GB (16+ GB recommended)
Storage: 50 GB SSD (100+ GB recommended)
Network: Stable 1Mbps+ network connection
Software Dependencies
Required Components
.NET SDK 8.0.0 or higher
Node.js 16.x or higher
npm / yarn 7.0+ or 1.22.x+
Docker 20.10+ (for containerized deployment)
Docker Compose 1.29+ (for container orchestration)
PostgreSQL 12.x or higher
Git 2.20+
Optional Components
Kubernetes 1.21+ (for cloud deployment)
Helm 3.0+ (for Kubernetes package management)
NVIDIA CUDA 11.0+ (for GPU acceleration)
Prometheus Latest (for monitoring)
MLflow Latest (for experiment tracking)
Elasticsearch 7.0+ (for log analysis)
Redis 6.0+ (for caching)
Network Requirements
- Network connectivity to various LLM service providers
- Firewall rules allowing:
* Port 3000 (Frontend)
* Port 5000 (Backend API)
* Port 5432 (PostgreSQL)
* Port 8000 (ChromaDB)
* Port 9090 (Prometheus)
๐ Project Structure
apps/ - Application Code
apps/
โโ agent-api/ # ๐ง Backend API Services
โ โโ Agent.Api/ # ๐ฏ Application Startup & Configuration
โ โโ Agent.Application/ # ๐ผ Application Orchestration Layer
โ โโ Agent.Core/ # ๐ Core Business Logic
โ โโ Agent.McpGateway/ # ๐ค AI Orchestration Engine
โ
โโ agent-ui/ # ๐จ React Frontend Application
โ โโ public/ # ๐ Static Assets
โ โโ src/ # ๐ป Source Code
โ โโ components/ # ๐งฉ Reusable UI Components
โ โโ pages/ # ๐ Application Pages
โ โโ services/ # ๐ API Services
โ โโ hooks/ # โ๏ธ Custom React Hooks
โ โโ store/ # ๐๏ธ State Management
โ โโ styles/ # ๐จ CSS Styles
โ โโ utils/ # ๐ ๏ธ Utility Functions
โ โโ types/ # ๐ TypeScript Types
โ
โโ agent-ops-ui/ # ๐ Operations & Monitoring UI
โ โโ ... # Dashboard for system metrics
โ
โโ agent-ops/ # ๐ Operational Services
โ โโ Agent.Metering/ # ๐ Usage Metering & Billing
โ
โโ agent-tools/ # ๐ ๏ธ Utility Tools & Scripts
โโ ... # Python-based tool collection
docs/ - Documentation
docs/
โโ agent-ui_dependency_summary.md # ๐ Agent UI Dependencies
โโ api_documentation.md # ๐ API Documentation
โโ chromadb_integration.md # ๐ ChromaDB Setup Guide
โโ clickhouse_integration.md # ๐พ ClickHouse Integration
โโ deepo_unsloth_cuda_setup.md # ๐ Deepo & Unsloth CUDA Setup
โโ docker_quickstart.md # ๐ณ Docker Quick Start
โโ dynamic_external_access.md # ๐ Dynamic External Access
โโ ebpf_integration.md # ๐ eBPF Security Module
โโ environment_setup.md # โ๏ธ Environment Configuration
โโ github_upload.md # ๐ค GitHub Upload Guide
โโ grafana_integration.md # ๐ Grafana Dashboard Setup
โโ harbor_installation.md # ๐๏ธ Harbor Registry Installation
โโ helm_installation.md # โ Helm Charts Guide
โโ identity_signalr_integration.md # ๐ Auth & Real-time Comm
โโ kubernetes_istio_grayscale_release.zh_CN.md # โธ๏ธ K8s Deployment
โโ mcp_integration_guide.zh_CN.md # ๐ MCP Integration
โโ mlflow_integration.md # ๐ MLflow Experiment Tracking
โโ openmanus_integration.md # ๐ค OpenManus Integration
โโ prometheus_integration.md # ๐ Prometheus Monitoring
โโ rag_prompt_engineering.md # ๐ค RAG & Prompt Engineering
โโ sandbox_terminal_integration.md # ๐ Sandbox Environment
โโ semantic_kernel_examples.md # ๐ง Semantic Kernel Guide
โโ ssh_setup.md # ๐ SSH Configuration
โโ unsloth_lora_finetuning.md # ๐ Model Fine-tuning
โโ vllm_integration.md # โก vLLM Integration
โโ workflow_integration.md # ๐ Workflow Engine Guide
โโ yarp_gateway_integration.md # ๐ช YARP Gateway Setup
infra/ - Infrastructure
infra/
โโ cicd/ # ๐ CI/CD Pipeline Configs
โ โโ ... # GitHub Actions, Jenkins
โ
โโ docker/ # ๐ณ Docker Configuration
โ โโ Dockerfile.webapi # Backend Dockerfile
โ โโ Dockerfile.react # Frontend Dockerfile
โ โโ docker-compose.yml # Compose orchestration
โ โโ nginx.conf # Nginx configuration
โ โโ ...
โ
โโ envsetup/ # ๐ ๏ธ Environment Setup Scripts
โ โโ install_dependencies.sh
โ โโ setup_database.sh
โ โโ ...
โ
โโ helm/ # โ Helm Charts
โ โโ agent-project/ # Kubernetes deployment charts
โ โโ Chart.yaml
โ โโ values.yaml
โ โโ templates/
โ
โโ kubernetes/ # โธ๏ธ Raw K8s Manifests
โ โโ namespace.yaml
โ โโ deployments.yaml
โ โโ services.yaml
โ โโ ingress.yaml
โ โโ ...
โ
โโ git_ci.yml # ๐ง GitHub Actions Workflow
llm/ - Machine Learning Components
llm/
โโ deploy/ # ๐ Model Deployment
โ โโ model_server.py # Model serving API
โ โโ requirements.txt
โ โโ Dockerfile
โ
โโ finetune/ # ๐ Model Fine-tuning
โโ train.py # Training scripts
โโ evaluate.py # Evaluation scripts
โโ dataset_loader.py # Data loading utilities
โโ config.yaml # Training configuration
โโ ...
test/ - Test Suites
test/
โโ Agent.Api.Tests/ # ๐งช API Layer Tests
โ โโ ... # Controller & Endpoint tests
โ
โโ Agent.Core.Tests/ # ๐งช Core Business Logic Tests
โโ Unit/ # Unit Tests
โ โโ Services/ # Service layer tests
โ โโ Repositories/ # Data access tests
โ โโ ...
โโ Integration/ # Integration Tests
โ โโ ApiIntegrationTests.cs
โ โโ DatabaseIntegrationTests.cs
โ โโ WorkflowIntegrationTests.cs
โโ MockData/ # Test Data Factories
โโ TestDataFactory.cs
โโ MockServices.cs
๐ Quick Start
Option 1๏ธโฃ: Docker Deployment (Recommended)
# Clone repository
git clone https://github.com/DrDrZ95/AgentProject.git
cd AgentProject
# Navigate to Docker directory
cd infra/docker
# Start all services
docker-compose up -d
# Check service status
docker-compose ps
# View live logs
docker-compose logs -f
# Stop services
docker-compose down
Service Access Points:
- ๐ Frontend UI: http://localhost:3000
- ๐ก Backend API: http://localhost:5000
- ๐ API Documentation: http://localhost:5000/swagger
- ๐ Prometheus: http://localhost:9090
Option 2๏ธโฃ: Local Development Deployment
# Clone repository
git clone https://github.com/DrDrZ95/AgentProject.git
cd AgentProject
# 1. Configure backend
cd apps/agent-api/Agent.Api
dotnet restore
dotnet build
dotnet run
# 2. In another terminal, configure frontend
cd apps/agent-ui
npm install
npm start
# 3. Setup database (requires PostgreSQL running)
# Update connection string in appsettings.json
# Then run migrations
dotnet ef database update
Option 3๏ธโฃ: Kubernetes Deployment
# Create namespace
kubectl create namespace agent-project
# Install using Helm
cd infra/helm
helm install agent-project ./agent-project-chart \
-n agent-project \
-f values.yaml
# Verify deployment
kubectl get pods -n agent-project
kubectl get svc -n agent-project
# View deployment logs
kubectl logs -n agent-project -l app=agent-project -f
๐ฆ Deployment Guide
Docker Compose Configuration
# Service List
services:
agent-api: # ASP.NET Core Backend
agent-ui: # React Frontend
postgres: # Relational Database
chromadb: # Vector Database
nginx: # Reverse Proxy
prometheus: # Monitoring (Optional)
mlflow: # Experiment Tracking (Optional)
Environment Variables Configuration
# infra/docker/.env
# PostgreSQL Database
POSTGRES_PASSWORD=your_secure_password
DATABASE_CONNECTION_STRING=Host=postgres;Port=5432;Database=agent;...
# API Configuration
API_ENDPOINT=https://your-domain.com
API_PORT=5000
# LLM Service Configuration
OPENAI_API_KEY=sk-xxxxxxxxxxxxx
OPENAI_MODEL=gpt-4
DEEPSEEK_API_KEY=xxxxxxxxxxxxx
DEEPSEEK_MODEL=deepseek-chat
KIMI_API_KEY=xxxxxxxxxxxxx
KIMI_MODEL=moonshot-v1
LLAMA_API_ENDPOINT=http://localhost:8000
LLAMA_MODEL=llama-4-70b
# Authentication
JWT_SECRET_KEY=your-super-secret-key-min-32-chars
IDENTITY_SEED_ADMIN_PASSWORD=Admin@123456
# Vector Database
CHROMADB_HOST=chromadb
CHROMADB_PORT=8000
# Web Search
ENABLE_WEB_SEARCH=true
SEARXNG_ENDPOINT=http://searxng:8888
# Monitoring & Telemetry
ENABLE_PROMETHEUS=true
ENABLE_MLFLOW=true
Production Deployment Checklist
- Configure HTTPS/TLS certificates
- Setup database backups and replication
- Configure external authentication (OIDC/LDAP)
- Enable audit logging
- Deploy monitoring and alerting system
- Configure log aggregation
- Test disaster recovery procedures
- Establish CI/CD automation pipeline
- Perform performance and load testing
- Conduct security audit
๐ง Core Modules
Agent.Api - Application Entry Point
- Responsibility: Application startup, dependency injection, middleware configuration
- Key Files: Program.cs, GlobalUsings.cs
- Extension Points: ServiceCollectionExtensions, MiddlewareExtensions
Agent.Application - Application Orchestration
- Responsibility: CQRS pattern implementation, DTO mapping, business process orchestration
- Key Features: MediatR command/query handling, AutoMapper, validation pipeline
- Extension Points: CommandHandlers, QueryHandlers, Behaviors
Agent.Core - Core Business Logic
- Identity & Authorization: Role-based, policy-based, claim-based authorization
- Workflow & Task Management: Orchestration and execution of complex processes
- System Monitoring: eBPF and security detection
- Data Access: EF Core repositories
- Real-Time Communication: SignalR integration
- Gateway & Routing: YARP reverse proxy
- Exception & Logging: Unified exception handling and structured logging
- Identity Management: User, role, and permission management
Agent.McpGateway - AI Orchestration Engine
- LLM Integration: Semantic Kernel wrapper, model routing
- Knowledge Base & RAG: Document processing, vector database, similarity search
- Workflow Orchestration: Complex task orchestration and execution with visual editor
- Prompt Engineering: Template management, optimization, and tool call reliability
- Sandbox Execution: Isolated command execution
- Search & Integration: Web search, cache warmup, tool integration, file management
- Model Fine-Tuning: Dataset preparation, model training, usage metering
- Observability: Agent trace, telemetry and metrics collection
๐ Documentation
| Document | Description | Link |
|---|---|---|
api_documentation.md | Complete API reference with examples | View |
chromadb_integration.md | Vector database setup and RAG configuration | View |
clickhouse_integration.md | ClickHouse analytics database integration | View |
deepo_unsloth_cuda_setup.md | Deepo and Unsloth CUDA environment setup | View |
docker_quickstart.md | Quick start guide for Docker deployment | View |
dynamic_external_access.md | Dynamic external access configuration | View |
ebpf_integration.md | eBPF security module and system monitoring | View |
environment_setup.md | Development environment configuration | View |
github_upload.md | GitHub repository upload guide | View |
grafana_integration.md | Grafana dashboard and visualization setup | View |
harbor_installation.md | Harbor container registry installation | View |
helm_installation.md | Helm charts for Kubernetes deployment | View |
identity_signalr_integration.md | Authentication and real-time communication | View |
mcp_integration_guide.zh_CN.md | Model Context Protocol integration guide | View |
mlflow_integration.md | MLflow experiment tracking and model management | View |
openmanus_integration.md | OpenManus integration guide | View |
prometheus_integration.md | Prometheus metrics and monitoring | View |
prompt-engineering-best-practices.md | Prompt engineering best practices guide | View |
rag_prompt_engineering.md | RAG implementation and prompt optimization | View |
sandbox_terminal_integration.md | Secure sandbox execution environment | View |
semantic_kernel_examples.md | Semantic Kernel usage examples | View |
ssh_setup.md | SSH configuration for remote access | View |
unsloth_lora_finetuning.md | Model fine-tuning with Unsloth LoRA | View |
vllm_integration.md | vLLM high-performance inference | View |
workflow_integration.md | Workflow engine design and implementation | View |
yarp_gateway_integration.md | YARP reverse proxy and gateway | View |
๐จโ๐ป Development Guide
Build from Source
# Backend
cd apps/agent-api
dotnet restore
dotnet build -c Release
dotnet test
# Frontend
cd apps/agent-ui
npm install
npm run build
npm test
Development Workflow
- Create feature branch:
git checkout -b feature/your-feature - Write code: Follow coding standards
- Write tests: Unit and integration tests
- Commit changes:
git commit -am 'Add feature' - Push code:
git push origin feature/your-feature - Create PR: Detailed description of changes
- Code review: Wait for maintainer review
- Merge: Merge after approval
Coding Standards
- C#: Follow Microsoft C# coding guidelines
- TypeScript: Use ESLint and Prettier
- Commits:
[feat|fix|docs|style|refactor|test]: description
๐ค Contributing Guide
We welcome any form of contribution! Whether it's code improvements, documentation updates, bug fixes, or new feature suggestions, we appreciate your involvement.
Contribution Process
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add some AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Welcome Feedback & Suggestions
- ๐ก Share Optimization Suggestions in PRs: If you have ideas for improving code, performance, or user experience, please share them in detail in your Pull Request
- ๐ Report Bugs: If you find any issues, please report them via Issues with reproduction steps
- โจ Feature Suggestions: For new features or improvements, feel free to discuss in Issues or Discussions
- ๐ Documentation Improvements: If documentation is unclear or incomplete, we welcome improvement suggestions
Contribution Requirements
- โ All tests must pass
- โ Code conforms to project style guidelines
- โ Commit messages are clear and concise
- โ PR includes detailed description of changes
- โ New features require documentation updates
Review Process
Our maintenance team will review Pull Requests regularly. You may receive feedback such as:
- Code review comments
- Requests for additional tests
- Documentation update suggestions
- Performance or security optimization recommendations
Please be patient with the review process as we aim to maintain code quality and long-term project maintainability.
๐ License
This project is licensed under the MIT License. See LICENSE file for details.
MIT License allows:
- โ Commercial use
- โ Code modification
- โ Distribution
- โ Private use
Conditions:
- ๐ Must include license copy
- ๐ Must state significant changes
๐ Related Resources
Official Documentation
- .NET 8.0 Documentation
- ASP.NET Core Documentation
- React Official Documentation
- TypeScript Documentation
Related Projects
Reference Links
- GitHub Repository: https://github.com/DrDrZ95/AgentProject
๐ Support & Feedback
Getting Help
- ๐ Check complete documentation
- ๐ Report Bug
- ๐ก Request Feature
- ๐ฌ Discuss Issues
Community Support
- Review existing Issues and Discussions
- Participate in GitHub Discussions
- Contribute improvements and bug fixes
๐ Project Statistics
- Programming Languages: C# (68.6%), TypeScript (27.1%), Python (2.6%), Shell (0.8%), HTML (0.6%), Go Template (0.2%), Other (0.1%)
- Framework Versions: .NET 8.0, React 18+, ASP.NET Core 8.0
- Lines of Code: 20,000+
- Module Count: 25+
- Documentation Pages: 60+
- Test Coverage: 80%+
- Commits: 215+
- Stars: 21+
- Forks: 3+
๐ฏ Roadmap
Phase 1 Completed โ
- โ Core AI agent framework with .NET 8.0
- โ Workflow management system with visual editor
- โ RAG (Retrieval-Augmented Generation) implementation
- โ Docker deployment support with multi-container orchestration
- โ System architecture optimization with layered design
- โ Modularization refactor with clean architecture principles
- โ OpenAPI documentation with unified response models
- โ Comprehensive unit and integration test coverage
Phase 2 In Progress ๐
- โ Agent Trace - Distributed tracing and observability for AI agents
- โ Dark Theme Support - UI theme switching capability
- โ Workflow Visualization Backend - Visual workflow editor backend
- โ Cache Warmup - Intelligent cache preloading
- โ Tool Call Reliability Enhancement - Improved tool execution stability
- โ OpenAPI Documentation Enhancement - Scalar integration and export capabilities
- โ Autofac DI Integration - Unified assembly scanning dependency injection
- ๐ Advanced caching strategy optimization (Redis integration)
- ๐ WebSearch enhancement and expansion (multi-provider support)
- ๐ Model fine-tuning tool refinement with MLflow integration
- ๐ Performance benchmark testing and optimization
- ๐ API gateway enhancements with YARP
- ๐ Real-time collaboration features
Phase 3 Planned ๐ฎ
- ๐ฎ Multi-language support (Chinese, English, Japanese, Korean)
- ๐ฎ Additional LLM integrations (Claude, Gemini, local models)
- ๐ฎ Community plugin system with marketplace
- ๐ฎ Desktop client (Electron-based)
- ๐ฎ Mobile app support (React Native)
- ๐ฎ GraphQL API layer alongside REST
- ๐ฎ Advanced analytics dashboard
- ๐ฎ Enterprise SSO integration (SAML/OIDC)
Phase 4 Future Vision ๐ญ
- ๐ญ AI-powered code generation assistant
- ๐ญ Automated workflow optimization with self-learning capabilities
- ๐ญ Multi-tenant SaaS architecture with tenant isolation
- ๐ญ Advanced security compliance (SOC 2, GDPR, ISO 27001)
- ๐ญ Cloud-native serverless deployment options (AWS Lambda, Azure Functions)
- ๐ญ Edge computing support for low-latency scenarios
- ๐ญ Federated learning integration for distributed model training
- ๐ญ Natural language to workflow conversion
- ๐ญ Autonomous agent swarms for complex task coordination
- ๐ญ Quantum-resistant cryptography implementation
