One terminal. Many agents.
A lightweight, Rust-powered terminal multiplexer for AI coding agents.
Website · Docs · Changelog · Download
Run Claude Code, Codex, Gemini CLI, OpenCode or any shell side by side, see at a glance which one is working, which one needs you and which one is done, and close the window without stopping any of them. Binaries for Linux, macOS and Windows.
- Terminal first.
hiveopens a terminal. Typeclaude,codex, ... to start an agent in it, orcdanywhere first. The tab row's+(orCtrl+Space t) adds a tab; the sidebar's+ new(orCtrl+Space S) starts a new space - Spaces follow you. Every repository or folder you work in becomes a space in the sidebar;
cdsomewhere else and the tab moves there. Each space keeps its own tabs - Live agent status. Working
◐, needs input◆, done●, read from the agent's screen (herdr-compatible rules) or reported by the agent itself. The AGENTS list shows every agent in every space, so you see which one needs you wherever you are - Splits and tabs.
Ctrl+Space v/-split,topens a tab,Alt+←/→switches tabs,Alt+↑/↓switches spaces - Worktrees on demand.
Ctrl+Space Copens a terminal in its own git worktree and branch, so two agents never edit the same files. Hive warns when two agents share a directory - Nothing dies with the window. Agents live in a background daemon (
hived). Detach, close the laptop lid or the terminal, crash the UI: reattach and get the exact screen back - Several windows, one session. Others watch; only one types, and taking over is explicit (
Ctrl+Space a) - Command palette.
Ctrl+Space :lists every action, session and space, fuzzy-searchable. Every key is configurable - Right-click menus. Right-click a space (open, new terminal, rename, close), a tab (rename, split, close) or an agent (open, rename, split, terminate)
- Works anywhere. Truecolor, 256 or 16 colours,
NO_COLOR, plain ASCII without Nerd Fonts; mouse support throughout - Safe with your work. Worktrees with uncommitted changes are never removed without
--forceand confirmation; branches are never deleted
![]() | ![]() |
Codex in its own worktree (wt), waiting for approval | The command palette (Ctrl+Space :) |
Optional and off by default: hidden from the palette until enabled. Turn them on and off from Integrations in the menu (Ctrl+Space I, or type "integrations" in the palette): it takes effect at once and is saved to config.toml. Each opens as an ordinary session beside your agents.
| Integration | Key | What it does |
|---|---|---|
| Notes | Ctrl+Space N |
Hive's own notes app on the repository's markdown or Obsidian vault, beside your agents: tree, rendered notes, wikilinks, backlinks, search, o to open in Obsidian. Agents read and add to it with hive context. With journal = true, appends "claude finished in #3 api (main)" to today's daily note |
| Review | Ctrl+Space G |
lazygit, tig or git diff in a split, in the agent's directory or worktree |
| GitHub | Ctrl+Space H |
gh pr checks --watch for the session's branch |
| Tasks | Ctrl+Space T |
Pick a just/npm/make/cargo task and run it beside the agent |
| Desktop notifications | A notification when an agent you aren't viewing finishes or needs input | |
| Git status | Changed files and commits ahead/behind under each repository space (main ~3 ↑2) |
|
| Usage | Ctrl+Space U |
Token usage and cost of your agents in a pane (ccusage blocks --live by default; agents keep the logs, Hive just opens the tool) |
[integrations.obsidian]
enabled = true
journal = trueAll options are in the user guide and examples/config.toml.
Name a set of panes once and open them together with Ctrl+Space L: in a space a layout names, it opens straight away; otherwise you pick one.
[layouts.web]
spaces = ["web"] # opens without asking in the web space
panes = [
{ agent = "claude" },
{ run = ["npm", "run", "dev"], split = "right", label = "server" },
{ split = "down" }, # a terminal
]Coordinate multiple agents across roles and a shared markdown task board without leaving the terminal.
- Roles & setup. Define
[roles.<name>]inconfig.toml(agent,args,worktree,strengths,instructions). Built-in defaults coverlead,planner,coder(isolated worktree), andreviewer. Runhive setupfor an interactive wizard, inspect configured roles withhive roles [--json], or let Hive pick the best role with--role auto. - Task board. Manage tasks from the CLI (
hive task add|list|show|update) or open the interactive Kanban board withhive boardorCtrl+Space Binside Hive (nnew,aassign role,sspawn an agent on the task,m/Enteradvance status). - Coordination & MCP. Spawn workers (
hive spawn), send messages (hive msg), wait for completion (hive wait), or expose all 9 orchestration tools (task_list,task_show,task_add,task_update,agent_spawn,agent_message,agent_wait,session_list,role_list) to any MCP-compatible agent viahive mcpover stdio.
hive setup # detect installed agents & configure [roles.*]
hive roles # list roles, models, and routing strengths
hive task add "Fix auth race" --role auto # auto-route task to the best matching role
hive spawn --role coder --task 1 -w # spawn coder in an isolated git worktree
hive msg 4 "Focus on token refresh" && hive wait 4 # message a worker and wait for completion
hive board # open the interactive task board (or Ctrl+Space B)
hive mcp # run the local stdio MCP server (9 tools)Keep project notes in a plain markdown or Obsidian vault beside your agents—no daemon state, no lock-in.
hive notes # open the vault TUI (or Ctrl+Space N inside Hive)
hive context search "worktree cleanup" # ranked full-text search for agents & scripts
hive context get Architecture # print a note with its links and backlinks
hive context add Decisions "JWTs expire after 1h" # append a dated, signed entrySessions in a space with a vault automatically receive HIVE_VAULT so agents and scripts can find it.
Linux (x86_64 and aarch64), macOS (Apple silicon and Intel) and Windows 10+ (x86_64 and Arm64); CI tests all three. On Windows, agent status comes only from agents that report it (hive report-agent).
Linux and macOS:
curl -fsSL https://github.com/jrh89/hive/releases/latest/download/install.sh | shWindows (PowerShell):
irm https://github.com/jrh89/hive/releases/latest/download/install.ps1 | iexThe script downloads static binaries, verifies their SHA-256 checksum and installs hive and hived to ~/.local/bin. Set HIVE_INSTALL_DIR to change the location or HIVE_VERSION=v0.6.1 to pin a version. Later, hive update upgrades in place (then hive daemon stop to restart the daemon on the new version; this ends running sessions, and Ctrl+Space R restores them).
Package managers
| Manager | Install |
|---|---|
| npm | npm install -g @codefrontlabs/hive |
| Bun | bun add -g @codefrontlabs/hive or bunx --bun @codefrontlabs/hive with Bun alone |
| pnpm | pnpm add -g @codefrontlabs/hive |
| Yarn | yarn dlx -p @codefrontlabs/hive hive |
| Homebrew | brew tap jrh89/hive https://github.com/JRH89/hive, then brew install jrh89/hive/codefront-hive |
| Arch Linux | Verify the x86_64 package with its checksum, then run sudo pacman -U ./codefront-hive-bin-0.6.1-1-x86_64.pkg.tar.zst. On ARM64, build the PKGBUILD with makepkg -si. AUR publication is pending. |
Use the same package manager to upgrade. Yarn may hold new versions for up to 24 hours by default.
Manual download. Get the archive and checksum for your platform from GitHub Releases. Verify the checksum and extract both binaries into the same directory on your PATH.
From source (Rust ≥ 1.89):
git clone https://github.com/jrh89/hive && cd hive
cargo build --release
install -m 0755 target/release/hive target/release/hived ~/.local/bin/Keep hive and hived in the same directory. Run hive doctor to check the setup.
Start. Run hive in any directory. You get a terminal in a space named after the repository.
Run an agent. Type claude (or codex, gemini, ...) in that terminal. The sidebar's AGENTS list picks it up with its status. Or press Ctrl+Space A to pick one from a list.
Work in another repo. Click + new in the sidebar (or Ctrl+Space S): a new space opens with a terminal in your home folder. cd ~/src/other-repo and within two seconds it becomes that repository's space (or plain folder's, like ~/Work). The tab row's + adds a tab to the current space instead. Alt+↑/↓ moves between spaces, Alt+←/→ between that space's tabs.
Keep agents out of each other's way. Press Ctrl+Space C: the new terminal opens in its own worktree on a fresh branch hive/shell-<id>. Start an agent there. From the command line: hive new codex -w (or -b my-branch). List and clean up with hive worktree list / hive worktree rm <path>.
Watch two things at once. Ctrl+Space v splits right, - splits below, o cycles focus, z zooms, X closes the pane and ends its session (a running agent asks first). To leave sessions running, detach instead.
Walk away. Ctrl+Space d detaches. Everything keeps running in hived. Run hive again to come back. Sessions survive the terminal, SSH drops and sleep, but not a reboot or a daemon restart (they come back marked ◌ ended; Ctrl+Space R restores them all and Claude Code or Codex resumes its conversation).
Get status from your own tools. Anything running in a Hive terminal can report its state:
hive report-agent --agent mybot --state working --message "indexing"
hive report-agent --agent mybot --state blocked --message "need an API key"Script it.
hive new claude -d -C ~/src/shop # start Claude in the background
hive list # see sessions
hive attach 3 # attach to one
hive kill 3 # terminate itHive has built-in support and auto-detection for 27+ AI coding agents—including Claude Code (claude), Codex (codex), Gemini CLI (gemini), OpenCode (opencode), GitHub Copilot, Cursor Agent, Amp, Cline, Devin, Droid, Goose, Aider, Qwen Code, and more—plus your own shell (shell).
Run hive agents to see which agents are installed on your PATH, or hive agents -a to list the full catalog. Add or override any command in config.toml (see custom agents).
Agents run unmodified in a real terminal. Hive doesn't parse their output for anything but status, and never answers their prompts.
| Command | |
|---|---|
hive |
Open the UI (attaches to the newest live session, or opens a terminal) |
hive new [agent] [-l label] [-C dir] [-d] [-- args] |
Launch an agent |
hive new codex -w / -b <branch> |
Launch in a new git worktree (default branch hive/<agent>-<id>) |
hive list |
List sessions |
hive attach <id> |
Attach to a session |
hive kill <id> |
Terminate a session |
hive status |
Daemon and session summary |
hive agents [-a] |
List installed agents (-a: all 27+ known agents) |
hive report-agent --agent <name> --state <state> |
Report status from inside a session |
hive workspace list|add <dir>|rename|rm |
Manage spaces |
hive worktree list|rm <path> [--force] |
List or remove worktrees (refuses dirty ones without --force) |
hive notes [dir] |
Open the markdown/Obsidian notes TUI |
hive context search|get|list|add|path |
Query or append to the space's vault ($HIVE_VAULT) |
hive setup |
Interactive wizard to configure roles and agents |
hive roles [--json] |
List configured orchestration roles and defaults |
hive task add|list|show|update |
Manage tasks on the shared board |
hive board |
Open the interactive task board |
hive spawn / hive msg / hive wait |
Spawn role-based workers, message sessions, and wait for completion |
hive mcp |
Run the stdio MCP server (9 tools, including role_list) |
hive update |
Upgrade to the latest release |
hive doctor |
Check config, daemon, terminal support and installed agents |
hive daemon start|stop|status |
Manage hived (stop terminates all sessions) |
The leader is Ctrl+Space.
| Keys | Action |
|---|---|
Alt+← / Alt+→ |
Previous / next tab in this space (no leader needed) |
Alt+↑ / Alt+↓ |
Previous / next space (no leader needed) |
Alt+1–9 |
Jump to an agent (numbered in the AGENTS list) |
Ctrl+Space : |
Command palette: every command, session and space |
Ctrl+Space c / t |
New terminal / new tab in this space |
Ctrl+Space S |
New space (same as + new in the sidebar) |
Ctrl+Space L |
Open a layout: panes from [layouts] in a new tab |
Ctrl+Space B |
Open the task board (n new, a assign role, s spawn, m/Enter advance) |
| Right-click | Menu for a space, tab or agent: rename, split, close |
Ctrl+Space C |
New terminal in its own worktree (own branch) |
Ctrl+Space A |
New agent from a list |
Ctrl+Space v / - |
Split right / below |
Ctrl+Space o / z / X |
Focus next pane / zoom / close pane |
Ctrl+Space n / p |
Next / previous session |
Ctrl+Space / |
Search sessions by name, agent, space or branch |
Ctrl+Space s / b |
Focus / hide the sidebar |
Ctrl+Space w |
Spaces (open, add, rename, remove) |
Ctrl+Space r / x |
Rename / terminate session |
Ctrl+Space d |
Detach |
Ctrl+Space a |
Take input control from another window |
Ctrl+Space ? |
Help (generated from your actual bindings) |
Every key is configurable, and so is the leader (see below). The mouse works too: click spaces, agents, tabs, + new and menu.
Scroll through terminal history with the wheel over a pane or Shift+Page Up / Shift+Page Down in the focused pane. If an app turns on mouse reporting in the normal terminal screen, use the keyboard shortcuts for Hive’s history. Typing returns the pane to live output.
~/.config/hive/config.toml. Every key is optional; examples/config.toml documents all of them. Mistakes are reported before the UI opens.
[general]
default_agent = "claude"
theme = "hive-dark" # hive-dark, hive-light, ansi (your terminal's palette), mono
[theme]
# colors = "auto" # auto, truecolor, 256, 16, none (NO_COLOR is honoured)
# glyphs = "auto" # auto, unicode, ascii (no Nerd Fonts needed either way)
# accent = "#F2B84B" # override any palette colour
[keys]
leader = "ctrl+space" # must use Ctrl, Alt or an F-key
[keys.bind]
new_session = "c"
add_workspace = ["W", "f2"]
kill_session = "" # unbind
[daemon]
auto_start = true
kill_timeout_secs = 3
[worktrees]
# dir = "~/worktrees" # default: $XDG_DATA_HOME/hive/worktrees
[agents.aider] # add or override agents
command = "aider"
args = ["--dark-mode"]The full documentation is at hive.codefrontlabs.com/docs:
- Getting started · The interface · Keys
- Configuration reference: every option with its type and default
- Command line: every
hivecommand and option - Agent status and
report-agent· Workspaces and worktrees - Daemon, files and environment variables · Troubleshooting
The same material in the repository: user guide, troubleshooting and examples/config.toml. Tests check the website's key, command-line and configuration pages against the code.
hived owns every agent process, PTY and the authoritative terminal state. hive is a client that talks to it over a per-user Unix socket. See vault/Architecture/Overview.md.
cargo build # target/debug/hive and hived
cargo fmt --all
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace # unit, PTY integration and CLI tests
scripts/smoke.sh target/debug # end-to-end check of built binariesIntegration tests run real PTYs with /bin/sh scripts against private daemons. No agent CLIs are needed. CI (.github/workflows/ci.yml) runs the above, an MSRV check, and static musl builds for x86_64 and aarch64. Pushing a v* tag builds release archives and creates a draft GitHub release.
- ✅ Daemon-first foundation: one session, detach/reattach
- ✅ Multiplexing: sidebar, switching, several agents at once
- ✅ Robust persistence: auto-reconnect, multi-client polish
- ✅ Workspaces and git worktrees
- ✅ Polish: command palette, themes, configurable keys
- ✅ Testing and distribution: CI, static Linux binaries, docs
- ✅ herdr parity: agent detection and status, split panes and tabs, global keys, mouse
- ✅ Ease of use: herdr-style spaces/agents sidebar, clickable everything, optional integrations,
hive update - ✅ macOS support: Apple silicon and Intel binaries, Homebrew tap
- ✅ Windows support: ConPTY, named pipes, x86_64 and Arm64 binaries
- ✅ Notes and context:
hive notes,hive context,HIVE_VAULT - ✅ Multi-agent orchestration:
hive setup,[roles.*]+--role auto,hive task,hive board,hive spawn/msg/wait,hive mcp


