Skip to content

shenhao-stu/openclaw-agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

OpenClaw
Version License Agents Channels

๐Ÿพ OpenClaw Agents

One-command multi-agent initialization for OpenClaw
Ship an entire AI agent fleet to your chat group in 60 seconds. Default model: zai/glm-5

Installation โ€ข Architecture โ€ข Agents โ€ข Channels โ€ข Workflows โ€ข Customization โ€ข Contributing


โœจ What Is This?

OpenClaw Agents is a ready-to-deploy multi-agent configuration kit for OpenClaw. It provisions 9 specialized AI agents as a collaborative team โ€” complete with identities, workspace files, routing rules, and channel bindings โ€” using a single setup command.

What You Get

  • ๐Ÿค– 9 pre-configured agents with rich emoji identities for instant recognition in chat
  • ๐Ÿ“ Agent self-merge โ€” deploys BOOTSTRAP.md for intelligent first-run setup
  • ๐Ÿ”— Two Deployment Modes:
    • Channel Mode: auto-routes agents to Feishu, WhatsApp, Telegram, Discord (supports individual groups)
    • Local Workflow Mode: no channel required, agents communicate directly via agentToAgent tool
  • ๐Ÿ“‹ 4 workflow templates โ€” Paper Pipeline, Daily Digest, Brainstorm, Rebuttal
  • โš”๏ธ Adversarial collaboration โ€” Ideatorโ†”Critic and Writerโ†”Reviewer creative tension
  • ๐ŸŽฏ SHARP taste gates โ€” quality checkpoints enforced by the Critic agent
  • ๐Ÿ›ก๏ธ Safe merge โ€” appends agents to existing config, never overwrites your main agent
  • ๐ŸŽ›๏ธ Flexible model โ€” unified model or per-agent customization via --model-map
  • ๐Ÿงฉ Extensible โ€” add custom agents via agents.yaml

๐Ÿ“ฆ Installation

For Humans

Paste this into your LLM agent session (Claude Code, Antigravity, Cursor, etc.):

Fetch the OpenClaw Agents installation guide and set up the multi-agent system by following:
curl -s https://raw.githubusercontent.com/shenhao-stu/openclaw-agents/main/docs/installation.md

Or just run it yourself:

git clone https://github.com/shenhao-stu/openclaw-agents.git
cd openclaw-agents
chmod +x setup.sh
./setup.sh

For LLM Agents

IMPORTANT: Use curl to fetch this file, NOT WebFetch. WebFetch summarizes content and loses critical details like CLI flags and config examples. Always use:

curl -fsSL https://raw.githubusercontent.com/shenhao-stu/openclaw-agents/main/docs/installation.md

If you're an LLM Agent helping set up OpenClaw Agents, follow the full installation guide. Here's the summary:

Step 0: Prerequisites

# Verify OpenClaw CLI is installed
if command -v openclaw &> /dev/null; then
    echo "OpenClaw $(openclaw --version) is installed"
else
    echo "Installing OpenClaw..."
    npm install -g openclaw@latest
    openclaw onboard --install-daemon
fi

Step 1: Ask User About Deployment Mode

Ask the user these questions:

  1. Which deployment mode do you want?
    • Mode 1 (Channel Mode): Deploy agents to Feishu, Slack, Telegram, etc.
    • Mode 2 (Local Workflow Mode): Use locally via CLI workflows. Agents talk to each other via the agentToAgent tool. (No channel needed).

(If Mode 1: Channel Mode) 2. Which channel? โ†’ --channel feishu|whatsapp|... 3. How to assign groups?

  • All in one group: provide one --group-id <ID>
  • Separate groups per agent: interactively paste 8 different group IDs in the script.
  1. ้œ€่ฆ @mention ๆ‰ๅ›žๅคๅ—๏ผŸ โ†’ --require-mention true|false

(For both modes) 5. Which LLM model? (default: zai/glm-5) โ†’ --model <MODEL>

  • Different models per agent? โ†’ --model-map 'coder=ollama/kimi-k2.5:cloud'

Step 2: Clone and Run Setup

git clone https://github.com/shenhao-stu/openclaw-agents.git
cd openclaw-agents
chmod +x setup.sh
./setup.sh --channel <CHANNEL> --group-id <GROUP_ID>

Examples:

  • Interactive Setup (Highly Recommended):

    ./setup.sh

    (The script will elegantly ask you your mode, your channel, and let you paste your 8 group IDs one by one if desired).

  • Local Workflow Mode:

    ./setup.sh --mode local
  • All agents in one Feishu group:

    ./setup.sh --mode channel --channel feishu --group-id oc_xxx
  • Scripted per-agent groups:

    ./setup.sh --mode channel --channel feishu --group-id oc_default \
      --group-map 'coder=oc_dev,scout=oc_news'
  • Custom models + no @mention:

    ./setup.sh --channel feishu --group-id oc_xxx \
      --model-map 'coder=ollama/kimi-k2.5:cloud' \
      --require-mention false
  • Agents only (no channel): ./setup.sh --skip-bindings

  • Dry-run preview: ./setup.sh --dry-run --channel feishu --group-id oc_xxx

The script will:

  1. โœ… Verify openclaw CLI is installed
  2. ๐Ÿค– Create 8 sub-agents via openclaw agents add (auto-generates AGENTS.md, SOUL.md, USER.md)
  3. ๐ŸŽจ Set emoji identities via openclaw agents set-identity
  4. ๐Ÿ“ Deploy source files + BOOTSTRAP.md for agent self-merge on first run
  5. ๐Ÿ“‹ Append workflow instructions to each agent's AGENTS.md
  6. ๐Ÿ”— Configure openclaw.json with channel bindings
  7. โœ… Verify the entire setup

Step 3: Verify Setup

openclaw agents list --bindings    # Should show all 8 agents with channel bindings
openclaw channels status --probe   # Should show channel connected

Step 4: Start the Gateway

openclaw gateway

Then mention any agent in your chat group to test. Each agent will respond with its distinct emoji identity.

โš ๏ธ Warning: Do not modify the 8 core agent IDs (planner, ideator, critic, surveyor, coder, writer, reviewer, scout). These are protected and referenced throughout the workflow system.


๐Ÿ— Architecture

                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚   ๐Ÿ‘ค User    โ”‚
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚  ๐Ÿพ OpenClaw Main     โ”‚
                    โ”‚  (Audit ยท Manage ยท Arbitrate)
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                โ”‚
                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚  ๐Ÿง  Planner  โ”‚ โ—„โ”€โ”€ Orchestration Hub
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                โ”‚
       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
       โ”‚                        โ”‚                        โ”‚
 โ”Œโ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”           โ”Œโ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”           โ”Œโ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”
 โ”‚ ๐Ÿ’กIdeator โ”‚โ—„โ”€โ”€ โš”๏ธ โ”€โ”€โ–บโ”‚ ๐ŸŽฏ Critic โ”‚           โ”‚ ๐Ÿ“ฐ Scout  โ”‚
 โ”‚  Creative  โ”‚           โ”‚   Taste    โ”‚           โ”‚   Intel    โ”‚
 โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜           โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ”‚                       โ”‚
 โ”Œโ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”           โ”Œโ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”
 โ”‚ ๐Ÿ“šSurveyorโ”‚           โ”‚ ๐Ÿ’ป Coder  โ”‚
 โ”‚  Research  โ”‚           โ”‚ Engineer   โ”‚
 โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜           โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜
       โ”‚                       โ”‚
       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
             โ”Œโ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”
             โ”‚ โœ๏ธ Writer โ”‚
             โ”‚  Author    โ”‚
             โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚
             โ”Œโ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”
             โ”‚ ๐Ÿ”Reviewerโ”‚ โ—„โ”€โ”€ Quality Gate
             โ”‚  Reviewer  โ”‚
             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Adversarial Collaboration

The system is built on productive tension between agents:

Axis Agents Dynamic
Creativity vs. Taste ๐Ÿ’ก Ideator โ†” ๐ŸŽฏ Critic Forge top-tier ideas through rigorous debate
Writing vs. Review โœ๏ธ Writer โ†” ๐Ÿ” Reviewer Polish papers through iterative feedback
  • ๐ŸŽฏ Critic holds ultimate taste veto โ€” no idea passes Phase 2.5 without SHARP โ‰ฅ 18
  • ๐Ÿ” Reviewer holds ultimate quality veto โ€” paper cannot submit without Reviewer's Accept

๐Ÿค– Agents

Core Fleet (๐Ÿ”’ Protected)

# Agent ID Identity Role
0 Main main ๐Ÿพ OpenClaw System orchestrator, audit, final arbiter
1 Planner planner ๐Ÿง  Planner Task decomposition, progress tracking, coordination
2 Ideator ideator ๐Ÿ’ก Ideator Idea generation, novelty assessment, contribution framing
3 Critic critic ๐ŸŽฏ Critic SHARP taste evaluation, anti-pattern detection
4 Surveyor surveyor ๐Ÿ“š Surveyor Literature search, research gap identification
5 Coder coder ๐Ÿ’ป Coder Algorithm implementation, experiment execution
6 Writer writer โœ๏ธ Writer Paper writing, LaTeX formatting
7 Reviewer reviewer ๐Ÿ” Reviewer Internal peer review, rebuttal strategy
8 Scout scout ๐Ÿ“ฐ Scout Daily paper digest, trend monitoring

Per-Agent Workspace

Each agent has three core files inside .agents/<agent_id>/:

File Purpose Customize When...
soul.md ๐Ÿงฌ Identity, personality, decision principles You want to change agent behavior
agent.md โš™๏ธ Model, tools, sandbox, inter-agent protocols You want to change model or tool access
user.md ๐Ÿ‘ค User context, research profile, preferences You want to adapt to a different research domain

๐Ÿ“ก Channel & Group Configuration

Docs: Groups ยท Multi-Agent Routing

Supported Channels

Channel Group ID Format Example Docs
Feishu (้ฃžไนฆ) oc_xxxxxxxxx oc_b1c331592eaa36d06a7e5df05d08a890 Feishu docs
WhatsApp xxxxx@g.us 120363999999999999@g.us WhatsApp docs
Telegram Negative integer -1001234567890 Telegram docs
Discord Guild ID 1234567890 Discord docs
Slack Team + Channel T0123/C0123 Slack docs

Group Policy

OpenClaw uses a three-tier access control model for groups:

Policy Behavior Use Case
"open" All groups allowed (default) Personal servers, trusted teams
"allowlist" Only listed groups allowed Multi-tenant / production
"disabled" All group messages dropped DM-only bots
{
  "channels": {
    "feishu": {
      "groupPolicy": "open",                    // โ† all groups allowed
      "groups": {
        "oc_YOUR_GROUP_ID": {
          "requireMention": true               // โ† must @mention to trigger
        }
      }
    }
  }
}

Mention Gating

You can choose whether agents require @mention to respond in groups:

Setting Behavior
requireMention: true (default) Agents only respond when @mentioned. Messages without @ are stored for context but don't trigger a reply.
requireMention: false Agents auto-respond to all group messages. No @mention needed.
# Default: require @mention
./setup.sh --channel feishu --group-id oc_xxx

# Auto-respond without @mention
./setup.sh --require-mention false --channel feishu --group-id oc_xxx

Each agent has unique mentionPatterns:

{
  "agents": {
    "list": [
      {
        "id": "planner",
        "name": "๐Ÿ’ก Planner",
        "groupChat": {
          "mentionPatterns": ["@planner", "planner", "@Planner"],
          "historyLimit": 50
        }
      }
    ]
  }
}

How it works: Type @planner ่ฏทๅˆ†่งฃ่ฟ™ไธชไปปๅŠก in the group, and only the ๐Ÿ’ก Planner agent will respond.

Messages that don't match any mention pattern are stored for context but don't trigger a reply โ€” this allows agents to follow the conversation passively.

Session Keys

Each agent gets an isolated session per group:

agent:<agentId>:<channel>:group:<groupId>
Session Key Example
Planner in Feishu group agent:planner:feishu:group:oc_xxx
Coder in Telegram group agent:coder:telegram:group:-1001234567890
Main in DM agent:main:main

Telegram forum topics add :topic:<threadId> for per-topic isolation.

Workspace & Tool Restrictions

Each sub-agent has its own independent workspace (no Docker sandbox). The setup script deploys source files that the agent merges on first run:

Deployed File Purpose
BOOTSTRAP.md First-run instructions โ€” agent reads this, merges source files, then deletes it
_soul_source.md Agent-specific identity and capabilities
_soul_raw.md Generic behavior guidelines (from SOUL_raw.md)
_user_source.md Agent-specific user context
_user_raw.md User template (from USER.md)
_agent_source.md Agent config with model settings
AGENTS.md Auto-generated by OpenClaw + workflow instructions appended

You can restrict tools per group or per sender:

{
  "channels": {
    "telegram": {
      "groups": {
        "-1001234567890": {
          "tools": {
            "deny": ["exec", "write"]                   // block risky tools
          },
          "toolsBySender": {
            "id:123456789": { "alsoAllow": ["exec"] }   // override for trusted user
          }
        }
      }
    }
  }
}

Display Labels

Agents show as <emoji> <name> in chat (configured via identity.name):

What You Type Who Replies
@planner ๅˆ†่งฃไธ€ไธ‹ไปปๅŠก ๐Ÿง  Planner
@critic ่ฏ„ไผฐ่ฟ™ไธช idea ๐ŸŽฏ Critic
@coder ่ท‘ไธ€ไธ‹ๅฎž้ชŒ ๐Ÿ’ป Coder
@writer ๅ†™ related work โœ๏ธ Writer

Pre-built Examples

Channel Config Key Features
Feishu openclaw.feishu.json All 9 agents, open policy, mention gating
WhatsApp openclaw.whatsapp.json DM pairing, open policy
Telegram openclaw.telegram.json Tool restrictions per group

๐Ÿ“‹ Workflows

Workflow Slash Command Description
๐Ÿ“‹ Paper Pipeline /paper-pipeline Full 9-phase paper production with taste gates
๐Ÿ“ฐ Daily Digest /daily-digest Scout-led daily paper summarization
๐Ÿ’ก Brainstorm /brainstorm Rapid idea generation and evaluation
๐Ÿ”„ Rebuttal /rebuttal Reviewer response preparation

Taste Gates (ๅ“้‰ด่Š‚็‚น)

The Critic agent enforces quality at four critical checkpoints:

Gate Checkpoint Pass Criteria
๐ŸŽฏ Idea Confirmation SHARP score + Soul Questions SHARP โ‰ฅ 18
๐ŸŽฏ Method Design Elegance + Parsimony Parsimony โ‰ฅ 4
๐ŸŽฏ First Draft Narrative quality + Memorability โ‰ฅ 1 clear hook
๐ŸŽฏ Pre-submission Full quality judgment Critic says "worth submitting"

๐Ÿงฉ Customization

Model Configuration

The default model is zai/glm-5. You have three options:

Option A: Same model for all agents (default)

# Uses zai/glm-5 for all 8 sub-agents
./setup.sh --channel feishu --group-id oc_xxx

Option B: Change the unified model

# All agents use the same custom model
./setup.sh --model ollama/kimi-k2.5:cloud --channel feishu --group-id oc_xxx

Option C: Different models per agent

# Default is zai/glm-5, but coder and writer get different models
./setup.sh \
  --model zai/glm-5 \
  --model-map 'coder=ollama/kimi-k2.5:cloud,writer=zai/glm-4.7,scout=zai/glm-4.7-flash' \
  --channel feishu --group-id oc_xxx

--model-map takes priority over --model for specified agents. Agents not in the map use the --model default.

Adding Custom Agents

  1. Add the agent definition to agents.yaml:
agents:
  # ... existing agents ...
  - id: "math-prover"
    name: "๐Ÿ”ข Math Prover"
    emoji: "๐Ÿ”ข"
    role: "Theorem proving, convergence analysis"
    model: "zai/glm-5"
    protected: false
    workspace: ".agents/math-prover"
  1. Re-run ./setup.sh or add manually:
openclaw agents add math-prover --model zai/glm-5 --workspace .agents/math-prover
openclaw agents set-identity --agent math-prover --name "๐Ÿ”ข Math Prover"

๐Ÿ“ Repository Structure

openclaw-agents/
โ”œโ”€โ”€ setup.sh                          # ๐Ÿš€ One-command setup script
โ”œโ”€โ”€ agents.yaml                       # ๐Ÿ“‹ Agent manifest (source of truth)
โ”œโ”€โ”€ soul.md                           # ๐Ÿพ Main Agent definition
โ”œโ”€โ”€ README.md                         # ๐Ÿ“– This file
โ”œโ”€โ”€ LICENSE                           # MIT License
โ”œโ”€โ”€ CONTRIBUTING.md                   # Contribution guidelines
โ”œโ”€โ”€ CHANGELOG.md                      # Version history
โ”œโ”€โ”€ docs/
โ”‚   โ””โ”€โ”€ installation.md               # ๐Ÿ“– Full installation guide
โ”œโ”€โ”€ examples/
โ”‚   โ”œโ”€โ”€ openclaw.feishu.json          # Feishu config example
โ”‚   โ”œโ”€โ”€ openclaw.whatsapp.json        # WhatsApp config example
โ”‚   โ””โ”€โ”€ openclaw.telegram.json        # Telegram config example
โ””โ”€โ”€ .agents/
    โ”œโ”€โ”€ planner/                      # ๐Ÿง  soul.md + agent.md + user.md
    โ”œโ”€โ”€ ideator/                      # ๐Ÿ’ก soul.md + agent.md + user.md
    โ”œโ”€โ”€ critic/                       # ๐ŸŽฏ soul.md + agent.md + user.md
    โ”œโ”€โ”€ surveyor/                     # ๐Ÿ“š soul.md + agent.md + user.md
    โ”œโ”€โ”€ coder/                        # ๐Ÿ’ป soul.md + agent.md + user.md
    โ”œโ”€โ”€ writer/                       # โœ๏ธ soul.md + agent.md + user.md
    โ”œโ”€โ”€ reviewer/                     # ๐Ÿ” soul.md + agent.md + user.md
    โ”œโ”€โ”€ scout/                        # ๐Ÿ“ฐ soul.md + agent.md + user.md
    โ””โ”€โ”€ workflows/
        โ”œโ”€โ”€ paper-pipeline.md         # ๐Ÿ“‹ End-to-end paper workflow
        โ”œโ”€โ”€ daily-digest.md           # ๐Ÿ“ฐ Daily paper digest
        โ”œโ”€โ”€ brainstorm.md             # ๐Ÿ’ก Idea brainstorming
        โ””โ”€โ”€ rebuttal.md               # ๐Ÿ”„ Rebuttal preparation

๐Ÿ”ง CLI Reference

Setup Script Flags

Flag Description Default
--mode Deployment config mode (channel or local) Interactive
--channel Channel type (feishu/whatsapp/telegram/discord/slack) Interactive prompt
--group-id Default group ID for all agents Interactive prompt
--group-map Per-agent group overrides (id=group_id,...) None
--model Default LLM model for all agents zai/glm-5
--model-map Per-agent model overrides (id=model,...) None
--require-mention Require @mention to respond (true/false) true
--skip-bindings Skip channel binding setup false
--dry-run Preview commands without executing false
-h, --help Show help โ€”

๐Ÿ›ก๏ธ Safe Merge: The setup script appends sub-agents to your existing openclaw.json. Main agent is implicit (uses agents.defaults). No sandbox โ€” each agent has its own workspace. A backup is created automatically.

OpenClaw Commands

openclaw agents list --bindings       # List all agents and bindings
openclaw agents add <id>              # Add a new agent
openclaw agents set-identity          # Set agent display name
openclaw channels status --probe      # Check channel connectivity
openclaw gateway                      # Start the gateway
openclaw gateway restart              # Restart after config changes

๐Ÿค Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

  • ๐Ÿ› Bug Reports โ€” Open a GitHub Issue
  • ๐Ÿ’ก New Agents โ€” Submit a PR with agent files + agents.yaml update
  • ๐Ÿ“‹ Workflows โ€” Share your research process templates
  • ๐Ÿ“– Docs โ€” Improve guides and examples

Star History

Star History Chart


๐Ÿ“„ License

MIT โ€” Use freely, modify openly, share generously.


Built with โค๏ธ for the AI research community
Powered by OpenClaw ๐Ÿฆž

About

๐Ÿพ One-command multi-agent setup for OpenClaw โ€” 9 specialized AI agents, group routing, safe config merge.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages