Multi-agent orchestration for Claude Code.
┌──────────┬──────────┐
│ 🐝 Bee 1 │ 🐝 Bee 2 │
├──────────┼──────────┤
│ 🐝 Bee 3 │ 🐝 Queen │
└──────────┴──────────┘
3 Bees execute plans. 1 Queen works on plans and coordinates. You (the Beekeeper) direct traffic.
Who is this for? Developers who want to run multiple Claude Code agents in parallel on a single codebase, with file-based coordination and interactive oversight.
Inspired by Gas Town.
| Dependency | macOS | Linux (Debian/Ubuntu) |
|---|---|---|
| tmux | brew install tmux |
sudo apt install tmux |
| Claude Code | Install guide | Install guide |
| Clipboard | pbcopy (built-in) |
sudo apt install xclip or xsel |
Works best with Claude Opus 4.6.
# 1. Install prerequisites (see Requirements above)
# 2. Clone and install beehive
git clone https://github.com/mahowlin/beehive.git ~/beehive
sudo ln -sf ~/beehive/beehive /usr/local/bin/beehive
# 3. Initialize your project
cd ~/myproject
beehive --init
# 4. (Optional) Configure a backend
cat > .beehive.conf << 'EOF'
# API proxy (e.g. local proxy to Anthropic API)
CONF_ANTHROPIC_BASE_URL=http://localhost:8090
CONF_ANTHROPIC_API_KEY=sk-ant-your-key
# OR: AWS Bedrock
# CONF_AWS_PROFILE=my-profile
# CONF_AWS_REGION=us-west-2
# CONF_MODEL=us.anthropic.claude-sonnet-4-20250514-v1:0
EOF
# 5. Launch
beehiveUpgrading an existing project:
# After updating beehive (git pull), upgrade your project files
beehive --upgradeThis overwrites skills, commands, and the plan template with the latest versions. Your plans, status files, TRACKER, and CLAUDE.md are preserved.
Install note: Symlink goes to /usr/local/bin (works on macOS and Linux). Use sudo if needed. On Apple Silicon, /opt/homebrew/bin also works.
myproject/
├── CLAUDE.md # Project instructions for agents
├── .skills/
│ ├── bee.md # Bee behavior rules
│ └── queen.md # Queen behavior rules
├── .hive/ # Agent status files (gitignored)
│ ├── bee-1.md
│ ├── bee-2.md
│ ├── bee-3.md
│ └── queen.md
├── .claude/commands/ # Slash commands
│ ├── buzz.md
│ ├── report.md
│ ├── bedtime.md
│ ├── session-report.md
│ └── deep-plan.md
└── plans/
├── INBOX.md # Plan requests from agents
├── TEMPLATE.md # Template for new plans
├── completed/ # Archived plans
└── _meta/
├── TRACKER.md # Plan status (Queen owns)
├── SESSION_LOG.md # Session notes (trimmed regularly)
└── DEPENDENCIES.md # Dependency graph (Mermaid)
Workspace mode (multiple git repos in one directory) also creates WORKSPACE.md and a workspace tracker at plans/_meta/TRACKER.md.
┌─────────────┐
│ Beekeeper │◄─────────────────────────────┐
│ (you) │ │
└──────┬──────┘ │
│ directs │
┌────────────────────────┼────────────────────────┐ │
│ │ │ │
▼ ▼ ▼ │
┌───────────┐ ┌───────────┐ ┌───────────┐ │
│ Bee 1 │ │ Bee 2 │ │ Bee 3 │ │
└─────┬─────┘ └─────┬─────┘ └─────┬─────┘ │
│ │ │ │
│ writes │ writes │ writes │
▼ ▼ ▼ │
┌───────────┐ ┌───────────┐ ┌───────────┐ │
│ .hive/ │ │ .hive/ │ │ .hive/ │ │
│ bee-1.md │ │ bee-2.md │ │ bee-3.md │ │
└─────┬─────┘ └─────┬─────┘ └─────┬─────┘ │
│ │ │ │
└────────────────────────┼────────────────────────┘ │
│ │
│ Queen reads (.hive/bee-*.md) │
▼ │
┌─────────────┐ │
│ Queen │──────────────────────────────┘
└──────┬──────┘
│
┌─────────────────────┼─────────────────────┐
│ writes │ reads │ writes
▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ TRACKER.md │ │ INBOX.md │ │ plans/ │
│ (status) │ │(discoveries)│ │(task files) │
└─────────────┘ └──────┬──────┘ └──────┬──────┘
▲ │
│ │
Bees /report ──┘ │ Bees read
│
┌──────────────────────────────────────────────┘
│
▼
┌───────────┐ ┌───────────┐ ┌───────────┐
│ Bee 1 │ │ Bee 2 │ │ Bee 3 │
└───────────┘ └───────────┘ └───────────┘
Roles:
- Queen — Works on plans, coordinates hive, tracks progress in
plans/_meta/TRACKER.md, verifies completion - Bees — Execute plans, update status in
.hive/bee-N.md, report discoveries - Beekeeper (you) — Direct agents, copy messages between panes, approve major steps
Workflow:
- Tell Queen what to build
- Queen creates plans in
plans/, updatesplans/_meta/TRACKER.md - Direct each Bee to claim a plan (Queen can also claim plans)
- Agents execute, update status, run
/buzzwhen done - Queen verifies and archives completed plans
Creating plans: Queen uses plans/TEMPLATE.md and /deep-plan for complex work. See templates/example-plan.md for a complete example with Objective, Why This Approach, Technical Context, Implementation Strategy, Tasks, and Done Criteria.
Slash commands keep agents on track:
| Command | Who | Purpose |
|---|---|---|
/buzz |
Any | Check in: plan hygiene, self-check, completion. Queen also coordinates hive. |
/report |
Any | Submit out-of-scope discoveries to INBOX |
/bedtime |
Any | Save status and plan state before break or session end |
/session-report |
Queen | Write end-of-session report to SESSION_LOG.md |
/deep-plan |
Queen | Structured exploration before plan creation |
Claude Code works without configuration. Create .beehive.conf in your project root to customize:
API Proxy (local proxy to Anthropic API):
CONF_ANTHROPIC_BASE_URL=http://localhost:8090
CONF_ANTHROPIC_API_KEY=sk-ant-your-keyAWS Bedrock:
CONF_AWS_PROFILE=my-profile
CONF_AWS_REGION=us-west-2
CONF_MODEL=us.anthropic.claude-sonnet-4-20250514-v1:0General options:
CONF_SESSION=my-session # Custom tmux session name
CONF_CLAUDE_CMD=/path/to/claude # Custom claude pathTmux controls:
| Key | Action |
|---|---|
| Click | Switch panes |
| Scroll | Scroll in pane |
| Ctrl+b, z | Zoom pane |
| Ctrl+b, d | Detach (keeps running) |
Usage: beehive [options] [path]
Commands:
beehive [path] Launch agents (default: current directory)
beehive --init [path] Initialize repo/workspace structure
beehive --upgrade [path] Upgrade skills, commands, and template (preserves data)
Options:
--session NAME Session name (default: folder name)
--model MODEL Anthropic model override
--profile PROF AWS profile for Bedrock
--region REGION AWS region for Bedrock
--base-url URL Anthropic API base URL (for API proxies)
--api-key KEY Anthropic API key
--yes Skip confirmation
--version Show version
--help Show this help
Stuck in tmux?
- Press
Ctrl+b, thendto detach (beehive keeps running in background) - Run
tmux attachto get back in - Run
tmux kill-serverto kill everything and start fresh
"Claude CLI not found"
- Ensure
claudeis installed and in your PATH - Or set
CONF_CLAUDE_CMD=/path/to/claudein.beehive.conf
"tmux required"
- macOS:
brew install tmux - Linux:
sudo apt install tmux
Clipboard not working
- macOS: Should work out of the box (
pbcopy) - Linux: Install
xcliporxsel, then restart beehive
Permission denied on symlink
- Use
sudo ln -sf ~/beehive/beehive /usr/local/bin/beehive - Or symlink to
~/.local/bin(add to PATH if needed)
"Cannot reach API proxy"
- Ensure your API proxy is running and accessible at the configured URL
- Check the URL in
.beehive.confor--base-urlflag - Beehive checks
{base_url}/healthwith a 5-second timeout
MIT