Skip to content

wecode-ai/Wegent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Wegent

English | ็ฎ€ไฝ“ไธญๆ–‡

Python FastAPI Next.js Docker Claude

๐Ÿš€ An open-source platform to define, organize, and run Agentic AI

๐Ÿ“– Overview

Wegent is an open-source AI native operating system that enables you to define, organize, and run intelligent agents at scale. Built on Kubernetes-style declarative API and CRD (Custom Resource Definition) design patterns, Wegent provides a standardized framework for creating and managing AI agent ecosystems.

graph LR
    subgraph AIResource ["๐ŸŒ AI Native Resource"]
        subgraph YAMLDef ["๐Ÿ“„ YAML Definitions"]
            Ghost["๐Ÿ‘ป Ghost<br/>Agent Soul"]
            Model["๐Ÿง  Model<br/>Model Configuration"]
            Shell["๐Ÿš Shell<br/>Agent Program"]
            Bot["๐Ÿค– Bot<br/>Agent Instance"]
            CollabModel["๐Ÿค Collaboration<br/>Collaboration Model"]
            Team["๐Ÿ‘ฅ Team<br/>Collaborative Team"]
        end
     end
    
    subgraph Wegent ["๐Ÿš€ Wegent"]
        Workspace["๐Ÿ’ผ Workspace<br/>Work Environment"]
        TeamInstance["๐Ÿ‘ฅ Agent Team Instance<br/>Running Team"]
    end
   
      User["๐Ÿ‘ค User"]
      Task["๐ŸŽฏ Task<br/>User Task"]
    %% CRD Resource Relationships
    Ghost --> Bot
    Model --> Bot
    Shell --> Bot
    Bot --> Team
    CollabModel --> Team
    Shell --> Team
    
    %% Team Definition to Instance
    AIResource --> Wegent
    Workspace --> TeamInstance
    
    %% User Interaction Flow
    User --> Task
    Task --> TeamInstance
    TeamInstance --> Task
    
    %% Styling
    classDef yamlBox stroke-dasharray: 5 5
    classDef runtimeBox stroke:#ff6b6b,stroke-width:2px
    classDef resourceBox stroke:#4ecdc4,stroke-width:2px
    
    class YAMLDef yamlBox
    class Runtime runtimeBox
    class AIResource resourceBox

Loading

๐ŸŽฏ Key Concepts

  • ๐Ÿ‘ป Ghost: The "soul" of an agent - defines personality, capabilities, and behavior patterns
  • ๐Ÿง  Model: AI model configuration - defines environment variables and model parameters
  • ๐Ÿš Shell: The "executable" - A program capable of launching an agent
  • ๐Ÿค– Bot: A complete agent instance combining Ghost + Shell + Model
  • ๐Ÿ‘ฅ Team: Composed of multiple Bots + Collaboration Model, defining how agents work together
  • ๐Ÿค Collaboration: Defines the interaction patterns between Bots in a Team (like Workflow)
  • ๐Ÿ’ผ Workspace: Isolated work environments for tasks and projects
  • ๐ŸŽฏ Task: Executable units of work assigned to teams

โœจ Why Wegent?

  • Standardized: Universal AI agent runtime specifications, like Kubernetes for containers
  • Declarative: Define and manage agents through simple YAML configurations
  • Collaborative: Built-in support for multi-agent teamwork and orchestration
  • Multi-Model Support: Currently supports Claude Code, with plans for Codex and Gemini
  • Flexible Configuration: Customizable agent personalities and capabilities
  • Task Orchestration: Intelligent scheduling and execution

Demo & Screenshots

Demo Video

A quick preview of Wegent in action, showcasing agent creation and team collaboration.

Demo Video

Screenshots

๐Ÿค– New Bot

ClaudeCode-GLM4.6

๐Ÿ‘ฅ New Team

ClaudeCode-Team

๐Ÿš€ Quick Start

Prerequisites

  • Docker and Docker Compose
  • Git
  1. Clone the repository

    git clone https://github.com/wecode-ai/wegent.git
    cd wegent
  2. Start the platform

    docker-compose up -d
  3. Access the web interface

  4. Configure GitHub Access Tokens

    • Follow the page instructions to configure your GitHub access token
  5. Configure Bot

    Wegent comes with a built-in development bot. Simply configure your Claude API key to start using it:

     {
         "env": {
             "ANTHROPIC_MODEL": "claude-4.1-opus",
             "ANTHROPIC_API_KEY": "xxxxxx",
             "ANTHROPIC_BASE_URL": "sk-xxxxxx",
             "ANTHROPIC_SMALL_FAST_MODEL": "claude-3.5-haiku"
         }
     }
    ```bash
    
  6. Run task

    On the task page, select your project and branch, describe your development requirements, such as implementing a bubble sort algorithm using Python

๐Ÿ—๏ธ Architecture

graph TB
    subgraph "๐Ÿ–ฅ๏ธ Management Platform Layer"
        Frontend["๐ŸŒ Next.js Frontend"]
        Backend["โš™๏ธ FastAPI Backend"]
        API["๐Ÿš€ Declarative API"]
    end
    
    subgraph "๐Ÿ“Š Data Layer"
        MySQL[("๐Ÿ’พ MySQL Database")]
    end
    
    subgraph "๐Ÿ” Execution Layer"
        ExecutorManager["๐Ÿ’ฏ Executor Manager"]
        Executor1["๐Ÿš€ Executor 1"]
        Executor2["๐Ÿš€ Executor 2"]
        ExecutorN["๐Ÿš€ Executor N"]
    end
    
    subgraph "๐Ÿค– Agent Layer"
        Claude["๐Ÿง  Claude Code"]
        AngoPlanned["๐Ÿ’ป Agno (Planned)"]
        DifyPlanned["โœจ Dify (Planned)"]
    end
  
    
    %% System Interactions
    Frontend --> API
    API --> Backend
    Backend --> MySQL
    Backend --> ExecutorManager
    ExecutorManager --> Executor1
    ExecutorManager --> Executor2
    ExecutorManager --> ExecutorN
    
    %% AI Program Integration (Currently only supports Claude Code)
    Executor1 --> Claude
    Executor2 --> Claude
    ExecutorN --> Claude
Loading

๐Ÿ› ๏ธ Development

Project Structure

wegent/
โ”œโ”€โ”€ backend/          # FastAPI backend service
โ”œโ”€โ”€ frontend/         # Next.js web interface
โ”œโ”€โ”€ executor/         # Task execution engine
โ”œโ”€โ”€ executor_manager/ # Execution orchestration
โ”œโ”€โ”€ shared/           # Common utilities and models
โ””โ”€โ”€ docker/           # Container configurations

Development Setup

  1. Backend Development

    cd backend
    pip install -r requirements.txt
    uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
  2. Frontend Development

    cd frontend
    npm install
    npm run dev
  3. Run Tests

    # Backend tests
    cd backend && python -m pytest
    
    # Frontend tests
    cd frontend && npm test

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

๐Ÿ“ž Support


Made with โค๏ธ by WeCode-AI Team

About

An open-source platform to define, organize, and run Agentic AI.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •