Openclaw Worker banner
longtho638-jpg longtho638-jpg

Openclaw Worker

AI community

Description

🦞 Autonomous AI Swarm Engine β€” Drop a file, watch 3 AI agents execute in parallel. Built on Claude Code CLI + tmux.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

🦞 OpenClaw Worker β€” Autonomous AI Swarm Engine

**Drop a file. Watch AI agents execute.** No manual intervention needed.

OpenClaw Worker turns Claude Code CLI into an autonomous swarm β€” 3 AI workers running in parallel, processing tasks from a simple file-drop queue. Built for developers who want AI agents that **just work**.

⚑ 30-Second Quick Start

# Prerequisites: Node.js 18+, tmux, Claude CLI
brew install tmux                              # macOS
# sudo apt install tmux                        # Linux

npm install -g @anthropic-ai/claude-code       # Claude CLI

# Clone & Start
git clone https://github.com/longtho638-jpg/openclaw-worker.git
cd openclaw-worker && npm install

# Launch the swarm (4 tmux panes inside your terminal)
bash restore_swarm.sh

You'll see 4 panes:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ P0: Mission Log  β”‚ P1: AI Worker 1  β”‚
β”‚ (real-time feed) β”‚ (Claude CLI TUI) β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ P2: AI Worker 2  β”‚ P3: AI Worker 3  β”‚
β”‚ (Claude CLI TUI) β”‚ (Claude CLI TUI) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ How It Works

**Drop a mission file β†’ AI workers auto-execute β†’ Results logged.**

# Create a task (that's it!)
echo "Refactor the auth module to use JWT tokens" > tasks/mission_myapp_auto_auth_refactor.txt

The task-watcher daemon:

  1. Detects new files in tasks/ directory
  2. Dispatches to the next available worker (round-robin)
  3. Monitors execution (busy/idle/timeout detection)
  4. Archives completed missions to tasks/processed/

πŸ“ Architecture

openclaw-worker/
β”œβ”€β”€ task-watcher.js              # 🧠 Main orchestrator
β”œβ”€β”€ config.js                    # βš™οΈ Configuration
β”œβ”€β”€ restore_swarm.sh             # 🦞 One-command launcher
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ brain-tmux.js            # Tmux interactive mode (default)
β”‚   β”œβ”€β”€ brain-headless-per-mission.js  # Headless claude -p mode
β”‚   β”œβ”€β”€ brain-vscode-terminal.js # VS Code terminal mode
β”‚   β”œβ”€β”€ task-queue.js