← Back to Plugins
Tools

The Autonomous Agent Soul Company

kongkongkongs By kongkongkongs 👁 7 views ▲ 0 votes

The OpenClaw plugin powers a three-tier agent network that autonomously evolves and upgrades, where agents form a collaborative company to divide labor and complete tasks end-to-end.A sophisticated multi-agent system with three-layer architecture (L1-L2-L3), MemOS memory flow, and evolution system.

GitHub

Install

npm install
```

Configuration Example

{
  "evolution_cooling_period": {
    "STRATEGIC": 7,
    "COORDINATIVE": 3,
    "SKILL": 1
  }
}

README

# The Autonomous Agent Soul Company

A sophisticated multi-agent system with three-layer architecture, memory flow, and persistent services for OpenClaw.

## Features

### Core Architecture
- **Three-layer architecture** (L1-L2-L3) with clear permission and information granularity
- **L1 Strategic Agents**: CTO顾问、CPO顾问、CMO顾问、COO顾问、创业顾问
- **154 AI Agents** across 18 categories (marketing, engineering, design, sales, etc.)
- **MemOS memory flow** with four memory types (WORKING, EPISODIC, SEMANTIC, PROCEDURAL)

### Advanced Features (2026.03.16 Update)
- **Vibe with Me Flow**: 用户只需描述需求,L1智能体自动分析、组建团队、执行任务
- **Auto Research Mode**: L1智能体自主研究能力,假设→实验→评估→决策循环
- **Long-term Memory**: 分层记忆系统(工作/短期/长期)+ 向量相似度检索
- **MCP Skills**: L3智能体技能扩展,支持文件系统、代码执行、搜索等

### Persistent Services
- Claude Code Watchdog
- Session ID Manager
- Memory Flush Scheduler
- Evolution Scheduler
- Gateway Watchdog
- Global Resource Scheduler
- Startup Reconciler

### Evolution System
- 28 trigger conditions for continuous improvement
- Auto-evolution based on research results
- Semantic guard threshold

## Installation

### Prerequisites
- OpenClaw v2026.3.12+
- Node.js 18+
- npm

### Installation Steps

1. **Clone the repository**
```bash
git clone https://github.com/your-username/the-autonomous-agent-soul-company.git
cd the-autonomous-agent-soul-company
```

2. **Install dependencies**
```bash
npm install
```

3. **Install MemOS-local-openclaw dependencies**
```bash
cd MemOS/apps/memos-local-openclaw
npm install
npm run build
cd ../..
```

4. **Copy to OpenClaw plugin directory**
```bash
# For macOS/Linux
cp -r . ~/.openclaw/plugins/the-autonomous-agent-soul-company

# For Windows
xcopy . %USERPROFILE%\.openclaw\plugins\the-autonomous-agent-soul-company /E
```

5. **Restart OpenClaw**

6. **Verify installation**
- Open OpenClaw
- Go to Plugins section
- Check if "The Autonomous Agent Soul Company" is listed

## Quick Start

### Vibe with Me Flow (核心功能)

用户只需通过自然语言描述需求,L1智能体将自动完成以下工作:

```bash
# 在OpenClaw中输入
vibe team 帮我开发一个电商网站,需要用户登录、商品展示、购物车功能
```

系统会自动:
1. **理解需求** - 分析用户输入,确定任务类型和复杂度
2. **分解任务** - 将大任务拆分为可执行的子任务
3. **规划团队** - 确定需要哪些L2团队
4. **组建团队** - 自动选择L1领导、L2负责人、L3成员
5. **执行任务** - 协调各团队并行/串行执行
6. **生成报告** - 输出任务完成报告和改进建议

### Auto Research Mode (自主研究)

L1智能体可以自主进行研究和优化:

```bash
# 启动自主研究
POST /api/research/start
{
  "agentId": "cto",
  "objective": "优化代码生成质量",
  "context": {"currentQuality": 0.7}
}
```

研究循环:
1. **假设生成** - 基于目标和上下文提出假设
2. **实验设计** - 设计验证假设的实验
3. **执行实验** - 调用L3智能体执行
4. **结果评估** - 评估是否达到成功标准
5. **决策** - 继续/完成/转向

### Long-term Memory (增强记忆)

分层记忆系统,支持长期知识积累:

```bash
# 添加记忆
POST /api/memory/add
{
  "content": "用户偏好深色模式",
  "metadata": {"userId": "user1", "type": "preference"}
}

# 检索记忆
POST /api/memory/retrieve
{
  "query": "用户界面偏好",
  "layer": "all",
  "limit": 10
}
```

### MCP Skills (技能扩展)

为L3智能体扩展MCP技能:

```bash
# 获取可用技能
GET /api/mcp/skills

# 执行技能
POST /api/mcp/skills/mcp_code_run/execute
{
  "code": "console.log('Hello')",
  "language": "javascript"
}
```

## API Endpoints

### Vibe Team (团队自动组建)
| Method | Path | Description |
|--------|------|-------------|
| POST | /api/vibe/start | 启动Vibe会话 |
| GET | /api/vibe/session/:sessionId | 获取会话状态 |
| GET | /api/vibe/sessions | 获取历史会话 |
| GET | /api/vibe/statistics | 获取统计信息 |

### Auto Research (自主研究)
| Method | Path | Description |
|--------|------|-------------|
| POST | /api/research/start | 启动研究 |
| GET | /api/research/active | 获取进行中研究 |
| GET | /api/research/completed | 获取已完成研究 |
| GET | /api/research/statistics | 获取研究统计 |

### Long-term Memory (长期记忆)
| Method | Path | Description |
|--------|------|-------------|
| POST | /api/memory/add | 添加记忆 |
| POST | /api/memory/retrieve | 检索记忆 |
| GET | /api/memory/context/:taskId | 获取任务上下文 |
| GET | /api/memory/statistics | 获取记忆统计 |

### MCP Skills (技能扩展)
| Method | Path | Description |
|--------|------|-------------|
| GET | /api/mcp/skills | 获取所有技能 |
| POST | /api/mcp/skills/:skillId/execute | 执行技能 |
| GET | /api/mcp/servers | 获取MCP服务器状态 |
| GET | /api/mcp/statistics | 获取技能统计 |

### Team Management
| Method | Path | Description |
|--------|------|-------------|
| GET | /api/teams | 获取所有团队 |
| POST | /api/teams | 添加L2团队 |
| DELETE | /api/teams/:teamName | 删除团队 |
| POST | /api/teams/:teamName/members | 添加L3成员 |

### Cost Management
| Method | Path | Description |
|--------|------|-------------|
| GET | /api/cost/usage | 获取成本使用情况 |
| POST | /api/cost/budget | 更新成本预算 |
| GET | /api/cost/report | 获取成本报告 |

## Commands

- `/soul-check` - Check team status summary
- `/soul-rollback <snapshot-id>` - Rollback to specified snapshot
- `/soul-evolve` - Trigger evolution analysis
- `/soul-team-list` - List all active teams

## Configuration

### YOLO Mode
```bash
# Enable YOLO mode
npm run config set yolo=true

# Disable YOLO mode
npm run config set yolo=false
```

### Evolution Cooling Period
```json
{
  "evolution_cooling_period": {
    "STRATEGIC": 7,
    "COORDINATIVE": 3,
    "SKILL": 1
  }
}
```

## Directory Structure

```
the-autonomous-agent-soul-company/
├── src/
│   ├── index.js              # Plugin main entry
│   ├── services/
│   │   ├── auto-research-mode.js    # 自主研究模式
│   │   ├── long-term-memory.js      # 长期记忆系统
│   │   ├── mcp-skill-loader.js     # MCP技能加载器
│   │   ├── vibe-team-builder.js     # Vibe团队构建器
│   │   └── ...
│   ├── memos/               # MemOS memory system
│   ├── hooks/               # Lifecycle hooks
│   └── commands/            # Auto-reply commands
├── data/
│   ├── skill-sets/          # 154个智能体技能
│   └── ...
├── config/                  # Configuration files
└── README.md
```

## System Requirements

- **CPU**: 2+ cores
- **Memory**: 4GB+ RAM
- **Storage**: 1GB+ free space
- **Network**: Internet connection for LLM calls

## Troubleshooting

### Plugin not loading
- Check OpenClaw version (v2026.3.12+ required)
- Verify plugin directory structure
- Check npm dependencies

### Vibe Flow not working
- Check LLM service configuration
- Verify agent activation

### Memory issues
- Run `/soul-check` to check system status
- Check memory directories for proper permissions

## License

MIT License
tools

Comments

Sign in to leave a comment

Loading comments...