Multi-agent AI team framework for OpenClaw
Project description
ClawCrew.md
๐ฆ A framework for building collaborative AI agent teams on OpenClaw
๐ฏ What is ClawCrew?
ClawCrew is a framework for creating multi-agent teams that collaborate on tasks. Instead of one AI doing everything, you define specialized agents with focused roles, and an orchestrator coordinates their work.
Each agent evolves independently. You can train and tune each agent's capabilities separately โ refine the designer's taste, sharpen the coder's style, improve the tester's coverage. They grow as individuals.
You're the manager. In Telegram (or any IM), you talk to the orchestrator and watch every agent work in real-time. Jump in anytime โ give feedback, correct course, or let them run. Define team workflows and standards, then step back and let them deliver. It's like running a team or a company, except your employees are AI.
The magic: Each agent's capabilities are defined by its workspace โ SOUL.md, AGENTS.md, skills, and tools. Change the workspace, change the agent.
Watch them work in real-time โ right in your chat.
๐ก Core Concept
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ClawCrew Framework โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Orchestrator Agent (workspace_orca/) โ
โ โโโ SOUL.md โ Personality & rules โ
โ โโโ AGENTS.md โ Behavior guidelines โ
โ โโโ ClawCrew.md โ Team structure & roles โญ โ
โ โโโ skills/ โ Available capabilities โ
โ โ
โ โ spawns โ
โ โผ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ Agent A โ โ Agent B โ โ Agent C โ โ
โ โ workspace_A/ โ โ workspace_B/ โ โ workspace_C/ โ โ
โ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โ
โ โ
โ Each agent = unique workspace = unique capabilities โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ ClawCrew.md โ The team definition file lives in the orchestrator's workspace.
It describes all roles, workflows, and standards for your agent team.
Key insight: The framework doesn't define what agents do โ workspaces do.
๐จ Example Teams
1. Software Dev Team
๐ฆ OrcaBot (Orchestrator)
โโโ ๐จ DesignBot โ API design, types, specs
โโโ ๐ป CodeBot โ Implementation
โโโ ๐งช TestBot โ Testing, coverage
Use case: Automated code generation with quality gates
2. Research Team
๐ ResearchLead (Orchestrator)
โโโ ๐ SearchBot โ Web research, data gathering
โโโ ๐ AnalystBot โ Data analysis, insights
โโโ โ๏ธ WriterBot โ Report writing, summaries
Use case: Deep research with structured output
3. Content Team
๐ฌ ContentLead (Orchestrator)
โโโ ๐ก IdeaBot โ Brainstorming, concepts
โโโ โ๏ธ DraftBot โ Writing first drafts
โโโ ๐ EditorBot โ Review, polish, fact-check
โโโ ๐ AnalyzerBot โ Monitor engagement (clicks, replies, shares)
Use case: Blog posts, marketing copy, documentation with performance tracking
4. Customer Support Team
๐ฏ SupportLead (Orchestrator)
โโโ ๐ TriageBot โ Categorize, prioritize
โโโ ๐ฌ ReplyBot โ Draft responses
โโโ ๐ EscalateBot โ Complex issue handling
Use case: Automated support ticket handling
๐ฅ Software Dev Team (Full Example)
This example shows a complete software development crew.
Team Structure
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ ๐ฆ OrcaBot โ
โ (Orchestrator) โ
โ โ
โ "I break down tasks, delegate work, and ensure โ
โ quality at every step." โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ
โ โ โ โ โ โ
โ ๐จ Design โ โ ๐ป Code โ โ ๐งช Test โ
โ Bot โ โ Bot โ โ Bot โ
โ โ โ โ โ โ
โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ
Agent Roles
| Agent | Role | Deliverables |
|---|---|---|
| ๐ฆ OrcaBot | Orchestrator | Task breakdown, quality gates, final delivery |
| ๐จ DesignBot | Architect | API specs, types, edge cases |
| ๐ป CodeBot | Engineer | Implementation, docstrings |
| ๐งช TestBot | QA | Unit tests, coverage report |
Workflow
USER REQUEST
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 1: DESIGN โ OrcaBot โ spawns โ DesignBot
โ Output: API spec โ OrcaBot reviews โ โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 2: CODE โ OrcaBot โ spawns โ CodeBot
โ Output: module.py โ OrcaBot reviews โ โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 3: TEST โ OrcaBot โ spawns โ TestBot
โ Output: tests.py โ OrcaBot reviews โ โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโ
โ FINAL DELIVERY ๐ โ
โ โข Code + Tests โ
โ โข 100% coverage โ
โ โข Documentation โ
โโโโโโโโโโโโโโโโโโโโโโโ
๐ Getting Started
Prerequisites: OpenClaw already installed and configured. See OpenClaw docs for installation.
Option A: One-Click Install (Recommended)
curl -sSL https://raw.githubusercontent.com/lanxindeng8/clawcrew/main/install.sh | bash
This will:
- Check and install dependencies (Python 3.10+, pip, jq)
- Install ClawCrew via pip
- Run the interactive setup wizard
Option B: Install via pip
pip install clawcrew
clawcrew init
Option C: Docker
git clone https://github.com/lanxindeng8/clawcrew
cd clawcrew
cp .env.example .env # Edit with your Telegram credentials
docker-compose up -d
Option D: Manual Setup
Step 1: Create Telegram Bot
Only need 1 bot for all agents.
- Message @BotFather โ
/newbot - Get your bot token
- Important: Disable privacy mode
/mybotsโ Select your bot โ Bot Settings โ Group Privacy โ Turn off- This lets the bot see all messages in groups
Step 2: Create Telegram Group
- Create a group called "OpenClaw Dev" (or any name)
- Add your bot to the group
- Get the group's
chat_id
Step 3: Clone & Configure
git clone https://github.com/lanxindeng8/clawcrew
cd clawcrew
./setup.sh
After Installation
# 1. Reload your shell (or restart terminal)
source ~/.profile # or ~/.zshrc depending on your shell
# 2. Configure ClawCrew (Telegram bot, OpenClaw settings)
clawcrew init
# 3. Start the system
clawcrew start
# 4. Verify everything is running
clawcrew status
Send a Task
Option 1: Telegram โ Send a message in your Telegram group:
Create a Python module to calculate distance between two points
Option 2: CLI โ Run agents directly:
# Chain multiple agents (auto context passing)
clawcrew chain "Create a distance calculator module" design code test
# Or run a single agent
clawcrew run design -t "Design a REST API for user authentication"
OrcaBot will automatically coordinate DesignBot โ CodeBot โ TestBot to complete the task.
๐ป CLI Reference
Core Commands
| Command | Description |
|---|---|
clawcrew init |
Interactive setup wizard |
clawcrew start |
Start the OpenClaw gateway |
clawcrew stop |
Stop the gateway |
clawcrew status |
Show system and agent status |
clawcrew agents |
List available agents |
Running Agents
# Run a single agent
clawcrew run design -t "Design a REST API for users"
# Run with context file
clawcrew run code -t "Implement the API" -c design.md -o api.py
# Chain multiple agents (auto context passing)
clawcrew chain "Create user authentication" design code test
GitHub Integration
clawcrew github analyze --url https://github.com/user/repo
clawcrew github issues -r user/repo
clawcrew github read-issue -r user/repo -n 123
clawcrew github create-pr -r user/repo -t "Fix bug" -H fix-branch
Memory Management
clawcrew show-memory -a design # Show agent's memories
clawcrew clear-memory -a design # Clear today's memories
clawcrew clear-memory -a design --all # Clear all memories
๐ Build Your Own Team
1. Define Your Orchestrator
Create workspace-orchestrator/SOUL.md:
# SOUL.md
You are the team lead. When you receive a task:
1. Break it into phases
2. Spawn the right agent for each phase
3. Review each deliverable
4. Deliver final results
2. Define Specialized Agents
Create workspace-agent-a/SOUL.md:
# SOUL.md
You are a specialist in [SKILL].
When given a task:
1. Focus only on your expertise
2. Deliver high-quality output
3. Report back to the orchestrator
3. Configure Routing
Set up OpenClaw to route to your orchestrator.
4. Run Your Team
Send a task and watch your custom team collaborate!
๐ GitHub Integration
ClawCrew includes GitHubBot โ a specialized agent for GitHub workflows.
Capabilities
| Feature | Description |
|---|---|
| Repository Analysis | Analyze repos to understand architecture, tech stack, and key files |
| Issue Management | List and read GitHub issues for development context |
| PR Workflow | Create, list, and read Pull Requests |
Quick Examples
# Analyze a repo
./bin/agent-cli.py summarize-repo --url https://github.com/user/repo
# Read an issue
./bin/agent-cli.py read-issue -r user/repo -n 123 --comments
# Create a PR
./bin/agent-cli.py create-pr -r user/repo -t "Fix bug" -H fix-branch
Full documentation: See workspace-github/SOUL.md for complete command reference and workflow examples.
๐ฎ Roadmap
Current
- Multi-agent orchestration pattern
- Software Dev Team example
- Quality gates between phases
- Real-time chat visibility
Framework Core (Next)
Team Management
- Easy onboarding โ add new agents with simple config
- Role templates โ pre-defined SOUL.md for common roles
- Hot reload โ update agent capabilities without restart
Team Collaboration
- Shared context โ team members access common knowledge base
- Internal handoffs โ structured data passing between agents
- Team memory โ persistent learnings across sessions
Team Operations
- Workflow editor โ define pipelines visually
- Progress tracking โ see task status across agents
- Quality metrics โ success rates, iteration counts, costs
Multi-Team (Future)
- Team-to-team communication
- Shared resource pools
- Cross-team orchestration
- Organization-level policies
Software Dev Team (Priority)
Since this is the most common use case for developers:
GitHub Integration
- Repo onboarding โ Orca reads new repo, summarizes architecture, shares with team
- Issue โ Task โ GitHub issues automatically become team tasks
- PR workflow โ CodeBot creates PR, TestBot validates, Orca merges
- Code review โ team reviews external PRs
Dev Workflow
- Multi-file projects โ coordinate changes across files
- Dependency awareness โ understand imports and relationships
- Incremental builds โ work on existing codebases
- CI/CD hooks โ trigger builds, handle failures
๐ License
MIT License โ See LICENSE
๐ Links
- Website: clawcrew.md
- GitHub: github.com/lanxindeng8/clawcrew
- OpenClaw: openclaw.ai
- Discord: discord.gg/clawd
Built with ๐ฆ OpenClaw โ Your personal AI assistant
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clawcrew-0.3.0.tar.gz.
File metadata
- Download URL: clawcrew-0.3.0.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5638add3319ef56d621dbc4b41b0ea008e0d18c6251aef9180f66971b5b28fa
|
|
| MD5 |
6ae6afc7cf4f55b6bb56c27d65bade51
|
|
| BLAKE2b-256 |
d97e152b34103e0f27e0517ca7f94b344a319fd096414aae8aa0669d8c643033
|
File details
Details for the file clawcrew-0.3.0-py3-none-any.whl.
File metadata
- Download URL: clawcrew-0.3.0-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4d7d1e33b3817ead9ebcf43d10b823d141db2de7012734159305a506e7b984c
|
|
| MD5 |
fa8e67c4295d8cc7416489961becdedd
|
|
| BLAKE2b-256 |
ab5fe3b0eddeb02aa7af4d6e34211a59c3d43c8d87e9d406360f09f0366d9310
|