Skip to main content

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.

ClawCrew Dashboard

๐Ÿ’ก 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:

  1. Check and install dependencies (Python 3.10+, pip, jq)
  2. Install ClawCrew via pip
  3. 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.

  1. Message @BotFather โ†’ /newbot
  2. Get your bot token
  3. 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

  1. Create a group called "OpenClaw Dev" (or any name)
  2. Add your bot to the group
  3. 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


Built with ๐Ÿฆž OpenClaw โ€” Your personal AI assistant

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clawcrew-0.3.0.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clawcrew-0.3.0-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

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

Hashes for clawcrew-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b5638add3319ef56d621dbc4b41b0ea008e0d18c6251aef9180f66971b5b28fa
MD5 6ae6afc7cf4f55b6bb56c27d65bade51
BLAKE2b-256 d97e152b34103e0f27e0517ca7f94b344a319fd096414aae8aa0669d8c643033

See more details on using hashes here.

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

Hashes for clawcrew-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4d7d1e33b3817ead9ebcf43d10b823d141db2de7012734159305a506e7b984c
MD5 fa8e67c4295d8cc7416489961becdedd
BLAKE2b-256 ab5fe3b0eddeb02aa7af4d6e34211a59c3d43c8d87e9d406360f09f0366d9310

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page