hive

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: Apache-2.0

README

Hive

Wordmark

The agent infrastructure for agents that don’t clock out

Run them anywhere. Leave them running.

https://github.com/user-attachments/assets/bd7b9d6e-d0f5-43d7-9889-34c1a3fb0c9e

Vision

Start an agent and walk away. Hive keeps its environment alive when your terminal closes, your SSH connection drops, or your laptop goes to sleep. Come back later and pick up where you left off.

  • One machine, many agents. Each agent gets its own workspace, terminal and context, so a hundred of them can work without stepping on each other.
  • See everything working. A terminal multiplexer built for agents: tabs of split panes with live agent screens, and an Overview of which agents are running, waiting, done or failed, so you don't have to open a dozen terminals.
  • Bring your own agent. Claude Code, Codex, OpenCode, Cursor, your own agent, whatever comes next. Hive doesn't replace them; it gives them somewhere to live.
  • Agents that operate agents. The same interface you use (creating workspaces, launching tasks, reading output) is available to agents themselves, so the infrastructure becomes part of the agent's toolkit.
  • Built for the background. Long builds, large migrations, test suites, research and parallel tasks: work that takes longer than a terminal session.

Status

Hive is at v1.0 release candidates and built in public. The wire API, the CLI, the configuration keys and the Go SDK are frozen: 1.x only adds to them (compatibility policy). Documentation lives at hive.admir-saheta.com/docs; start with the quick start, or the migration guide if you come from herdr.

Area State
Runtime daemon, unix-socket protocol (multiplexed protocol 2, plain protocol 1), CLI ✅ working
Agents survive daemon crashes, restarts and upgrades (one shim per agent) ✅ working
Daemon autostart, login service (launchd / systemd), single-instance lock ✅ working
Config file, structured logs with rotation ✅ working
Environments (persistent workspaces) ✅ working
Processes: plain or PTY-backed, lifecycle, stdout/stderr logs (tail, follow), clean stop of the whole process tree ✅ working
Terminal emulation: attach shows the exact screen at once, snapshots, scrollback ✅ working
Terminal attach / detach, live input, resize ("last to type sets the size") ✅ working
Event stream (hive events): processes and environments as they change ✅ working
Multiplexer UI: tabs and split panes of live agents, sidebar, Overview, copy mode, mouse, themes, configurable keys ✅ working
Crash recovery: stale records closed out, orphaned agents stopped (PID and start time verified) ✅ working
Agent state detection (working, blocked, done, idle) for Claude Code, Codex and six more; hooks; notifications ✅ working
Agents operating agents: hive agent start/prompt/wait/read, MCP server (hive mcp), Go SDK (pkg/hiveapi) ✅ working
Workspace isolation per agent (git worktrees) ✅ working
Survives reboots: session snapshots, panes restored where they were working, agents resume their conversations (docs) ✅ working
Housekeeping (hive gc, retention, output log rotation) and self-update (hive update, agents keep running) ✅ working
Remote machines over SSH: --remote, saved machines, every machine's agents in the sidebar, compressed and paced screens, clipboard back to you (docs) ✅ working
Plugins (startup, events, actions; install from git with a trust preview), key commands, sidebar tokens, status bar (docs) ✅ working
Plugin API 1: versioned contract, capabilities enforced per plugin socket, optional sandbox, health and restart limits, sidebar cards, tab-bar indicators, contextual actions, palette, settings forms, backups (reference) ✅ working
Hardening: frozen APIs, peer-credential checks on every socket, signed releases, 100 panes at under 16 ms a frame and under 1 % CPU idle, nightly fuzzing and chaos soaks (security) ✅ working
Windows support 🗺 planned

Quick start

Install the latest macOS or Linux release with:

curl -fsSL https://hive.admir-saheta.com/install.sh | sh

The installer places hive in ~/.local/bin by default. Set HIVE_INSTALL_DIR to choose another directory, HIVE_CHANNEL=preview for release candidates, or HIVE_VERSION for a given release. Or:

brew tap admirable-oss/tap && brew install hive-agents  # Homebrew CLI formula
brew install --cask admirable-oss/tap/hive               # macOS cask
nix run github:admirable-oss/hive              # Nix (or nix profile install)
go install github.com/admirable-oss/hive/cmd/hive@latest

Release binaries are signed, and hive update checks the signature (SECURITY.md). To build from source, Go 1.26+ is required.

make build          # or: go build -o hive ./cmd/hive

./hive demo         # starts the daemon on demand, then launches four demo agents
./hive              # open the multiplexer
./hive daemon install   # optional: start the daemon at login, restart it if it crashes

The multiplexer works like tmux: press the prefix, Ctrl+B, then a key.

After Ctrl+B
% · " split the pane right · down
←↓↑→ or h j k l move between panes (space for sticky navigate mode, r for resize mode)
z · x zoom the pane · close it
c · 1–9 · n p new tab · go to a tab · next, previous
w go to any agent or pane (fuzzy)
O the Overview: every agent, with a live preview
[ copy mode: vim keys, / search, v/V select, y copy
? every binding, with a filter
d detach; agents keep running

A split or popup starts in the directory its pane is working in (after a cd, too); a new tab starts at the environment's root. The mouse works too: click to focus, drag borders, select to copy, scroll into history. The keystrokes guide lists every binding and how to change them.

CLI

Command What it does
hive / hive ui [--env <id>] Open the multiplexer
hive env list | create <id> | get <id> | rm <id> Manage environments (removing one stops its agents first)
hive ps start [-t] <env> [--] <cmd> [args…] Start a process (-t gives it a terminal)
hive ps list [env] | get <id> | stop <id> Inspect and stop processes
hive ps logs <id> [-n N] [-f] [--stderr] Print a process's output; -f follows it until the process exits
hive terminal attach <id> Attach to an agent's terminal; Ctrl+] detaches and the agent keeps running
hive terminal snapshot <id> [--ansi] [--scrollback N] Print an agent's current screen, optionally with its last N lines of history
hive terminal input <id> <text> · resize <id> <w> <h> Type into / resize an agent's terminal
hive agent list | get | explain [agent] Agents and their states (working, blocked, done, idle, exited), and why
hive agent start --kind <k> --env <env> [--worktree <branch>] Start an agent in a new tab; --worktree gives it its own checkout
hive agent prompt [agent] <text> [--wait] [--read N] · wait [agent] --until idle|done Prompt an agent and wait for it (exit 4 timed out, 5 blocked/stalled/exited)
hive agent read | send-keys | rename | focus | stop | attach Read and drive an agent
hive mcp Serve the agent, pane and environment tools over MCP: claude mcp add hive -- hive mcp
hive --skill Print the skill that teaches agents to drive other agents through Hive
hive api schema | snapshot The API's methods and JSON Schemas; the whole workspace at once. Every command takes --json
hive events [type-prefix…] Stream daemon events as JSON lines
hive status · hive ping · hive version Inspect the runtime (exit code 3 when the daemon is not running)
hive stop Stop the runtime and every agent it runs
hive daemon Run the runtime in the foreground (what service managers run)
hive daemon restart Restart the runtime; agents keep running and are re-attached
hive daemon start | stop [--keep-agents] | status | logs [-f] Manage the background daemon
hive daemon install | uninstall Run the daemon as a launchd agent (macOS) or systemd user service (Linux)
hive session save | restore [--fresh] Snapshot the workspace now; start panes lost to a reboot again (the daemon does both by itself)
hive --remote <host> … · hive --machine <name> … Run any command (or the multiplexer) against Hive on another machine over SSH; installs it there after asking
hive plugin search | install | update [id] | rollback <id> | init <id> | link | list | info | enable | disable | uninstall | run | logs Discover catalog plugins or manage Git and local plugins; updates retain a rollback release and plugin data is preserved
hive plugin doctor | reload [id] | grant | revoke | config <id> | contributions | capabilities | cancel | export | import Check plugin health and compatibility, manage capabilities and settings, back them up
hive pane report-metadata · hive env report-metadata · hive metadata Tokens and titles in the sidebar, with a TTL
hive machine add | list | rename | enable | disable | remove | status | reconnect Save other machines; status shows their daemons, round trip and agents
hive gc [--dry-run] [--older-than d] Remove old process records and logs, and leftovers; running agents are never touched
hive update [--check] [--version v] [--channel stable|preview] [--from file] Update hive to the latest signed release and restart the daemon; agents keep running
hive config path | show | default | init | validate | reset-keys Inspect and create the configuration file; put the default key bindings back
hive config import-herdr [--herdr-keys] [--write] Bring over herdr's settings and key bindings (guide)
hive debug pprof [--profile p] [--seconds n] [-o file] · hive debug stats Profile the daemon; its goroutines, open files and memory
hive completion bash|zsh|fish|powershell Shell completion, including environment and process IDs

Add --template '<Go template>' to format a command's JSON output for scripts (hive env list --template '{{range .}}{{.id}}{{"\n"}}{{end}}'). Every command that talks to the daemon starts it if it is not running (turn this off with daemon.autostart = false). Add --json to any command for machine-readable output. Exit codes: 0 success, 1 error, 2 bad command line, 3 daemon not running.

Configuration

Hive reads ~/.config/hive/config.toml (or $XDG_CONFIG_HOME/hive/config.toml, or $HIVE_CONFIG). Every key is optional; hive config init writes a commented file with the defaults:

[daemon]
autostart = true            # start the daemon when a command needs it
shutdown_timeout = "15s"    # how long stopping waits for agents to exit

[log]
level = "info"              # debug | info | warn | error  (HIVE_LOG overrides)
format = "text"             # text | json
max_size_mb = 10            # the daemon log rotates at this size…
max_backups = 3             # …and keeps this many old files

[process]
stop_grace = "3s"           # SIGTERM → SIGKILL delay when stopping an agent

[terminal]
default_width = 220         # size of a new agent terminal
default_height = 50
scrollback_mb = 10          # history kept per agent (lines that scrolled off its screen)

[session]
restore = true              # after a reboot, start panes again where they were working…
resume_agents_on_restore = true  # …and resume agents' conversations (claude --resume <id>)
replay_history = false      # show panes' earlier text again (keeps screen text on disk; see the persistence guide)

[retention]
exited_processes = "168h"   # keep ended processes' records and logs this long
process_log_mb = 50         # rotate each agent's output log at this size

[remote]
ssh = "ssh"                 # how other machines are reached (~/.ssh/config applies)
frame_budget_kb = 48        # screen updates a remote daemon sends this client, KiB/s
image_budget_kb = 1024      # how fast a pasted image is sent to a remote daemon, KiB/s

[images]
max_kb = 5120               # largest image pasted with prefix I
keep = "1h"                 # how long images saved for agents that take a path are kept
render = "auto"             # images agents print: auto | cells | text | off

[plugins]
allow = []                  # optional capabilities granted to every plugin that asks
deny = []                   # capabilities no plugin gets
isolation = "auto"          # sandbox plugins that support it | standard | strict
restart_limit = 5           # crashes within restart_window before a plugin is given up on

[ui]
sidebar = true              # show environments and agents beside the panes
sidebar_width = 28
mouse = true                # click, drag borders, select to copy, scroll
clipboard = "auto"          # auto | osc52 | local | off

[theme]
name = "auto"               # auto | catppuccin | catppuccin-latte | tokyo-night | gruvbox | nord | terminal | custom

[keys]
prefix_keys = ["ctrl+b"]    # bindings per mode in [keys.<mode>]; see the keystrokes guide

[update]
channel = "stable"          # stable | preview (release candidates too)

The configuration reference describes every key.

Unknown keys and invalid values are reported as warnings and fall back to the defaults, so a typo never stops the daemon that keeps your agents alive. A file that is not valid TOML is an error, and the daemon refuses to start with it. hive config validate checks a file and exits non-zero on any problem.

Data lives in ~/.hive. Set HIVE_HOME to use another directory, for example to run an isolated daemon for testing.

Architecture

Hive is a single binary with three roles:

  • a shim per agent (hive __shim), which owns the agent's PTY, terminal emulator and logs, and outlives everything except hive stop;
  • a daemon that owns environments and supervises agents through their shims;
  • clients (the CLI and the multiplexer UI) that talk to the daemon over a unix socket.

Closing a client never touches an agent. Stopping, crashing or upgrading the daemon doesn't either: the next daemon re-attaches to the shims (ADR 0006).

cmd/hive ──────────── CLI composition root: builds one `app` (paths, config, client); cobra commands
 │
 ├── tui ──────────── multiplexer UI (mux app, compositor, keymap, copy mode, themes); depends only on client
 ├── daemonctl ────── start the daemon detached (autostart), install launchd / systemd services
 ├── config ───────── config.toml: defaults, forgiving validation, rendering
 ├── client ───────── protocol 2 over one connection (falls back to protocol 1)
 │        ╎
 │        ╎  unix socket (0600) · newline-delimited JSON
 │        ╎
 └── runtime ──────── daemon composition root: wires modules, serves the socket, owns agent lifetimes
       ├── process ── supervises agents: start, monitor, stop, recover / adopt, logs
       │     ├── environment ── persistent workspaces
       │     └── terminal ───── sessions, viewers, size arbitration, attach / frames / snapshot
       │            └── shim ──── one process per agent: PTY + emulator; adopted after restarts
       │                   ╎
       │                   ╎  run/<id>/shim.sock · protocol 2
       ├── event ──── event bus behind `events.subscribe`
       └── vt ─────── terminal emulation (x/vt), frames codec, ANSI painter, scrollback
           protocol · jsonfile · pgroup · platform · logging · buildinfo   (leaves)

Dependencies only point down. Leaf packages know nothing about Hive's domain, and no package imports one above it. The rule is enforced by depguard in make lint.

Following a call from main to the OS

Every layer is reached through an explicit call, so you can read the code top to bottom:

hive ps start -t dev -- claude
  main.execute                      cmd/hive/main.go      → newApp (config, paths, client), cobra root
  root PersistentPreRunE            cmd/hive/root.go      → app.ensureDaemon: ping, or autostart via daemonctl.Spawn
  newProcessStartCmd (RunE)         cmd/hive/cmd_process.go
  client.ProcessStart → call()      internal/client       → protocol.Stream.Send
  ─────────────── socket ───────────────
  runtime.Server.accept             internal/runtime      → protocol.Serve(conn) (checks the protocol version)
  protocol.Router.Handle            internal/protocol     → "process.start"
  protocol.Method[StartRequest]     decodes params once, encodes the result
  process.service.Start             internal/process      → Environments.Get (port)
  process.service.launch            → terminal.Service.Open → shim.Launcher.Open: spawn `hive __shim` (setsid)
  shim.Run (in the shim process)    internal/shim         → PTYFactory.Open → creack/pty, vt.Terminal
  process.service.monitor           Remote.Wait (shim.wait) → persist the final state → Remote.Release

On disk

~/.hive/
  hive.sock                                  daemon socket (0600, in a 0700 directory)
  hive.pid                                   daemon PID; flock-ed while the daemon runs (one daemon per root)
  logs/daemon.log[.1…]                       structured daemon log, rotated by size
  logs/daemon.stderr                         the daemon's stderr from its last start (start-up errors)
  session.json                               the latest workspace snapshot (restore after a reboot)
  snapshots/session-<time>.json              the 48 before it
  history/<pane>.txt                         panes' recent text, only with session.replay_history
  machines.json                              saved machines (hive machine), shared by every session
  plugins/<id>/  plugins/registry.json       installed plugins (shared by every session); plugins/.data/<id>/ their data,
                                             .config/<id>/ their settings, .cache/<id>/ their caches
  <session>/p/<hash>.sock                    each running plugin's own daemon socket, scoped to its capabilities
  logs/plugins/<id>.log                      what each plugin's commands printed
  ssh/                                       shared SSH connections' sockets (ControlMaster)
  run/<process-id>/                          one shim per live agent (0700)
    spec.json  state.json                    what it runs; running / exited + exit code
    shim.sock  shim.log  shim.stderr         its socket (0600) and its own logs
  environments/<env>/
    environment.json
    workspace/                               where the env's agents run
    processes/<id>/
      process.json                           lifecycle record (written atomically)
      stdout.log  stderr.log                 output, private to the user (PTY output goes to stdout.log; rotates to .1)

Wire protocol

One JSON object per line. Requests carry type, id, method and params; each response carries the same id with either result or error: {code, message}. Error codes are invalid_request, unknown_method, invalid_params, not_found, internal_error, unsupported_version, unsupported and unavailable.

  • Protocol 1 is the default: one request, one response, in order. Hand-written clients (nc) use it. A request may open a pipe that takes over the rest of the connection.
  • Protocol 2 starts with {"type":"hello","version":"2","params":{"client":…}}. The server answers with a welcome listing its methods and capabilities. From then on, requests run concurrently and any number of pipes share the connection: the response that opens one carries a stream ID, and its bytes travel as {"type":"data","stream":…,"data":<base64>} until a close. The CLI and the multiplexer speak protocol 2, and fall back to protocol 1 against an older daemon.
Namespace Methods
runtime ping, status, shutdown (stop_agents, default true)
environment list, create, get, remove
process start, list, get, logs, logs.stream (pipe), stop
terminal attach (pipe: screen painted as ANSI, keystrokes back), frames (pipe: binary screen frames), snapshot, input, resize
events subscribe (pipe: one JSON event per line; events_lost means resync)

Screens never travel as raw output. Each agent's terminal is emulated in its shim, and viewers get frames computed from the current screen when they are ready for one. A slow viewer gets fewer frames, never a corrupted screen, and a late one starts with an exact keyframe. process.logs returns a size-capped tail in one reply (truncated: true when cut); process.logs.stream sends logs of any size.

Design principles

Protocol-Oriented Programming (POP)

Hive is designed contracts first. Each layer depends on a small interface (a protocol, in the Swift sense), and concrete types are plugged in at a single composition root.

  • The consumer owns the interface. process doesn't import the whole environment service. It declares Environments{ Get } and Terminals{ Open } and accepts anything that fits. The runtime declares Supervisor{ Recover, StopAll } for the same reason.
  • Small surfaces. protocol.Handler has one method, and Store, Runner, Factory and ListenerFactory have a handful each. Small contracts are cheap to fake, so most tests need no network or processes.
  • Composition instead of inheritance. Go has no class inheritance. Where you might reach for it, Hive embeds an interface and overrides one method. runtime.envGuard embeds environment.Service and overrides only Delete, which stops the environment's agents first. process.sessionHandle embeds a terminal.Session and adapts it into a Handle.

Patterns you'll find

Pattern Where Why
Composition root and constructor injection runtime.NewModule, cmd/hive.newApp Everything is wired in one place; there are no globals, no init() and no setter injection
Module per package *.module.go NewModule(cfg, deps…) hides each package's internal wiring
Ports and adapters Store/FilesystemStore, Runner/execRunner, Factory/PTYFactory, ListenerFactory The domain doesn't know about disks, os/exec or PTYs
Repository environment.Store, process.Store Persistence and on-disk layout are owned by one type
Adapter protocol.Method[P, R], sessionHandle Typed Go functions become wire handlers; PTY sessions become process handles
Decorator via embedding runtime.envGuard A cross-domain rule without coupling the domains
Observer (pub/sub) terminal.ptySession.Subscribe One PTY fans out to log file, history and any number of attached clients
Connection upgrade protocol.Response.Hijack Request/response and raw streaming share one socket

Conventions

  • One file per role: pkg.model.go (types), pkg.service.go (contract and implementation), pkg.store.go (port), pkg.filesystem_store.go (adapter), pkg.protocol.go (wire handlers), pkg.module.go (wiring and package doc), pkg.error.go.
  • Comments explain why, not what. Each package starts with a short doc comment, and non-obvious decisions are commented where they happen.
  • Minimal dependencies. Bubble Tea and Lip Gloss (UI), creack/pty (terminals), cobra (CLI), go-toml (config), x/sys, godbus (the logind shutdown notice on Linux), and two small charmbracelet/x helpers. Everything else is the standard library. A new dependency needs an ADR.

Contributing

make check      # vet, lint (pinned golangci-lint), race tests with goleak, go.mod tidiness
make fuzz       # run the fuzz targets (protocol framing, config parser)
make snapshot   # build release archives into ./dist

Tests sit next to the code or in a package's tests/ directory. Fakes for Store, Runner, Factory and client.Client let most tests run without real processes. Integration tests start a real daemon on a temporary socket, and the CLI's end-to-end tests run the real binary path, autostarting a daemon in a scratch HIVE_HOME. Every package checks for leaked goroutines.

See CONTRIBUTING.md for coding standards and architecture decisions for design decisions. Issues and pull requests are welcome. Please keep changes small, follow the file conventions above, and include a test with each bug fix.

Found a security issue? Please follow SECURITY.md instead of opening a public issue.

License

Apache 2.0

Directories

Path Synopsis
cmd
hive command
Command hive is the CLI.
Command hive is the CLI.
Package distribution holds data files shipped inside the hive binary.
Package distribution holds data files shipped inside the hive binary.
examples
fanout-reviewer command
Command fanout-reviewer asks one agent per directory to review it, all in parallel, each in its own worktree, and prints what each one found.
Command fanout-reviewer asks one agent per directory to review it, all in parallel, each in its own worktree, and prints what each one found.
test-fixer command
Command test-fixer runs a Go module's tests and sends one agent at each failing package, in its own worktree, to make it pass.
Command test-fixer runs a Go module's tests and sends one agent at each failing package, in its own worktree, to make it pass.
internal
agent
Package agent reads what coding agents are doing from their terminals.
Package agent reads what coding agents are doing from their terminals.
apisurface
Package apisurface checks Hive's public surfaces against their frozen copies in api/v1: the wire API, the CLI, the configuration keys and the Go SDK.
Package apisurface checks Hive's public surfaces against their frozen copies in api/v1: the wire API, the CLI, the configuration keys and the Go SDK.
buildinfo
Package buildinfo reports which build of Hive is running.
Package buildinfo reports which build of Hive is running.
client
Package client talks to a running Hive daemon over its unix socket.
Package client talks to a running Hive daemon over its unix socket.
config
Package config loads Hive's user configuration: a TOML file at ~/.config/hive/config.toml (or $XDG_CONFIG_HOME/hive/config.toml, or $HIVE_CONFIG).
Package config loads Hive's user configuration: a TOML file at ~/.config/hive/config.toml (or $XDG_CONFIG_HOME/hive/config.toml, or $HIVE_CONFIG).
daemonctl
Package daemonctl starts and installs the Hive daemon from the client side: launching it detached from the terminal (autostart), and installing it as a per-user launchd agent (macOS) or systemd user service (Linux) so it starts at login and is restarted if it crashes.
Package daemonctl starts and installs the Hive daemon from the client side: launching it detached from the terminal (autostart), and installing it as a per-user launchd agent (macOS) or systemd user service (Linux) so it starts at login and is restarted if it crashes.
environment
Package environment manages workspaces: the long-lived directories agents run in.
Package environment manages workspaces: the long-lived directories agents run in.
event
Package event is the daemon's event bus.
Package event is the daemon's event bus.
git
Package git reads repository state for environments (branch, ahead and behind, dirty files) and manages the worktrees Hive creates for agents.
Package git reads repository state for environments (branch, ahead and behind, dirty files) and manages the worktrees Hive creates for agents.
integration
Package integration installs hooks into coding agents' own settings so they report their state to Hive (`hive pane report-agent --hook`), more precisely than Hive can read it from their screens, along with their session IDs for resuming them.
Package integration installs hooks into coding agents' own settings so they report their state to Hive (`hive pane report-agent --hook`), more precisely than Hive can read it from their screens, along with their session IDs for resuming them.
jsonfile
Package jsonfile reads and writes JSON documents on disk.
Package jsonfile reads and writes JSON documents on disk.
layout
Package layout is the tiling model of a tab: a binary space partition whose leaves are panes.
Package layout is the tiling model of a tab: a binary space partition whose leaves are panes.
logging
Package logging builds the structured loggers Hive uses: log/slog handlers writing to a size-rotated file and, optionally, to stderr.
Package logging builds the structured loggers Hive uses: log/slog handlers writing to a size-rotated file and, optionally, to stderr.
mcp
Package mcp serves tools over the Model Context Protocol: JSON-RPC 2.0, one message per line on stdin and stdout, as MCP clients (Claude Code, Codex, Cursor, …) run local servers.
Package mcp serves tools over the Model Context Protocol: JSON-RPC 2.0, one message per line on stdin and stdout, as MCP clients (Claude Code, Codex, Cursor, …) run local servers.
metadata
Package metadata keeps short labels that agents, plugins and scripts put on panes and environments for the sidebar to show: tokens ("PR #12 ✓", "tests 3/40") and a title that names a pane instead of its program.
Package metadata keeps short labels that agents, plugins and scripts put on panes and environments for the sidebar to show: tokens ("PR #12 ✓", "tests 3/40") and a title that names a pane instead of its program.
notify
Package notify tells the user when an agent wants them: it is blocked on a decision, or done.
Package notify tells the user when an agent wants them: it is blocked on a decision, or done.
pane
Package pane is the workspace model inside an environment: tabs, each a tiling layout (package layout) of panes, plus floating popups.
Package pane is the workspace model inside an environment: tabs, each a tiling layout (package layout) of panes, plus floating popups.
persist
Package persist keeps snapshots of a session's workspace, so a host reboot does not lose it: every environment's tabs, layout and focus, and for each pane what it ran, where it was working and which agent conversation it held.
Package persist keeps snapshots of a session's workspace, so a host reboot does not lose it: every environment's tabs, layout and focus, and for each pane what it ran, where it was working and which agent conversation it held.
pgroup
Package pgroup stops whole process groups.
Package pgroup stops whole process groups.
platform
Package platform hides operating-system specifics behind plain functions so domain packages stay portable.
Package platform hides operating-system specifics behind plain functions so domain packages stay portable.
plugin
Package plugin extends Hive with programs it runs for the user: a plugin is a directory with a hive-plugin.toml manifest.
Package plugin extends Hive with programs it runs for the user: a plugin is a directory with a hive-plugin.toml manifest.
process
Package process supervises agents: it launches them inside an environment's workspace (plainly or in a PTY), records their lifecycle, and stops them.
Package process supervises agents: it launches them inside an environment's workspace (plainly or in a PTY), records their lifecycle, and stops them.
protocol
Package protocol is Hive's wire layer: newline-delimited JSON over a unix socket, in two flavours on the same framing.
Package protocol is Hive's wire layer: newline-delimited JSON over a unix socket, in two flavours on the same framing.
remote
Package remote reaches Hive on other machines over SSH.
Package remote reaches Hive on other machines over SSH.
runtime
Package runtime is the daemon's composition root.
Package runtime is the daemon's composition root.
session
Package session names Hive's namespaces.
Package session names Hive's namespaces.
shim
Package shim keeps agents alive independently of the daemon.
Package shim keeps agents alive independently of the daemon.
terminal
Package terminal runs commands inside pseudo-terminals so agents that expect a real TTY (interactive CLIs, prompts, colours) behave as they would for a human.
Package terminal runs commands inside pseudo-terminals so agents that expect a real TTY (interactive CLIs, prompts, colours) behave as they would for a human.
tui/bee
Package bee is the Overview's animated mascot.
Package bee is the Overview's animated mascot.
tui/compositor
Package compositor draws the multiplexer's screen: panes from their terminal cells, the borders and titles between them, popups, the sidebar, the tab bar and overlays.
Package compositor draws the multiplexer's screen: panes from their terminal cells, the borders and titles between them, popups, the sidebar, the tab bar and overlays.
tui/copymode
Package copymode is the scrollback cursor: vim motions over a pane's history and screen, frozen when copy mode starts, with / and ? search, character and line selection, and yanking the selection as text.
Package copymode is the scrollback cursor: vim motions over a pane's history and screen, frozen when copy mode starts, with / and ? search, character and line selection, and yanking the selection as text.
tui/fuzzy
Package fuzzy ranks strings against a typed pattern, for pickers: the pattern's characters must appear in order, and matches score higher when they start words, run together, or come early.
Package fuzzy ranks strings against a typed pattern, for pickers: the pattern's characters must appear in order, and matches score higher when they start words, run together, or come early.
tui/keymap
Package keymap maps keys to multiplexer actions.
Package keymap maps keys to multiplexer actions.
tui/mux
Package mux is the multiplexer UI: tabs of split panes showing live agent terminals, a sidebar of environments and agents, an Overview of every agent, copy mode, pickers and prompts.
Package mux is the multiplexer UI: tabs of split panes showing live agent terminals, a sidebar of environments and agents, an Overview of every agent, copy mode, pickers and prompts.
tui/theme
Package theme holds the multiplexer's colour schemes.
Package theme holds the multiplexer's colour schemes.
update
Package update replaces the hive binary with a release: it finds the latest (or a given) release on GitHub, downloads the archive for this OS and architecture, checks it against the release's checksums, and swaps the binary in place.
Package update replaces the hive binary with a release: it finds the latest (or a given) release on GitHub, downloads the archive for this OS and architecture, checks it against the release's checksums, and swaps the binary in place.
vt
Package vt is Hive's terminal-emulation layer.
Package vt is Hive's terminal-emulation layer.
pkg
hiveapi
Package hiveapi is the Go SDK for Hive: it drives a running Hive daemon (the one `hive` talks to) over its socket, so Go programs can start coding agents, prompt them, wait for them and read what they did.
Package hiveapi is the Go SDK for Hive: it drives a running Hive daemon (the one `hive` talks to) over its socket, so Go programs can start coding agents, prompt them, wait for them and read what they did.
pluginsdk
Package pluginsdk is the supported Go SDK for Hive plugin processes.
Package pluginsdk is the supported Go SDK for Hive plugin processes.
Package skills holds the agent skills shipped inside the hive binary.
Package skills holds the agent skills shipped inside the hive binary.
tools
nixhash command
Command nixhash prints the vendorHash flake.nix needs: the Nix hash (NAR, sha256, SRI form) of the module's `go mod vendor` output, which is what buildGoModule fetches.
Command nixhash prints the vendorHash flake.nix needs: the Nix hash (NAR, sha256, SRI form) of the module's `go mod vendor` output, which is what buildGoModule fetches.
release-sign command
Command release-sign makes Hive's release signing key and signs release checksums with it.
Command release-sign makes Hive's release signing key and signs release checksums with it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL