From sundial-org-awesome-openclaw-skills-4
Orchestrates multiple AI models (GLM, MiniMax, OpenAI, Anthropic) as workers via Pi Coding Agent. Supports parallel tasks, map-reduce, and tmux-based coordination.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sundial-org-awesome-openclaw-skills-4:pi-orchestrationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use Claude as an orchestrator to spawn and coordinate multiple AI model workers (GLM, MiniMax, etc.) via Pi Coding Agent.
Use Claude as an orchestrator to spawn and coordinate multiple AI model workers (GLM, MiniMax, etc.) via Pi Coding Agent.
| Provider | Model | Status |
|---|---|---|
| GLM | glm-4.7 | ✅ Working |
| MiniMax | MiniMax-M2.1 | ✅ Working |
| OpenAI | gpt-4o, etc. | ✅ Working |
| Anthropic | claude-* | ✅ Working |
Get API key from open.bigmodel.cn
export GLM_API_KEY="your-glm-api-key"
Get API key from api.minimax.chat
export MINIMAX_API_KEY="your-minimax-api-key"
export MINIMAX_GROUP_ID="your-group-id" # Required for MiniMax
# GLM-4.7
pi --provider glm --model glm-4.7 -p "Your task"
# MiniMax M2.1
pi --provider minimax --model MiniMax-M2.1 -p "Your task"
# Test connectivity
pi --provider glm --model glm-4.7 -p "Say hello"
Claude (Opus) can spawn these as background workers:
bash workdir:/tmp/task background:true command:"pi --provider glm --model glm-4.7 -p 'Build feature X'"
# Create worker sessions
tmux new-session -d -s worker-1
tmux new-session -d -s worker-2
# Dispatch tasks
tmux send-keys -t worker-1 "pi --provider glm --model glm-4.7 -p 'Task 1'" Enter
tmux send-keys -t worker-2 "pi --provider minimax --model MiniMax-M2.1 -p 'Task 2'" Enter
# Check progress
tmux capture-pane -t worker-1 -p
tmux capture-pane -t worker-2 -p
# Map: Distribute subtasks to workers
for i in 1 2 3; do
tmux send-keys -t worker-$i "pi --provider glm --model glm-4.7 -p 'Process chunk $i'" Enter
done
# Reduce: Collect and combine results
for i in 1 2 3; do
tmux capture-pane -t worker-$i -p >> /tmp/results.txt
done
# Quick orchestration helper
uv run {baseDir}/scripts/orchestrate.py spawn --provider glm --model glm-4.7 --task "Build a REST API"
uv run {baseDir}/scripts/orchestrate.py status
uv run {baseDir}/scripts/orchestrate.py collect
# Claude orchestrates 3 workers to review different files
tmux send-keys -t worker-1 "pi --provider glm -p 'Review auth.py for security issues'" Enter
tmux send-keys -t worker-2 "pi --provider minimax -p 'Review api.py for performance'" Enter
tmux send-keys -t worker-3 "pi --provider glm -p 'Review db.py for SQL injection'" Enter
# Wait and collect
sleep 30
for i in 1 2 3; do
echo "=== Worker $i ===" >> review.md
tmux capture-pane -t worker-$i -p >> review.md
done
npm install -g @anthropic/pi-coding-agentnpx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin sundial-org-awesome-openclaw-skills-4Delegates and coordinates work across multiple AI agents and runtimes. Useful for launching sub-agents, choosing runtimes or models, inspecting and resuming background work.
Spawns cheap headless Claude Code workers on cheaper models (GLM/Sonnet/Haiku) with full tool harness and isolated config, fanned out by an Opus orchestrator. Workers produce branches for review.
Spawns N CLI worker processes in tmux panes to execute tasks in parallel across multiple agent types (Claude, Codex, Gemini, Antigravity, Grok, Cursor).