ClawTeam README

The project's README from github.com/HKUDS/ClawTeam. As one markdown file: README.md.

  ClawTeam: Agent Swarm Intelligence

The Evolution of AI Agents 🚀: Solo 🤖 → Swarm 🦞🤖🤖🤖
ClawTeam: Let AI Agents Form Swarms, Think & Work Together, and Ship Faster

Quick Start Use Cases Features License

Python Typer Agents Transport Feishu WeChat

One Command Line: Full Automation. — agents spawn swarms, delegate tasks, and deliver results.

Human provides the goal. The Agent Team orchestrates everything else.

Full compatibility with Claude Code, Codex, OpenClaw, nanobot, Cursor, and any CLI agent.  中文文档 | 한국어


📰 News

2026-03-18 ClawTeam project launched publicly.

2026-03-23 ClawTeam v0.2.0 is released today.

2026-03 The current baseline includes config management, multi-user workflows, Web UI, P2P transport, and team templates.


✨ ClawTeam's Key Features

🔬 AI Research Automation

AutoResearch

• Large-Scale Automated ML Experimentation

• AI Model Training & Optimization

• AI-Driven Hypothesis Generation & Validation

• Self-Improving Model Architectures

🏗️ Agentic Engineering

Engineering

• Autonomous Full-Stack Development

• Self-Evolving Software

• Collaborative Open Source Development

• Real-Time System Integration

💰 AI Hedge Fund

Hedge Fund

• Automated Market Research & Data Mining

• Multi-Strategy Portfolio Optimization

• Real-Time Risk Assessment

• Algorithmic Trading Execution & Monitoring

🎪 Your Own Swarm

Templates

• Custom Scientific Research Teams

• Personalized Investment Committees

• Business Operations Teams

• Content Production Studios


v0.1.0

https://github.com/user-attachments/assets/7e2f0ecd-8fe3-4970-90ac-5c9669ff060c

v0.2.0

https://github.com/user-attachments/assets/fd23be91-5cf4-457c-a77e-bac24b76e58f

☝️ Intelligent leader agent orchestrates 8 specialized sub-agents across 8 H100 GPUs, autonomously designing experiments and dynamically reallocating resources based on real-time performance.

🧠 The system synthesizes breakthroughs across teams and evolves strategies independently — achieving full research automation without human intervention.

ClawTeam - AI agents orchestrating themselves


🤔 Why ClawTeam?

Current AI agents are powerful — but they work in isolation. When facing complex tasks, you're stuck manually coordinating multiple agents, juggling context, and stitching together fragmented results.

What if agents could think and work as a team?

ClawTeam unlocks Agent Swarm Intelligence — where AI agents self-organize into collaborative teams, intelligently divide complex work, share insights in real-time, and converge on breakthrough solutions.

• 🚀 Spawns specialized sub-agents — each with dedicated environments and focus areas

• 📋 Designs intelligent task allocation — with smart dependency management

• 💬 Facilitates real-time coordination — seamless inter-agent communication

• 📊 Monitors team performance — tracks progress and identifies bottlenecks

• 🔄 Adapts strategies dynamically — reallocates resources and redirects efforts

✨ The Result?

You set the vision. The swarm executes with collective intelligence.

How ClawTeam works - comic


🎯 Swarm Intelligence in Action

🦞 Agents Spawn Agents

The leader agent calls clawteam spawn to create workers. Each worker gets its own git worktree, tmux window, and identity — automatically.

# The leader agent runs:
clawteam spawn --team my-team \
  --agent-name worker1 \
  --task "Implement auth module"

🤖 Agents Talk to Agents

Workers check their inbox, update task status, and report results — all through CLI commands that are auto-injected into their prompt.

# A worker agent checks tasks:
clawteam task list my-team --owner me
# Then reports back:
clawteam inbox send my-team leader \
  "Auth done. All tests passing."

👀 You Just Watch

Monitor the swarm from a tiled tmux view or a Web UI. The leader handles coordination — you intervene only when you want to.

# Watch all agents simultaneously
clawteam board attach my-team
# Or open the web dashboard
clawteam board serve --port 8080
ClawTeam Other multi-agent frameworks
🎯 Who uses it The AI agents themselves Humans writing orchestration code
⚡ Setup pip install + one prompt to the leader Docker, cloud APIs, YAML configs
🏗️ Infrastructure Just a filesystem and tmux Redis, message queues, databases
🤖 Agent support Any CLI agent (Claude Code, Codex, OpenClaw, custom) Framework-specific only
🌳 Isolation Git worktrees (real branches, real diffs) Containers or virtual envs
🧠 Intelligence Swarm self-organizes via CLI commands Hard-coded orchestration logic

🎬 Use Cases

🔬 1. Autonomous ML Research — 8 Agents × 8 H100 GPUs

Based on @karpathy's autoresearch.

💫 One Command. Full Automation.

Human input: "Optimize this LLM training setup using 8 GPUs"

The Agent Team handles everything else:

🎯 Pure Research at Scale

Transform months of manual hyperparameter tuning into hours of intelligent automation.

AutoResearch Progress
🏆 val_bpb: 1.044 → 0.977 (6.4% improvement) | 2430+ experiments | ~30 GPU-hours

What agent team did autonomously:

Human prompt: "Use 8 GPUs to optimize train.py. Read program.md for instructions."

🦞 Leader agent's actions:
├── 📖 Read program.md, understand the experiment protocol
├── 🏗️ clawteam team spawn-team autoresearch
├── 🚀 Assigned each GPU a research direction:
│   ├── GPU 0: clawteam spawn --task "Explore model depth (DEPTH 10-16)"
│   ├── GPU 1: clawteam spawn --task "Explore model width (ASPECT_RATIO 80-128)"
│   ├── GPU 2: clawteam spawn --task "Tune learning rates and optimizer"
│   ├── GPU 3: clawteam spawn --task "Explore batch size and accumulation"
│   ├── GPU 4-7: clawteam spawn tmux codex --task "..."  (Codex agents)
│   └── 🌳 Each agent: own git worktree, own branch, isolated experiments
├── 🔄 Every 30 minutes, checked results:
│   ├── clawteam board show autoresearch
│   ├── Read each agent's results.tsv
│   ├── 🏆 Identified best findings (depth=12, batch=2^17, norm-before-RoPE)
│   └── 📡 Cross-pollinated: told new agents to start from the best config
├── 🔧 When agents finished, reassigned GPUs:
│   ├── Killed idle agents, cleaned worktrees
│   ├── Created new worktrees from the best commit
│   └── Spawned fresh agents with combined optimization directions
└── ✅ After 2430+ experiments: val_bpb 1.044 → 0.977

Full results: novix-science/autoresearch


🏗️ 2. Agentic Software Engineering

You tell Claude Code: "Build me a full-stack todo app." Claude realizes this is a multi-module task and self-organizes a team:

Human prompt: "Build a full-stack todo app with auth, database, and React frontend."

🦞 Leader agent's actions:
├── 🏗️ clawteam team spawn-team webapp -d "Full-stack todo app"
├── 📋 Created tasks with dependency chains:
│   ├── T1: "Design REST API schema"          → architect
│   ├── T2: "Implement JWT auth" --blocked-by T1  → backend1
│   ├── T3: "Build database layer" --blocked-by T1 → backend2
│   ├── T4: "Build React frontend"             → frontend
│   └── T5: "Integration tests" --blocked-by T2,T3,T4 → tester
├── 🚀 Spawned 5 sub-agents (each in its own git worktree):
│   ├── clawteam spawn --agent-name architect --task "Design the API schema"
│   ├── clawteam spawn --agent-name backend1  --task "Implement JWT auth"
│   ├── clawteam spawn --agent-name backend2  --task "Build PostgreSQL models"
│   ├── clawteam spawn --agent-name frontend  --task "Build React UI"
│   └── clawteam spawn --agent-name tester    --task "Write pytest tests"
├── 🔗 Dependency auto-resolution:
│   ├── architect completes → backend1 and backend2 auto-unblock
│   ├── All backends complete → tester auto-unblocks
│   └── Each agent calls: clawteam task update <id> --status completed
├── 💬 Sub-agents coordinate via inbox:
│   ├── architect → backend1: "Here's the OpenAPI spec: ..."
│   ├── backend1 → tester: "Auth endpoints ready at /api/auth/*"
│   └── tester → leader: "All 47 tests passing ✅"
└── 🌳 Leader merges all worktrees into main branch

💰 3. AI Hedge Fund — One-Command Team Launch

A pre-built TOML template spawns a complete 7-agent investment analysis team:

# One command launches everything:
clawteam launch hedge-fund --team fund1 --goal "Analyze AAPL, MSFT, NVDA for Q2 2026"
🦞 What happens automatically:
├── 📊 Portfolio Manager (leader) spawns and receives the goal
├── 🤖 5 Analyst agents spawn, each with a different strategy:
│   ├── 🎩 Buffett Analyst    → value investing (moat, ROE, DCF)
│   ├── 🚀 Growth Analyst     → disruption (TAM, network effects)
│   ├── 📈 Technical Analyst  → indicators (EMA, RSI, Bollinger)
│   ├── 📋 Fundamentals       → financial ratios (P/E, D/E, FCF)
│   └── 📰 Sentiment Analyst  → news + insider trading signals
├── 🛡️ Risk Manager spawns, waits for all analyst signals:
│   ├── clawteam inbox receive fund1 (collects all 5 signals)
│   ├── Consolidates + computes position limits
│   └── clawteam inbox send fund1 portfolio-manager "RISK REPORT: ..."
└── 💼 Portfolio Manager makes final buy/sell/hold decisions

Templates are TOML files — create your own team archetypes for any domain.


📦 Install

pip install clawteam

# Or install into an isolated user venv at ~/.clawteam/.venv
scripts/install_clawteam.sh

# Or from source
git clone https://github.com/HKUDS/ClawTeam.git
cd ClawTeam
pip install -e .

# Or install this checkout into ~/.clawteam/.venv
scripts/clawteam_local_install

# Optional: P2P transport (ZeroMQ)
pip install -e ".[p2p]"

Requires Python 3.10+, tmux, and a CLI coding agent (e.g. claude, codex). The install scripts create/reuse ~/.clawteam/.venv, link ~/.local/bin/clawteam, and install/update the bundled clawteam skill for detected clients.

Skill install targets are detected from existing config directories, including Claude Code, Codex, Gemini CLI, OpenClaw, OpenCode, Nanobot, Cursor, OpenHarness (~/.openharness/skills), and Ohmo (~/.ohmo/skills).

All spawn examples assume the agent CLI you name is already installed and available on PATH.


🚀 Quick Start

If you're new to ClawTeam, follow this order:

  1. Make sure tmux and your agent CLI run standalone on this machine.
  2. Pick one path below: let an agent drive, or drive it manually.
  3. Use the supported-agent table to choose the right spawn command.
  4. If you're integrating a new agent, check the adapter notes before debugging.

✅ Before You Start

Run these checks first:

tmux -V
clawteam --help

# Replace claude with the agent you actually want to use:
claude --version
codex --version
nanobot --help

If the agent CLI does not run correctly by itself, clawteam spawn will not fix it.

ClawTeam ships with a reusable skill in skills/clawteam/.

Claude Code

Install the skill into ~/.claude/skills/clawteam, then prompt:

"Build a web app. Use clawteam to split the work across multiple agents."

Codex

Install the same skill into $CODEX_HOME/skills/clawteam (typically ~/.codex/skills/clawteam), then prompt:

Use $clawteam to split this task across multiple agents and coordinate the team to completion.

The agent will automatically create a team, spawn workers, assign tasks, and coordinate — using clawteam CLI commands under the hood.

🔧 Option 2: Drive It Manually

# 1. Create a team (you become the leader)
clawteam team spawn-team my-team -d "Build the auth module" -n leader

# 2. Spawn worker agents — each gets a git worktree, tmux window, and identity
clawteam spawn --team my-team --agent-name alice --task "Implement the OAuth2 flow"
clawteam spawn --team my-team --agent-name bob   --task "Write unit tests for auth"

# 3. Workers auto-receive a coordination prompt that teaches them to:
#    ✅ Check tasks:    clawteam task list my-team --owner alice
#    ✅ Update status:  clawteam task update my-team <id> --status completed
#    ✅ Message leader: clawteam inbox send my-team leader "Done!"
#    ✅ Report idle:    clawteam lifecycle idle my-team

# 4. Watch them work side-by-side
clawteam board attach my-team

🧩 Profiles and Presets

When you want to use a non-default provider, model, or API gateway, configure a profile first instead of manually exporting provider env vars each time.

# See built-in provider templates
clawteam preset list
clawteam preset show moonshot-cn

# Generate a reusable runtime profile from a preset
clawteam preset generate-profile moonshot-cn claude --name claude-kimi

# MiniMax (M2.7) — global or China endpoint
clawteam preset generate-profile minimax-global claude --name claude-minimax
clawteam preset generate-profile minimax-cn claude --name claude-minimax-cn

# Or use the interactive TUI
clawteam profile wizard

# Claude Code on a fresh machine/home may need this once
clawteam profile doctor claude

# Smoke-test the profile before spawning workers
MOONSHOT_API_KEY=... clawteam profile test claude-kimi
MINIMAX_API_KEY=... clawteam profile test claude-minimax

Rules of thumb:

🧭 Which Spawn Command Should I Use?

Use clawteam spawn [backend] [command] ... with the command that already works on your machine:

# Claude Code
clawteam spawn tmux claude --team my-team --agent-name alice --task "Implement OAuth2"

# Codex
clawteam spawn tmux codex --team my-team --agent-name bob --task "Write frontend tests"

# nanobot
clawteam spawn tmux nanobot --team my-team --agent-name carol --task "Build the API"

# A configured profile (recommended for non-default providers/models)
clawteam spawn tmux --profile claude-kimi --team my-team --agent-name dave --task "Refactor the auth flow"

Notes:

🔌 Adding a Different Agent

ClawTeam can work with agents beyond Claude Code, Codex, and nanobot, but the CLI must satisfy a small compatibility contract:

  1. The command must exist on PATH and l

ClawTeam (HKUDS/ClawTeam)

Searching Database…

What is this?ClawTeam lets a CLI coding agent like Claude Code or Codex spawn a swarm of specialized sub-agents that split up a task, coordinate with each other, and report back results — triggered by one command and a single goal from the human.
Is this a framework I code against, or a CLI tool?It is a CLI tool (clawteam) that any CLI coding agent calls to spawn and manage workers — there is no SDK to import, just commands like 'clawteam spawn' that get auto-injected into the agent's prompts.
How do I install and start using it?The install script creates a ~/.clawteam/.venv, links the clawteam binary into ~/.local/bin, and installs the bundled skill into whichever agent's config folder it detects (Claude Code, Codex, etc.); then you just prompt your agent to use the skill and it drives clawteam spawn on its own.
Do I need Claude Code or Codex already set up before using this?Yes — ClawTeam requires Python 3.10+, tmux, and a CLI coding agent such as claude or codex already installed and working on its own; ClawTeam only orchestrates that agent, it doesn't replace it.
What happens if my agent CLI is already flaky?ClawTeam won't fix it — if the underlying agent CLI doesn't run correctly standalone, spawning workers through clawteam will just surface the same failures.
Does this run on Windows, or do I need macOS/Linux because of tmux?The README only documents tmux as the default backend and never mentions Windows, so in practice this is a macOS/Linux tool built around tmux windows and git worktrees.
What's a real example of what the swarm has done?In an autonomous ML research run, a leader agent spawned 8 specialized sub-agents across 8 H100 GPUs, ran 2,430+ experiments, and improved a training metric (valbpb) from 1.044 to 0.977 with zero human intervention.
How is this different from frameworks like LangGraph?ClawTeam skips Docker, Redis, message queues and YAML configs — setup is just 'pip install' plus a prompt to the leader agent, and isolation comes from git worktrees and tmux windows instead of containers.
What are the TOML team templates for?Each template pre-defines a whole agent team archetype, like the bundled 7-agent AI Hedge Fund template, so you can launch a ready-made team with one command instead of building it from scratch.
Why does each worker get its own git worktree?Git worktrees give every spawned worker a real branch and real diffs to work in, so agents can edit code in parallel without stepping on each other's changes.
Creator
HKUDS
Size
9.4 MB
Stars
5.5K
Age
7mo
Commits · 90 Days