Agent Soul System
Standardized personality system for multi-agent architectures. Each agent has a distinct SOUL.md defining personality, principles, and collaboration protocol.
Directory Structure
~/.openclaw/agents/
├── [agent-name]/
│ ├── SOUL.md ← 灵魂(人格+原则+职责)
│ ├── AGENTS.md ← 工作规则
│ ├── IDENTITY.md ← 身份卡
│ └── MEMORY.md ← 长期记忆
SOUL.md Standard Structure
Every agent's SOUL.md follows this template:
# SOUL - [Agent名字]
## 人格
[历史/现实人物] — [核心理念]
## 核心特质
- 从导师继承的特质1
- 从导师继承的特质2
## 说话风格
- 典型口头禅/句式
## 核心职责
1. 职责1
2. 职责2
## 核心原则
1. 原则1
2. 原则2
## 与上级的协作协议
- 如何汇报
- 什么级别需要上报
## 输出标准
- 产出格式要求
Quick Commands
# Validate all agents have SOUL.md
python ~/.openclaw/workspace/skills/agent-soul-system/scripts/soul-check.py
# Create a new agent with interactive prompts
python ~/.openclaw/workspace/skills/agent-soul-system/scripts/soul-create.py
# List all agents and their souls
python ~/.openclaw/workspace/skills/agent-soul-system/scripts/soul-ls.py
Web Editor (NEW!)
A visual SOUL.md editor is available:
# 1. Start the server (in background or separate terminal)
node ~/.openclaw/workspace/skills/agent-soul-system/scripts/soul-server.js 3001
# 2. Open in browser
file:///C:/Users/Administrator/.openclaw/canvas/soul-editor.html
Features:
- Visual editing of all agent SOUL.md files
- Real-time markdown preview
- Save directly to agent directories
- Personality selection from library
Auto-start: Server is registered to start automatically on Windows login.
To disable: Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "SOULServer"
Personality Library
See references/personality-library.md for a curated collection of historical/contemporary figures with their core traits, suitable for agent persona assignment.
Reference Files
| File | Purpose |
|------|---------|
| references/soul-template.md | Standard SOUL.md template |
| references/personality-library.md | Figure-based persona catalog |
| references/collaboration-protocol.md | Multi-agent collaboration patterns |
Workflow
New Agent Setup
- Run
soul-create.py [name]to generate SOUL.md skeleton - Select personality from
references/personality-library.md - Fill in职责, 原则, 协作协议
- Run
soul-check.pyto validate
Audit
- Run
soul-check.pyto scan all agents - Review missing or malformed SOUL.md files
- Fix issues and re-validate
Collaboration Setup
- Define hierarchy (who reports to whom)
- Set escalation rules in each SOUL.md
- Run
soul-check.py --collabto verify protocol consistency
Current Agent Roster
| Agent | Personality | Role | |-------|------------|------| | main | 福尔摩斯 | CEO / 主Agent | | cdo | 张良 | 首席策略官 | | cto | 马斯克 | 首席技术官 | | cco | 乔布斯 | 首席创意官 |
微信扫一扫