← スキル一覧に戻る

hive-dispatch
by stars-end
Global DX Skills
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: hive-dispatch description: | Dispatch Beads tasks to Claude Code on remote VMs via SSH. Use when: "dispatch to hive", "run on VM", "assign to runner", "send to host". tags: [workflow, hive, automation, ssh, vm] allowed-tools:
- Bash(ssh:*)
- Bash(python:*)
- Bash(bd:*)
- Read
Hive Dispatch Skill
Purpose: Dispatch Beads tasks to Claude Code running on remote VMs via SSH.
Activation
Triggers:
- "dispatch this to hive"
- "run bd-123 on the VM"
- "send to runner"
- "assign to host"
Quick Start
# Dispatch a specific task
python ~/.agent/skills/hive-dispatch/dispatch.py bd-xyz
# Dispatch all hive-ready tasks
python ~/.agent/skills/hive-dispatch/dispatch.py --all
# Dry-run (preview commands)
python ~/.agent/skills/hive-dispatch/dispatch.py bd-xyz --dry-run
How It Works
- Check Queue: Reads Beads for in-progress tasks with
hive-readylabel - Find VM: Checks each VM via SSH
pgrep claudefor availability - Dispatch: Updates status to
in_progress, SSHs prompt to VM
Protection Layers
| Layer | Mechanism | Purpose |
|---|---|---|
| 1 | Beads count_running() >= MAX | Queue limit |
| 2 | SSH pgrep -c claude | VM busy check |
| 3 | systemd TasksMax=1 | Kernel-enforced |
Configuration
Environment variables:
HIVE_VMS: Comma-separated VM hostnames (default:runner1)HIVE_MAX_CONCURRENT: Max simultaneous tasks (default:2)HIVE_REPO_PATH: Repo path on VM (default:~/affordabot)
Preparing Tasks
# Add hive-ready label
bd update bd-xyz --labels hive-ready
# Dispatch
python ~/.agent/skills/hive-dispatch/dispatch.py bd-xyz
VM Host Requirements
On each VM, install the systemd protection slice:
mkdir -p ~/.config/systemd/user
cat <<EOF > ~/.config/systemd/user/claude.slice
[Slice]
TasksMax=1
CPUQuota=80%
MemoryMax=8G
EOF
systemctl --user daemon-reload
Version History
- v2.0.0 (2025-12-31): Complete rewrite
- Replaced daemon with on-demand dispatch
- Added 3-layer protection
- Uses Beads as queue
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です