ai-collab
Multi-agent autonomous collaboration system for two OpenClaw agents working in parallel. Use when setting up agent-to-agent communication, running a daemon agent alongside a primary agent, coordinating tasks between Claude and GPT instances, or establishing a shared chat log and inbox protocol. Triggers on: 'set up agent collaboration', 'run two agents', 'agent daemon', 'multi-agent', 'Jim and Clawdy', 'secondary agent', 'agent handoff'.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jeremysommerfeld8910-cpu/ai-collabai-collab — Autonomous Multi-Agent Collaboration
Two OpenClaw agents working in parallel on shared tasks, coordinated via a structured chat log and daemon inbox protocol.
Architecture Overview
┌─────────────────────────────────────────────────────────┐
│ User (Jeremy) │
│ Telegram / Direct Message │
└──────────────────────┬──────────────────────────────────┘
│
┌─────────────┴──────────────┐
▼ ▼
┌─────────────────┐ ┌──────────────────┐
│ AGENT A │ │ AGENT B │
│ (Jim / main) │◄───────►│ (Clawdy / daemon)│
│ claude code │ │ claude --print │
│ port: main │ │ inbox: filesystem │
└────────┬────────┘ └────────┬─────────┘
│ │
└──────────┬────────────────┘
▼
┌──────────────────┐
│ chat.log │ ← THE shared record
│ collab/inbox/ │ ← A→B messages
└──────────────────┘
Agent A (Primary): Interactive Claude Code session. Handles browser, complex tasks, user-facing responses.
Agent B (Daemon): claude --print subprocess. Handles background tasks, monitoring, quick lookups. Triggered by messages dropped in inbox.
Configuration
All settings via environment variables — no hardcoded values:
# ~/.openclaw/workspace/collab/.ai-collab.env
export AGENT_A_NAME=Jim
export AGENT_B_NAME=Clawdy
export AGENT_B_MODEL=claude-haiku-4-5-20251001 # Any claude --print compatible model
export AGENT_B_SESSION=clawdy-session # tmux session name
export COLLAB_INBOX=$HOME/.openclaw/workspace/collab/inbox
export COLLAB_LOG=$HOME/.openclaw/workspace/collab/chat.log
Supported models for AGENT_B_MODEL:
claude-haiku-4-5-20251001— fastest, cheapest (recommended for daemon)claude-sonnet-4-6— more capable, higher cost- Any OpenAI model if using the GPT daemon variant (see
examples/claude-gpt.md)
Quick Setup
# 1. Source config
source ~/.openclaw/workspace/collab/.ai-collab.env
# 2. Create the collab workspace
mkdir -p "$COLLAB_INBOX"
# 3. Start Agent B daemon (in a tmux session)
tmux new-session -d -s "$AGENT_B_SESSION" \
"source ~/.openclaw/workspace/collab/.ai-collab.env && \
bash ~/.openclaw/workspace/skills/ai-collab/scripts/daemon.sh"
# 4. Start message polling (Agent B → Agent A routing, runs every 60s via cron)
bash ~/.openclaw/workspace/skills/ai-collab/scripts/poll_chatlog.sh &
# 5. Test the link
bash ~/.openclaw/workspace/skills/ai-collab/scripts/send.sh "Hello from Agent A"
Communication Protocol
Every message between agents follows this format. No open loops.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jeremysommerfeld8910-cpu-ai-collab": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
xdotool-control
Mouse and keyboard automation using xdotool. Use when clicking Chrome extension icons, typing into GUI apps, switching browser tabs, automating desktop UI, or running screenshot-verify-click loops without a browser relay. Triggers on: 'click extension icon', 'click coordinates', 'type in window', 'switch tab', 'automate mouse', 'screenshot and click', 'xdotool', 'desktop automation', 'GUI automation without relay'.
skill-factory
Create, evaluate, improve, benchmark, and publish OpenClaw skills. Use when building a new skill from scratch, iterating on an existing skill, running evals to measure quality, comparing skill versions, or analyzing patterns across installed skills to synthesize new ones. Triggers on: 'create a skill', 'build a skill', 'make a skill', 'eval this skill', 'improve this skill', 'benchmark skill versions', 'analyze skill patterns', 'synthesize skill from patterns', 'package skill', 'publish skill'.