# Wegent **Repository Path**: wecode-ai/wegent ## Basic Information - **Project Name**: Wegent - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2025-11-13 - **Last Updated**: 2026-01-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Wegent > ๐Ÿš€ An open-source platform to define, organize, and run Agentic AI English | [็ฎ€ไฝ“ไธญๆ–‡](README_zh.md) [![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://python.org) [![FastAPI](https://img.shields.io/badge/FastAPI-0.68+-green.svg)](https://fastapi.tiangolo.com) [![Next.js](https://img.shields.io/badge/Next.js-15+-black.svg)](https://nextjs.org) [![Docker](https://img.shields.io/badge/docker-ready-blue.svg)](https://docker.com) [![Claude](https://img.shields.io/badge/Claude-Code-orange.svg)](https://claude.ai)
### ๐Ÿš€ **Build Your Own AI Agent Workforce** *From coding assistants to news analysts - deploy intelligent agents that actually work* [Quick Start](#-quick-start) ยท [Use Cases](#-what-can-you-build) ยท [Documentation](docs/en/resource-definition-formats.md)
--- ## ๐Ÿ’ก What Can You Build? Wegent empowers you to create powerful AI applications through intelligent agent orchestration: ### ๐Ÿ–ฅ๏ธ **Web-Based Coding Assistant** Build a full-featured development environment in your browser Demo Video ### ๐Ÿ“ฐ **News Intelligence Platform** Create a smart news aggregation and analysis system ### ๐Ÿ”ง **Custom Agent Applications** The possibilities are endless - build agents for: - **Data Analysis**: Automated report generation and visualization - **Content Creation**: Blog posts, social media, and marketing materials - **Customer Support**: Intelligent chatbots with contextual understanding - **DevOps Automation**: CI/CD pipeline management and monitoring - **Research Assistant**: Literature review and knowledge synthesis --- ## ๐Ÿ“– What is Wegent? 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. ```mermaid graph LR subgraph AIResource ["๐ŸŒ AI Native Resource"] subgraph YAMLDef ["๐Ÿ“„ YAML Definitions"] Ghost["๐Ÿ‘ป Ghost
Agent Soul"] Model["๐Ÿง  Model
Model Configuration"] Shell["๐Ÿš Shell
Agent Program"] Bot["๐Ÿค– Bot
Agent Instance"] CollabModel["๐Ÿค Collaboration
Collaboration Model"] Team["๐Ÿ‘ฅ Team
Collaborative Team"] end end subgraph Wegent ["๐Ÿš€ Wegent"] Workspace["๐Ÿ’ผ Workspace
Work Environment"] TeamInstance["๐Ÿ‘ฅ Agent Team Instance
Running Team"] end User["๐Ÿ‘ค User"] Task["๐ŸŽฏ Task
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 ``` ### ๐ŸŽฏ 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 > ๐Ÿ’ก **Detailed YAML Configuration Documentation**: - [Complete YAML configuration examples and field descriptions](docs/en/resource-definition-formats.md) ### โœจ 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 ## ๐Ÿš€ Quick Start ### Prerequisites - Docker and Docker Compose - Git 1. **Clone the repository** ```bash git clone https://github.com/wecode-ai/wegent.git cd wegent ``` 2. **Start the platform** ```bash docker-compose up -d ``` 3. **Access the web interface** - Open http://localhost:3000 in your browser 4. **Configure GitHub Access Tokens** - Follow the page instructions to configure your GitHub access token 5. **Configure Bot** Wegent ships with a built-in development bot. For the Claude Code runtime, set the following environment variables: ```json { "env": { "ANTHROPIC_MODEL": "openrouter,anthropic/claude-sonnet-4", "ANTHROPIC_AUTH_TOKEN": "sk-xxxxxx", "ANTHROPIC_BASE_URL": "http://xxxxx", "ANTHROPIC_SMALL_FAST_MODEL": "openrouter,anthropic/claude-3.5-haiku" } } ``` Note: Some runtimes may use `ANTHROPIC_API_KEY` instead of `ANTHROPIC_AUTH_TOKEN`. See docs for details. 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 ```mermaid 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 ``` ## ๐Ÿ› ๏ธ 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** ```bash cd backend pip install -r requirements.txt uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload ``` 2. **Frontend Development** ```bash cd frontend npm install npm run dev ``` 3. **Run Tests** ```bash # Backend tests cd backend && python -m pytest # Frontend tests cd frontend && npm test ``` ## ๐Ÿค Contributing We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) 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 - ๐Ÿ› Issues: [GitHub Issues](https://github.com/wecode-ai/wegent/issues) ## ๐Ÿ‘ฅ Contributors Thanks to the following developers for their contributions and efforts to make this project better. ๐Ÿ’ช
qdaxb
qdaxb
cc-yafei
cc-yafei
fengkuizhi
fengkuizhi
feifei325
feifei325
Micro66
Micro66
moqimoqidea
moqimoqidea
---

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