gang-worker

インストール
CLI
npx skills add https://github.com/notdp/hive --skill gang-worker

CLI を使用してこのスキルをインストールし、ワークスペースで SKILL.md ワークフローの使用を開始します。

最終更新日: 4/29/2026

Hive

tmux-based collaboration runtime for CLI agents — claude, codex, droid talk to each other via inline <HIVE> messages, tracked deliveries, and handoff threads.

English · 简体中文 · 日本語

This README is maintained in English. Translations may lag behind the canonical version.

What is Hive

Hive is a runtime for agents, not a CLI you drive by hand. Day-to-day work — sending messages, replying on threads, handing off tasks, tracking delivery — happens inside the agent session, and your agent runs the commands. The main day-to-day entry point for humans is /hive, which loads the Hive skill into your agent so it can bootstrap the team.

A small set of commands is still yours: installing plugins, checking skill drift, the popup editor (hive cvim / hive vim), and local dev setup.

Install

# Hive CLI
pipx install git+https://github.com/notdp/hive.git

# Hive skill, for Claude Code / Codex / Droid
npx skills add https://github.com/notdp/hive -g --all

Requires:

  • tmux (3.2+ is needed for the hive cvim / hive vim popup helpers)
  • Python 3.11+
  • At least one agent CLI: claude, codex, or droid

Start in your agent session

# Inside tmux, start your agent of choice
$ claude       # or: codex, droid

# In the agent session, type:
/hive

The skill loads, the agent runs hive init to bind the current tmux window as a team, and auto-pairs with an idle peer of a different model family — attaching an existing one if found, otherwise spawning a new pane. From here on you talk to the agent; the agent talks to its peer.

Operator commands

Commands commonly run by humans:

# Plugins
hive plugin enable notify         # sidecar idle watcher toggle (manual `hive notify` stays available either way)
hive plugin enable code-review    # multi-agent code review workflow
hive plugin list

# Diagnostics
hive doctor --skills              # check for hive skill drift after upgrades

# Popup editor (tmux 3.2+)
hive cvim                         # tmux popup editor
hive vim                          # single-pane variant

# Fork the current agent session into a split pane
hive fork                         # auto-detect split direction
hive vfork                        # vertical split
hive hfork                        # horizontal split

Inside Claude Code / Codex, invoke these via shell escape: !hive cvim, !hive vfork, !hive fork, etc.

Binding hive fork to a keyboard shortcut pairs well with tmux. Example (Ghostty + tmux on macOS) — Cmd+Shift+F forks the current pane; change the key to match your terminal:

# ~/.config/ghostty/config
keybind = cmd+shift+f=text:\x1bf

# ~/.tmux.conf
bind -n M-f run-shell -b 'hive fork --pane "#{pane_id}"'

Everything else — hive send, hive reply, hive team, hive doctor <agent>, hive handoff, etc. — is designed for the agent to invoke. Running them yourself works, but that is the debugging / advanced path, not the happy path.

Upgrade

pipx upgrade hive           # upgrade the CLI
npx skills update hive -g   # upgrade the skill (GitHub-sourced installs only)

The CLI and the skill upgrade separately. Upgrading the CLI does not refresh the skill. When the skill is stale, hive commands run from an agent pane warn on stderr, and hive doctor --skills shows the mismatch.

For local checkouts, skills update cannot refresh the install — see the contributor section below.

For contributors

Install from your current checkout instead of GitHub:

python3 -m pip install -e .
npx skills add "$PWD" -g --all     # local checkouts are not tracked by `skills update`; rerun this to refresh
PYTHONPATH=src python -m pytest tests/ -q

The full post-edit refresh workflow (install + skill refresh + plugin re-enable) and repository conventions live in AGENTS.md.

Docs

License

GPL-3.0-or-later © 2026 notdp