Command-Line Help for hivectl

This document contains the help content for the hivectl command-line program.

Command Overview:

hivectl

Sibling to the hive-c0re daemon binary. Covers host-side admin operations that don't go through the broker, plus future recovery / debugging verbs.

Usage: hivectl [OPTIONS] <COMMAND>

Subcommands:
Options:

hivectl agent

Lifecycle actions on ONE managed agent container. Needs the hive-c0re daemon running.

Everything here targets a single named agent (hivectl agent foo restart, hivectl agent foo choom, …) — anything that acts hive-wide lives at the top level instead (list-agents, restart/stop/start with a scope).

Usage: hivectl agent <NAME> <COMMAND>

Subcommands:
Arguments:

hivectl agent restart

Stop and start this agent container without rebuilding config

Usage: hivectl agent restart [OPTIONS]

Options:

hivectl agent pause

Park this agent's turn loop, leaving the container running.

The harness stops driving turns but keeps serving its web UI and MCP daemons, so the container, its mounts and its warm caches stay up while it burns no tokens. Inbox messages queue unacked and the backlog drains on resume. Sticky: it survives a restart, and pausing a stopped agent makes it come up paused.

Usage: hivectl agent pause [OPTIONS]

Options:

hivectl agent resume

Resume this paused agent — it drains whatever queued up while parked

Usage: hivectl agent resume

hivectl agent start

Start this EXISTING agent container. Fails immediately if name has no config/topology entry at all — it never attempts first-time creation, which is swarm-level (swarmctl agent create)

Usage: hivectl agent start [OPTIONS]

Options:

hivectl agent stop

Gracefully stop this agent container: signal → drain → reconcile. Never escalates to a hard kill — use kill for that

Usage: hivectl agent stop

hivectl agent kill

Hard-stop this managed container

Usage: hivectl agent kill

hivectl agent destroy

Tear down this sub-agent container, keeping its state by default. No undo

Usage: hivectl agent destroy [OPTIONS]

Options:

hivectl agent rebuild

Apply pending config to this managed container

Usage: hivectl agent rebuild

hivectl agent choom

Open an interactive Claude session inside this agent's container.

A fresh session by default, or resume a prior one. Requires root or hive-admin group membership, plus a running container.

Usage: hivectl agent choom [OPTIONS]

Options:

hivectl agent watch

Follow this agent's live turn/tool-call event stream from the CLI.

Prints one compact line per event as they happen. Control characters in agent-written text print as U+FFFD. A closed stdout (watch | head) ends the watch with exit 0. Ctrl-C to stop. Requires the agent to be running.

Usage: hivectl agent watch

hivectl agent subvol

btrfs subvolume management for this agent's state dir.

Upgrade an existing plain-dir agent's state into a btrfs subvolume so it gains snapshots.

Usage: hivectl agent subvol <COMMAND>

Subcommands:

hivectl agent subvol upgrade

Convert a plain-dir agent state root into a btrfs subvolume in place, so it gains snapshots.

Bounces the agent to migrate its state, so it requires --yes.

Usage: hivectl agent subvol upgrade [OPTIONS]

Options:

hivectl agent subvol snapshot

Read-only snapshots of this agent's state subvolume

Usage: hivectl agent subvol snapshot <COMMAND>

Subcommands:

hivectl agent subvol snapshot create

Create a read-only snapshot (agent must already be a subvolume)

Usage: hivectl agent subvol snapshot create --label <LABEL>

Options:

hivectl agent subvol snapshot delete

Delete a snapshot created by subvol snapshot create

Usage: hivectl agent subvol snapshot delete <LABEL>

Arguments:

hivectl agent subvol snapshot send

Export a snapshot to a local file via btrfs send: a point-in-time backup. A full send with no --parent produces a self-contained archive of the snapshot

Usage: hivectl agent subvol snapshot send [OPTIONS] --dest <DEST> <LABEL>

Arguments:
Options:

hivectl list-agents

Show all managed agents with their status and technical state.

Global — not scoped to one agent, so it lives at the top level rather than under hivectl agent <name>. Needs the hive-c0re daemon running.

Usage: hivectl list-agents [OPTIONS]

Options:

hivectl peer-config

Generate the federation peer-config block for THIS hive.

Prints the nix a peer operator pastes into their swarm config to trust and reach this hive.

Usage: hivectl peer-config

hivectl stop

Stop containers hive-wide in one operator action.

Bare hivectl stop stops every agent and the gateway; scope flags narrow it to specific sub-agents or the gateway. The swarm's forge and matrix are never in scope: systemd on the services host runs them.

Usage: hivectl stop [OPTIONS]

Options:

hivectl start

Start containers hive-wide — the inverse of hivectl stop.

Bare hivectl start starts every agent; scope flags narrow it. The swarm's forge and matrix are never in scope.

Usage: hivectl start [OPTIONS]

Options:

hivectl restart

Restart containers hive-wide — stop then start over one scope.

Bare hivectl restart restarts everything; scope flags narrow it. The swarm's forge and matrix are never in scope.

Usage: hivectl restart [OPTIONS]

Options:

hivectl completions

Generate a shell completion script for hivectl and print it to stdout.

Supports bash, zsh, fish, elvish, and powershell. The NixOS module already installs the zsh script system-wide; this is for ad-hoc or other-shell use.

Usage: hivectl completions <SHELL>

Arguments: